> ## Documentation Index
> Fetch the complete documentation index at: https://developer.omni.z-api.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment

> Set up a payment method to send message templates through the WhatsApp Official API

export const frontendUrl = 'https://app.omni.z-api.io';

export const projectName = 'Omni Z-API';

## Overview

To use the **WhatsApp Official API**, you need to set up a payment method. This setup enables you to send **message templates**.

## Requirements

* **Business Portfolio (BM)**: you need to have a business portfolio set up with the WhatsApp number already linked
* **Required permission**: you'll need to be an administrator or have the necessary permissions to configure payments on the relevant WhatsApp account

## Step by step

### Step 1 - Access your Meta account

Go to: [business.facebook.com](https://business.facebook.com/)

### Step 2 - Access the Business Portfolio (BM)

* Click to select the Business Portfolio
* Click to access this portfolio's settings

<Frame>
  <img src="https://mintcdn.com/omni-z-api/pNLq09OUwDtXKuEM/images/pagamento-1.png?fit=max&auto=format&n=pNLq09OUwDtXKuEM&q=85&s=dc8d581d9124706dcdd3848c94bb5ee1" alt="Access Business Portfolio settings" width="845" height="592" data-path="images/pagamento-1.png" />
</Frame>

### Step 3 - Access the WABAs (WhatsApp Accounts)

* Click **WhatsApp Accounts**

<Frame>
  <img src="https://mintcdn.com/omni-z-api/pNLq09OUwDtXKuEM/images/pagamento-2.png?fit=max&auto=format&n=pNLq09OUwDtXKuEM&q=85&s=3c723a4949d845c2c90d64b3ca4c1f3d" alt="WhatsApp Accounts" width="1505" height="531" data-path="images/pagamento-2.png" />
</Frame>

### Step 4 - Access the payment settings

* Select the relevant account
* Then select **"Payment settings"**

<Frame>
  <img src="https://mintcdn.com/omni-z-api/pNLq09OUwDtXKuEM/images/pagamento-3.png?fit=max&auto=format&n=pNLq09OUwDtXKuEM&q=85&s=7b329030c69cbc2ce829c4104a91502e" alt="Payment settings" width="1194" height="566" data-path="images/pagamento-3.png" />
</Frame>

### Step 5 - Access the payment method setup

* Select the **Payment methods** menu item

<Warning>
  Do not set this up through the **Accounts** option, as Meta's system won't be able to properly validate this method, causing invoice processing issues.
</Warning>

<Note>
  You need the required permissions to make changes on this screen.
</Note>

<Frame>
  <img src="https://mintcdn.com/omni-z-api/pNLq09OUwDtXKuEM/images/pagamento-4.png?fit=max&auto=format&n=pNLq09OUwDtXKuEM&q=85&s=bf63a6e94ab554820ff9b96074b790bd" alt="Payment methods" width="1207" height="432" data-path="images/pagamento-4.png" />
</Frame>

### Step 6 - Add a payment method

* Click **Add** to start the payment method setup process

<Frame>
  <img src="https://mintcdn.com/omni-z-api/pNLq09OUwDtXKuEM/images/pagamento-5.png?fit=max&auto=format&n=pNLq09OUwDtXKuEM&q=85&s=7bc58dd720a10ea32211061adbfe2f08" alt="Add payment method" width="1195" height="568" data-path="images/pagamento-5.png" />
</Frame>

### Step 7 - Fill in the country and currency

* Set the country to **Brazil**
* Select **US dollar (USD)** as the currency. This is required because Meta uses the dollar as the base currency, but it converts to Brazilian reais on your card's invoice afterward
* Then click **Next**

<Frame>
  <img src="https://mintcdn.com/omni-z-api/pNLq09OUwDtXKuEM/images/pagamento-6.png?fit=max&auto=format&n=pNLq09OUwDtXKuEM&q=85&s=a2ee23bacceacdf0effd6a392cc2a677" alt="Fill in country and currency" width="637" height="602" data-path="images/pagamento-6.png" />
</Frame>

### Step 8 - Fill in the card details

* Fill in all the card details and click **Save**

<Note>
  - Since processing happens in dollars, the card needs to be enabled for **international purchases**
  - The amount charged will be based on the dollar exchange rate on the day the invoice closes
</Note>

<Frame>
  <img src="https://mintcdn.com/omni-z-api/pNLq09OUwDtXKuEM/images/pagamento-7.png?fit=max&auto=format&n=pNLq09OUwDtXKuEM&q=85&s=7e7652ac105fee48dc6a68e039a1f9ce" alt="Fill in card details" width="737" height="625" data-path="images/pagamento-7.png" />
</Frame>

### Step 9 - Add the card to the WhatsApp Business account

* After entering a card, click the **WhatsApp Business Accounts** tab
* Then click **Add payment method**
* Add the card you previously registered and link it to complete the process

<Frame>
  <img src="https://mintcdn.com/omni-z-api/pNLq09OUwDtXKuEM/images/pagamento-8.png?fit=max&auto=format&n=pNLq09OUwDtXKuEM&q=85&s=18606caf0c8ea543c40cc7b9acbdebcb" alt="Link card to WhatsApp Business account" width="1182" height="426" data-path="images/pagamento-8.png" />
</Frame>
