In this article you will learn how to configure WhatsApp Payments and its correct display within the platform.
This feature is available for Brazilian phone numbers for end users with Brazilian phone numbers.
WhatsApp Payments is a payment submission feature developed by Meta to facilitate the user experience when receiving orders and payment links via WhatsApp. It does not process the payment, but integrates in a user-friendly way the order summary, total amount and actions for the customer to finalize their purchase on an external platform.
Meta currently accepts these payment methods via WhatsApp Payments:
Any gateway that can generate a link, Pix token or ticket can be integrated into the action, provided that the corresponding variable is available.
Present payment requests in a much more professional and clearer way.
Reduces risks and doubts for the user (by receiving a summary and call to action in a native visual format).
Allows to offer multiple payment methods (Pix, link, ticket) under the same logic.
Allows coupons, discounts, shipping rates, and other variables (both at product and order level).
Inside your bot, add the corresponding action:
Main text: Help/context message for the user (limit approx. 1000 characters).
Image (optional): Informative image associated with the order.
Footer (optional): Ex: “Link expires in 15 minutes”.
Payment method: Link, Pix or Boleto.
Variable of the selected method: Payment link (URL), Pix token, or digital line.
User ID: Can be phone, mail or CPF (especially for Pix/boletos).
Payment Order: You can generate a unique ID per flow or assign the one your system delivers.
Taxes, Shipping and Discounts: You can add fixed or variable rates, and discounts both per product and per order total.
It is advisable to make the discount calculations in advance and only send the final amounts to Botmaker, to avoid inconsistencies.
Example of product structure:
[
{
"amount": 12.23,
"quantity": 2,
"name": "Producto 1",
"retailer_id": "1",
"sale_amount": 11.23
},
{
"amount": 12.23,
"quantity": 1,
"name": "Producto 2",
"retailer_id": "2",
"sale_amount": 11.23
}
]
Includes: name, SKU, quantity, price, discounted price.
Botmaker and WhatsApp do not detect payments with immediate confirmation. To register that the payment was approved/rejected, you must receive the confirmation callback (webhook) from your gateway and adjust the flow in the bot, modifying variables and taking the user through the correct flow.