Receive UPI Payments Through WhatsApp
Updated: Nov 14, 2025 For businesses working with Razorpay, PayU, Billdesk, Zaakpay payment gateways, we have deeper integration with these PGs. Please refer to Payment Gateway Integration Guide Your business can enable customers to pay for their orders using all the UPI Apps installed on their devices via WhatsApp. Businesses can send customers invoice(order_details) messages, then get notified about payment status updates via webhook notifications from Payment Gateway.
Overview
Currently, customers browse business catalogs, add products to cart, and send orders in with our set of commerce messaging solutions, which includes Single Product Message, Multi Product Message, and Product Detail Page. With the WhatsApp Payments API, businesses can send customers a bill so the customer can complete their order with all the UPI Apps.How It Works
The business must send anorder_details message for the consumer to initiate payment. This type of message is a new type of interactive message, which always contains the same 4 main components: header, body, footer, and action. Inside the action component, the business includes all the information needed for the customer to complete their payment.
Each order_details message contains a unique reference_id provided by the business, and that unique number is used throughout the flow to track the order. This reference_id is fetched from UPI intent link( tr value from the UPI payment intent) generated for a business order from Payment Gateway.
Once the message is sent, the business waits for a payment or transaction status updates directly from Payment Gateway. Upon receiving payment signal for an order, Business should relay this payment signal to consumer through interactive order status(order_status) message.
Updating user about the payment signal is important as this message updates the order details message and order details view for the consumer reflecting the order confirmation from merchant. This is shown with an example in subsequent sections.
Purchase Flow in App
In the WhatsApp customer app, the purchase flow has the following steps: Customer sends an order with selected products to the business or Business identifies the products that the customer has shown interest to purchase. After receiving the order/identifying the product, if a merchant accepts payment methods other than UPI, such as credit cards and payment wallets, then merchant will send a message to the user to get their preferred payment method for the order.
When consumers want to pay using UPI payment method, then merchants should retrieve the UPI payment intent by calling Payment Gateway. Merchant needs to use UPI intent to construct order details messages and send it to the consumer.

When the consumer taps the Pay now/continue button, they will be given the option to choose UPI payment Apps - WhatsApp or any other UPI payments apps. Consumers may choose any UPI option to pay for the order.

Consumer pays for the order and the payment method is saved for the future and automatically selected for the next payment transaction. Also, one quick note is the order details screen order-status will continue to show “Order pending” until merchant sends order status interactive message.

Once the payment is complete, the business receives a notification from Payment Gateway and the merchant needs to send order status updates to the consumer client notifying consumers about the progress to the order, this will update the order details message CTAs and order details screen - order status description.


