> ## Documentation Index
> Fetch the complete documentation index at: https://developer.hubmessage.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.hubmessage.io';

export const projectName = 'Hub Message';

## 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/hubmessage-2b5e33d5/IO7XX-F8J3cnZZV0/images/pagamento-1.png?fit=max&auto=format&n=IO7XX-F8J3cnZZV0&q=85&s=f6d1e2c63a25cd1da8875041b16cb20c" 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/hubmessage-2b5e33d5/IO7XX-F8J3cnZZV0/images/pagamento-2.png?fit=max&auto=format&n=IO7XX-F8J3cnZZV0&q=85&s=e90a2254252a8e5be42fb9ab69027fec" 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/hubmessage-2b5e33d5/IO7XX-F8J3cnZZV0/images/pagamento-3.png?fit=max&auto=format&n=IO7XX-F8J3cnZZV0&q=85&s=84a477f029cd8302df1475adadb8cc90" 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/hubmessage-2b5e33d5/IO7XX-F8J3cnZZV0/images/pagamento-4.png?fit=max&auto=format&n=IO7XX-F8J3cnZZV0&q=85&s=410268cdaa68a02d61160de41d188426" 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/hubmessage-2b5e33d5/IO7XX-F8J3cnZZV0/images/pagamento-5.png?fit=max&auto=format&n=IO7XX-F8J3cnZZV0&q=85&s=f3c35aa6f7578dc008e1926f0c9f0e60" 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/hubmessage-2b5e33d5/IO7XX-F8J3cnZZV0/images/pagamento-6.png?fit=max&auto=format&n=IO7XX-F8J3cnZZV0&q=85&s=6cf1e27c578a7319cda1e8400b7d270b" 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/hubmessage-2b5e33d5/IO7XX-F8J3cnZZV0/images/pagamento-7.png?fit=max&auto=format&n=IO7XX-F8J3cnZZV0&q=85&s=425123e3e49abd86828cea71af4f30e7" 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/hubmessage-2b5e33d5/IO7XX-F8J3cnZZV0/images/pagamento-8.png?fit=max&auto=format&n=IO7XX-F8J3cnZZV0&q=85&s=d2f88adb1e3fb60dd04256267e81bce5" alt="Link card to WhatsApp Business account" width="1182" height="426" data-path="images/pagamento-8.png" />
</Frame>