Before You Start
To receive UPI payments on WhatsApp merchants have to set up their VPA on WhatsApp Business Manager using the direct payment methods option. Each configuration must have a unique name, merchant categorization code (mcc), purpose code, and VPA handles as shown below. A business can have multiple payment configurations, but for each order merchant must specify a specific configuration to be used for payment. Seepayment_configuration field in order_details message.
name for each payment type must be unique. name will be used to reference the specific configurations for each payment type. If WA is unable to find a payment configuration name, the user will not be able to make the payment upon receiving the order_details message. mcc refers to a merchant categorization code for the items in the order. upi_pc refers to the purpose of the transaction. Some sample codes are below:
| Code | Title |
|---|---|
| 00 | Default |
| 01 | SEMI |
| 02 | AMC |
| 03 | Travel |
| 04 | Hospitality |
| 05 | Hospital |
| 06 | Telecom |
| 07 | Insurance |
| 08 | Education |
| 09 | Gifting |
| 10 | Others |
Manage Your Payment Methods (Beta Feature)
Self-service Payment Configuration allows you to add multiple payment configurations to your WhatsApp Manager profile. Each payment configuration will have its own UPI handle(VPA), MCC, and purpose code (for physical goods) so that merchants can accept payments for different categories with different UPI accounts. After setup, merchant can send invoice(order_details) messages to users with the corresponding payment configuration to collect payments.
Pre-requisites
Manage Payment Methods feature is in Beta, so please contact Business Engineering team to allow merchants/partners access the page in WhatsApp Business Manager portal.Steps to link Payment Configuration for a Business Service Provider
You can create a payment configuration for a WhatsApp Business Account using the ‘Payment configurations’ page and under ‘India’ in WhatsApp Business Manager. After linking your payment configuration, you must integrate with the Payments APIs below. This will allow you to send anorder_details message to customers with the payment configuration to receive payments.
Steps to unlink Payment Configuration
Note: Make sure no new order messages requesting payment from consumer are sent with the payment config your are trying to remove before you perform the unlink action.Integration Steps
The steps outlined below assume that the business is about to send order details message to consumer client. The following sequence diagram demonstrates the typical integration flow for WA Payments API:
Step 1: Get UPI Intent from Payment Gateway
Once the consumer has expressed their interest to purchase an item using UPI payment method. Merchant needs to call payment gateway to create a UPI intent, the following is the sample UPI intent link:tr value from the above URI and use this as the reference id in invoice(order_details) interactive message.
Step 2: Assemble the Interactive Object
To send anorder_details message, businesses must assemble an interactive object of type order_details with the following components:
| Object | Description |
|---|---|
typeobject | Required. Must be “order_details”. |
headerobject | Optional. Header content displayed on top of a message. If a header is not provided, the API uses an image of the first available product as the header |
bodyobject | Required. An object with the body of the message. The object contains the following field: text stringRequired if body is present. The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters |
footerobject | Optional. An object with the footer of the message. The object contains the following fields: text stringRequired if footer is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters |
actionobject | Required. An action object you want the user to perform after reading the message. This action object contains the following fields: name stringRequired. Must be “review_and_pay” parameters objectSee Parameters Object for information |
Parameters Object
| Object | Description |
|---|---|
reference_idstring | Required. Unique identifier for the order or invoice provided by the business. This cannot be an empty string and can only contain English letters, numbers, underscores, dashes, or dots, and should not exceed 35 characters. The reference_id must be unique for each order_details message for the same business. If the partner would like to send multiple order_details messages for the same order, invoice, etc. it is recommended to include a sequence number in the reference_id (for example, <order-or-invoice-id>-<sequence-number>) to ensure reference_id uniqueness. |
typeobject | Required. The type of goods being paid for in this order. Current supported options are digital-goods and physical-goods |
beneficiariesarray | Required for shipped physical-goods. An array of beneficiaries for this order. A beneficiary is an intended recipient for shipping the physical goods in the order. It contains the following fields: Beneficiary information isn’t shown to users but is needed for legal and compliance reasons. name stringRequired. Name of the individual or business receiving the physical goods. Cannot exceed 200 characters address_line1 stringRequired. Shipping address (Door/Tower Number, Street Name etc.). Cannot exceed 100 characters address_line2 stringOptional. Shipping address (Landmark, Area, etc.). Cannot exceed 100 characters city stringRequired. Name of the city. state stringRequired. Name of the state. country stringRequired. Must be “India”. postal_code stringRequired. 6-digit zipcode of shipping address. |
payment_type | Required. Must be “upi”. |
payment_configuration | Required. The name of the pre-configured payment configuration to use for this order and must not exceed 60 characters. |
currency | Required. The currency for this order. Currently the only supported value is INR. |
total_amountobject | Required. The total_amount object contains the following fields:offset integerRequired. Must be 100 for INR.value integerRequired. Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234. total_amount.value must be equal to order.subtotal.value + order.tax.value + order.shipping.value - order.discount.value. |
orderobject | Required. See order object for more information. |
Order Object
| Object | Description |
|---|---|
statusstring | Required. Only supported value in the order_details message is pending.In an order_status message, status can be: pending, captured, or failed. |
typestring | Optional. Only supported value is quick_pay. When this field is passed in we hide the “Review and Pay” button and only show the “Pay Now” button in the order details bubble. |
itemsobject | Required. An object with the list of items for this order, containing the following fields: retailer_id stringOptional. Content ID for an item in the order from your catalog. name stringRequired. The item’s name to be displayed to the user. Cannot exceed 60 characters image objectOptional. Custom image for the item to be displayed to the user. See item image object for information Using this image field will limit the items array to a maximum of 10 items and this cannot be used with retailer_id or catalog_id.amount amount object with value and offset — refer total amount field aboveRequired. The price per item sale_amount amount objectOptional. The discounted price per item. This should be less than the original amount. If included, this field is used to calculate the subtotal amount quantity integerRequired. The number of items in this order, this field cannot be decimal has to be integer. country_of_origin stringOptional if catalog_id is not present. The country of origin of the productimporter_name stringOptional if catalog_id is not present. Name of the importer companyimporter_adress stringOptional if catalog_id is not present. Address of importer company |
subtotalobject | Required. The value must be equal to order.amount.value multiplied by order.amount.quantity.Refer to total_amount description for explanation of offset and value fieldsThe following fields are part of the subtotal object:offset integerRequired. Must be 100 for INRvalue integerRequired. Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234 |
taxobject | Required. The tax information for this order which contains the following fields: offset integerRequired. Must be 100 for INRvalue integerRequired. Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234 description stringOptional. Max character limit is 60 characters |
shippingobject | Optional. The shipping cost of the order. The object contains the following fields: offset integerRequired. Must be 100 for INRvalue integerRequired. Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234 description stringOptional. Max character limit is 60 characters |
discountobject | Optional. The discount for the order. The object contains the following fields: offset integerRequired. Must be 100 for INRvalue integerRequired. Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234 description stringOptional. Max character limit is 60 characters discount_program_name stringOptional. Text used for defining incentivised orders. If order is incentivised, the merchant needs to define this information. Max character limit is 60 characters |
catalog_idobject | Optional. Unique identifier of the Facebook catalog being used by the business. |
expirationobject | Optional. Expiration for that order. Business must define the following fields inside this object: timestamp string – UTC timestamp in seconds of time when order should expire. Minimum threshold is 300 secondsdescription string – Text explanation for expiration. Max character limit is 120 characters |
Item Image Object
| Object | Description |
|---|---|
linkstring | Required. A link to the image that will be shown to the user. Must be an image/jpeg or image/png and 8-bit, RGB or RGBA. Follows same requirements as image in media |
Step 3: Add Common Message Parameters
Once the interactive object is complete, append the other parameters that make a message:recipient_type, to, and type. Remember to set the type to interactive.
Step 4:Make a POST Call to Messages Endpoint
Make a POST call to the/[PHONE_NUMBER_ID]/messages endpoint with the JSON object you have assembled. If your message is sent successfully, you get the following response:
Step 5: Consumer Pays for the Order
Consumers can pay using WhatsApp payment method or using any UPI supported app that is installed on the device.Step 6: Get Notified About Transaction Status Updates from payment gateway
Businesses receive updates to the invoice via payment gateway webhooks, when the status of the user-initiated transaction changes. The unique identifier tr(reference-id passed inorder_details message) can be used to map the transaction to the consumer invoice or interactive order details message.
Please refer to your PG’s documentation for the exact payment signals. If you are not receiving webhooks from your PG, then work with them to enable it.
Step 7: Update order status
Upon receiving transaction signals from payment gateway through webhook, the business must update the order status to keep the user up to date. Currently we support the following order status values:
| Value | Description |
|---|---|
pending | User has not successfully paid yet |
processing | User payment authorized, merchant/partner is fulfilling the order, performing service, etc. |
partially-shipped | A portion of the products in the order have been shipped by the merchant |
shipped | All the products in the order have been shipped by the merchant |
completed | The order is completed and no further action is expected from the user or the partner/merchant |
canceled | The partner/merchant would like to cancel the order_details message for the order/invoice. The status update will fail if there is already a successful or pending payment for this order_details message |
order_status using either the WhatsApp payment status change notifications or their own internal processes. To update order_status, the partner sends an order_status message to the user.
| Value | Description |
|---|---|
reference_id | The ID provided by the partner in the order_details message |
status | The new order status |
description | Optional text for sharing status related information in order_details. Could be useful while sending cancellation. Max character limit is 120 characters |
Step 8: Reconcile Payments
Businesses should use their bank statements to reconcile the payments using thereference_id provided in the order_details messages.
Merchant Preferred UPI Payment Method
Now merchants can specify up toone UPI Payment app to showup in checkout flow. Merchant preferred payment app will be shown on top of the list of available UPI apps in - “Choose payment method” screen. To enable this capability we require partners to specify the external app-id in the Order Details or order-invoice message.
Note: This feature is available on consumer apps on and above version: 2.24.21.0
Updates to Order Details Payload
List of supported apps:
| UPI Application | Application ID to be passed in Order Details payload |
|---|---|
| Google Pay | gpay |
| PhonePe | phonepe |
| PayTm | paytm |
| Amazon Pay | amazonpay |
| CRED | cred |
| Mobikwik | mobikwik |
Checklist for Integrated Merchants
Ensure thatorder_status message is send to consumer informing them about updates to an order after receiving transaction updates for an order.
Ensure the merchant is verified and WABA contact is marked with a verified check.
Verify the WABA is mapped to appropriate merchant initiated messaging tier(1k, 10k and 100k per day)
Merchant should list the customer support information in the profile screen incase consumer wants to report any issues.
Did you find this page helpful?

