# Receive payments via payment gateways on WhatsApp | Developer Documentation

<div id="bkmrk-receive-payments-via">## Receive payments via payment gateways on WhatsApp

<div><span>Updated: Dec 12, 2025</span></div><div>Your business can enable customers to pay for their orders through our partner payment gateways without leaving WhatsApp. Businesses can send customers order_details messages, then get notified about payment status updates via webhook notifications.</div><div id="bkmrk-overview"><div id="bkmrk-overview-1"><div>### Overview

</div></div></div><div>Currently, customers browse business catalogs, add products to cart, and send orders with our set of commerce messaging solutions, which includes [Single Product Message, Multi Product Message, and Product Detail Page](/books/meta-whatsapp/page/share-products-with-whatsapp-users-developer-documentation). Now, with the Payments API, businesses can send customers a *bill*, so the customer can complete their order by paying the business without having to leave WhatsApp.</div><div><div>Our payments solution is currently enabled by BillDesk, Razorpay, PayU and Zaakpay, a third-party payments service provider. You must have a BillDesk, Razorpay, PayU or Zaakpay account in order to receive payments on WhatsApp.</div><div>We expect more payment providers to be added in the future.</div></div><div id="bkmrk-how-it-works"><div id="bkmrk-how-it-works-1"><div>### How it works

</div></div></div><div>First, the business composes and sends an `order_details` message. An `order_details` 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.</div><div>Each `order_details` message contains a unique `reference_id` provided by the business, and that unique ID is used throughout the flow to track the order.</div><div>Once the message is sent, the business waits for a payment status update via webhooks. Businesses get notified when the payment status changes, but they must not solely rely on these webhooks notifications due to security reasons. WhatsApp also provides a payment lookup API that can be used to retrieve the payment statuses directly anytime.</div><div id="bkmrk-purchase-flow-in-app"><div id="bkmrk-purchase-flow-in-app-1"><div>### Purchase flow in app

</div></div></div><div>In the WhatsApp Messenger App, the purchase flow has the following steps:</div><div>Customers send an order with selected products to the business either through simple text messages or using other interactive messages such as [Single Product Message, Multi Product Message, and Product Detail.](/books/meta-whatsapp/page/share-products-with-whatsapp-users-developer-documentation)</div><div>Once the business receives the order, they send an `order_details` message to the user. When the user taps on **Review and Pay**, they will see details about the order and total amount to be paid.</div><div>When the user taps the **Continue** button, they are able to choose to pay natively on WhatsApp or any other UPI app.   
  
Checkout with WhatsApp Pay:</div><div>*\[image removed - too large for import\]*</div><div>  
  
Checkout on other UPI Apps:</div><div>*\[image removed - too large for import\]*</div><div>Once the payment has been confirmed by your payment gateway (PG) or payment service provider, the business can start processing the order.</div><div>Businesses can then send an `order_status` message to the consumer informing them about the status of the order. Each message will result in a message bubble (as shown below) that refers to the original order details message and also updates the status displayed on the order details page.</div><div id="bkmrk-link-your-payment-ac"><div id="bkmrk-link-your-payment-ac-1"><div>### Link your payment account

</div></div></div><div>To receive payments on WhatsApp, you must add a *payment configuration* to the corresponding WhatsApp Business Account. A payment configuration allows you to link a payment gateway account to WhatsApp. Each payment configuration is associated with a *unique name*. As part of the `order_details` message, you can specify the payment configuration to use for a specific checkout. WhatsApp will then generate a checkout flow using the associated payment gateway account.</div><div>*\[image removed - too large for import\]*</div><div>After linking your payment partner account, you must integrate with the Payments APIs below. This will allow you to send an `order_details` message to customers with the payment configuration to receive payments.</div><div id="bkmrk-steps-to-unlink-paym"><div id="bkmrk-steps-to-unlink-paym-1"><div>#### Steps to unlink Payment Configuration

</div></div></div><div>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.</div><div id="bkmrk-integration-steps"><div id="bkmrk-integration-steps-1"><div>### Integration Steps

</div></div></div><div>The steps outlined below assume that the business already knows what the user is interested in through earlier chat threads. The Payments API is a standalone API and hence can work with various messages such as [List Messages, Reply Buttons, Single or Multi-Product Messages](/books/meta-whatsapp/page/sending-messages-developer-documentation).</div><div id="bkmrk-sequence-diagram"><div id="bkmrk-sequence-diagram-1"><div>#### Sequence Diagram

</div></div></div><div>The following sequence diagram demonstrates the typical integration flow for Payments API. The steps highlighted in green are the key integration steps.</div><div>*\[image removed - too large for import\]*</div><div id="bkmrk-step-1%3A-send-order-d"><div id="bkmrk-step-1%3A-send-order-d-1"><div>#### Step 1: Send Order Details Interactive Message

</div></div></div><div>To send an `order_details` message, businesses must assemble an interactive object of type `order_details` with the following components:</div><div><table><thead><tr><th><span>Object </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`type`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>Must be “order_details”.</div></div></td></tr><tr><td><div><div>`header`</div><div>object</div></div></td><td><div><div>**Optional.**</div><div>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</div></div></td></tr><tr><td><div><div>`body`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>An object with the body of the message. The object contains the following field:</div><div>`text` string</div><span>**Required** if `body` is present. The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters</span></div></td></tr><tr><td><div><div>`footer`</div><div>object</div></div></td><td><div><div>**Optional.**</div><div>An object with the footer of the message. The object contains the following fields:</div><div>`text` string</div><span>**Required** if `footer` is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters</span></div></td></tr><tr><td><div><div>`action`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>An action object you want the user to perform after reading the message. This action object contains the following fields:</div><div>`name` string</div><span>**Required**. Must be “review\_and\_pay”</span><div>`parameters` object</div><span>See [Parameters Object](#bkmrk-parameters-object-1) for information</span></div></td></tr></tbody></table>

</div><div id="bkmrk-parameters-object"><div id="bkmrk-parameters-object-1"><div>##### Parameters Object

</div></div></div><div><table><thead><tr><th><span>Object </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`reference_id`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>Unique identifier for the order or invoice provided by the business. It is case sensitive and cannot be an empty string and can only contain English letters, numbers, underscores, dashes, or dots, and should not exceed 35 characters.</div><div>The reference_id must be unique for each order_details message for a given business. If there is a need to send multiple order_details messages for the same order, it is recommended to include a sequence number in the reference_id (for example, “BM345A-12”) to ensure reference_id uniqueness.</div></div></td></tr><tr><td><div><div>`type`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>The type of goods being paid for in this order. Current supported options are `digital-goods` and `physical-goods`.</div></div></td></tr><tr><td><div><div>`beneficiaries`</div><div>array</div></div></td><td><div><div>**Required for shipped physical-goods.**</div><div>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:</div><div>Note: Beneficiary information isn’t shown to users but is needed for legal and compliance reasons.</div><div>`name` string</div><span>**Required.** Name of the individual or business receiving the physical goods. Cannot exceed 200 characters</span><div>`address_line1` string</div><span>**Required.** Shipping address (Door/Tower Number, Street Name etc.). Cannot exceed 100 characters</span><div>`address_line2` string</div><span>**Optional.** Shipping address (Landmark, Area, etc.). Cannot exceed 100 characters</span><div>`city` string</div><span>**Required.** Name of the city.</span><div>`state` string</div><span>**Required.** Name of the state.</span><div>`country` string</div><span>**Required.** Must be “India”.</span><div>`postal_code` string</div><span>**Required.** 6-digit zipcode of shipping address.</span></div></td></tr><tr><td><div><div>`currency`</div></div></td><td><div><div>**Required.**</div><div>The currency for this order. Currently the only supported value is `INR`.</div></div></td></tr><tr><td><div><div>`total_amount`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>The `total_amount` object contains the following fields:</div><div>`offset` integer</div><span>**Required.** Must be `100` for `INR`.</span><div>`value` integer</div><span>**Required.** Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234.</span><div><div>`total_amount.value` must be equal to `order.subtotal.value` + `order.tax.value` + `order.shipping.value` - `order.discount.value`.</div></div><div><div>UPI transactions are limited to ₹5,00,000. For higher amounts, set `enabled_payment_options` to `["web"]`. See [Restrict Available Payment Options](#bkmrk-restrict-available-p-1).</div></div></div></td></tr><tr><td><div><div>`payment_settings`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>See [Payment Settings object](#bkmrk-payment-settings-obj-1) for more information.</div></div></td></tr><tr><td><div><div>`order`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>See [order object](#bkmrk-order-object-1) for more information.</div></div></td></tr></tbody></table>

</div><div id="bkmrk-payment-settings-obj"><div id="bkmrk-payment-settings-obj-1"><div>##### Payment settings object

</div></div></div><div><table><thead><tr><th><span>Object </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`type`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>Must be set to **“payment\_gateway”**</div></div></td></tr><tr><td><div><div>`payment_gateway`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>An object that describes payment account information:</div><div>`type` string</div><span>**Required.** Unique identifier for an item in the order. You must set this to **“billdesk”** or **“razorpay”** or **“payu”** or **zaakpay**, if you have linked your BillDesk or Razorpay or PayU or Zaakpay payment gateway to accept payments</span><div>`configuration_name` string</div><span>**Required.** The name of the pre-configured payment configuration to use for this order and must not exceed 60 characters. This value must match with a payment configuration set up on the WhatsApp Business Manager.</span><div><div>When `configuration_name` is invalid, the customer will be unable to pay for their order. We strongly advise businesses to conduct extensive testing of this setup during the integration phase.</div></div><div>`billdesk/razorpay/payu/zaakpay` object</div><span>**Optional.** For merchants/partners that want to use additional\_info1/7(for BillDesk), notes and receipt(for Razorpay) and UDF fields(for PayU) and extra1/2(for Zaakpay), they can now pass these values in Order Details message and we would use these to create transaction/order at respective PGs.</span><div>Please refer [Payment Gateway specific UDF object](#bkmrk-billdesk%2C-razorpay%2C--1) for more information.</div></div></td></tr></tbody></table>

</div><div id="bkmrk-billdesk%2C-razorpay%2C-"><div id="bkmrk-billdesk%2C-razorpay%2C--1"><div>##### BillDesk, RazorPay, PayU and Zaakpay fields

</div></div></div><div>We now have support for partners and merchants to pass `notes`, `receipt` and `udf` fields in Order Details message and receive this data back in payment signals. Here we will take a look at merchants can pass additional_info for BillDesk, notes and receipt fields for Razorpay, udf for PayU, extra for Zaakpay PGs.</div><div><table><thead><tr><th><span>Object </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`notes`</div><div>object</div></div></td><td><div><div>**Optional.**</div><span>Only supported for Razorpay payment gateway</span><div>The object can be key value pairs with maximum 15 keys and each value limits to 256 characters.</div></div></td></tr><tr><td><div><div>`receipt`</div><div>String</div></div></td><td><div><div>**Optional.**</div><span>Only supported for Razorpay payment gateway</span><div>Receipt number that corresponds to this order, set for your internal reference. Maximum length of 40 characters supported with minimum length greater than 0 characters.</div></div></td></tr><tr><td><div><div>`udf1-4`</div><div>String</div></div></td><td><div><div>**Optional.**</div><span>Only supported for PayU payment gateway</span><div>User-defined fields (udf) are used to store any information corresponding to a particular order. Each UDF field has a maximum character limit of 255.</div></div></td></tr><tr><td><div><div>`extra1-2`</div><div>String</div></div></td><td><div><div>**Optional.**</div><span>Only supported for Zaakpay payment gateway</span><div>User-defined fields (extra) are used to store any information corresponding to a particular order. Each extra field has a maximum character limit of 180.</div></div></td></tr><tr><td><div><div>`additional_info1-7`</div><div>String</div></div></td><td><div><div>**Optional.**</div><span>Only supported for BillDesk payment gateway</span><div>User-defined fields (extra) are used to store any information corresponding to a particular order. Each extra field has a maximum character limit of 120.</div></div></td></tr></tbody></table>

</div><div id="bkmrk-order-object"><div id="bkmrk-order-object-1"><div>##### Order object

</div></div></div><div><table><thead><tr><th><span>Object </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`status`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>Only supported value in the `order_details` message is `pending`.</div><div><div>In an `order_status` message, `status` can be: `pending`, `captured`, or `failed`.</div></div></div></td></tr><tr><td><div><div>`type` string</div></div></td><td><div><div>**Optional.**</div><div>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.</div></div></td></tr><tr><td><div><div>`items`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>An object with the list of items for this order, containing the following fields:</div><div>`retailer_id` string</div><span>**Optional.** Content ID for an item in the order from your catalog.</span><div>`name` string</div><span>**Required.** The item’s name to be displayed to the user. Cannot exceed 60 characters</span><div>`image` object</div><span>**Optional.** Custom image for the item to be displayed to the user. See [item image object](#bkmrk-item-image-object-1) for information</span><div><div>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`.</div></div><div>`amount` amount object with value and offset -- refer total amount field above</div><span>**Required.** The price per item</span><div>`sale_amount` amount object</div><span>**Optional.** The discounted price per item. This should be less than the original amount. If included, this field is used to calculate the subtotal amount.</span><div>`quantity` integer</div><span>**Required.** The number of items in this order, this field cannot be decimal has to be integer.</span><div>`country_of_origin` string</div><span>**Required** if `catalog_id` is not present. The country of origin of the product</span><div>`importer_name` string</div><span>**Required** if `catalog_id` is not present. Name of the importer company</span><div>`importer_adress` string</div><span>**Required** if `catalog_id` is not present. Address of importer company</span></div></td></tr><tr><td><div><div>`subtotal`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>The value **must be equal** to sum of `order.amount.value` * `order.amount.quantity`. Refer to `total_amount` description for explanation of `offset` and `value` fields</div><div>The following fields are part of the `subtotal` object:</div><div>`offset` integer</div><span>**Required.** Must be `100` for `INR`</span><div>`value` integer</div><span>**Required.** Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234</span></div></td></tr><tr><td><div><div>`tax`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>The tax information for this order which contains the following fields:</div><div>`offset` integer</div><span>**Required.** Must be `100` for `INR`</span><div>`value` integer</div><span>**Required.** Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234</span><div>`description` string</div><span>**Optional.** Max character limit is 60 characters</span></div></td></tr><tr><td><div><div>`shipping`</div><div>object</div></div></td><td><div><div>**Optional.**</div><div>The shipping cost of the order. The object contains the following fields:</div><div>`offset` integer</div><span>**Required.** Must be `100` for `INR`</span><div>`value` integer</div><span>**Required.** Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234</span><div>`description` string</div><span>**Optional.** Max character limit is 60 characters</span></div></td></tr><tr><td><div><div>`discount`</div><div>object</div></div></td><td><div><div>**Optional.**</div><div>The discount for the order. The object contains the following fields:</div><div>`offset` integer</div><span>**Required.** Must be `100` for `INR`</span><div>`value` integer</div><span>**Required.** Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234</span><div>`description` string</div><span>**Optional.** Max character limit is 60 characters</span><div>`discount_program_name` string</div><span>**Optional.** Text used for defining incentivised orders. If order is incentivised, the merchant needs to define this information. Max character limit is 60 characters</span></div></td></tr><tr><td><div><div>`catalog_id`</div><div>object</div></div></td><td><div><div>**Optional.**</div><div>Unique identifier of the Facebook catalog being used by the business.</div><div>If you do not provide this field, you must provide the following fields inside the items object: `country_of_origin`, `importer_name`, and `importer_address`</div></div></td></tr><tr><td><div><div>`expiration`</div><div>object</div></div></td><td><div><div>**Optional.**</div><div>Expiration for that order. Business must define the following fields inside this object:</div><div>`timestamp` string – UTC timestamp in seconds of time when order should expire. Minimum threshold is 300 seconds</div><div>`description` string – Text explanation for expiration. Max character limit is 120 characters</div></div></td></tr></tbody></table>

</div><div id="bkmrk-item-image-object"><div id="bkmrk-item-image-object-1"><div>##### Item Image Object

</div></div></div><div><table><thead><tr><th><span>Object </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`link` string</div></div></td><td><div><div>**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](/books/meta-whatsapp/page/media-developer-documentation)</div></div></td></tr></tbody></table>

</div><div><div>The `parameters` value is a stringified JSON object.</div></div><div>By the end, the interactive object should look something like this for a BillDesk catalog-based integration:</div><div><div>The `parameters` value is a stringified JSON object.</div></div><div>By the end, the interactive object should look something like this for a RazorPay catalog-based integration:</div><div><div>The `parameters` value is a stringified JSON object.</div></div><div>For a PayU non-catalog based integration i.e. when catalog-id is not present, an example payload looks as follows:</div><div>For a Zaakpay non-catalog based integration i.e. when catalog-id is not present, an example payload looks as follows:</div><div id="bkmrk-step-2%3A-add-common-m"><div id="bkmrk-step-2%3A-add-common-m-1"><div>#### Step 2: Add Common Message Parameters

</div></div></div><div>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`.</div><div>These are [parameters common to all message types](/books/meta-whatsapp/page/sending-messages-developer-documentation).</div><div id="bkmrk-step-3%3Amake-a-post-c"><div id="bkmrk-step-3%3Amake-a-post-c-1"><div>#### Step 3:Make a POST Call to Messages Endpoint

</div></div></div><div>Make a POST call to the [`/[PHONE_NUMBER_ID]/messages`](/books/meta-whatsapp/page/sending-messages-developer-documentation) endpoint with the `JSON` object you have assembled. If your message is sent successfully, you get the following response:</div><div>For all errors that can be returned and guidance on how to handle them, see [WhatsApp Cloud API, Error Codes](/documentation/business-messaging/whatsapp/support/error-codes).</div><div id="bkmrk-product-experience"><div id="bkmrk-product-experience-1"><div>##### Product Experience

</div></div></div><div>The customer receives an `order_details` message similar to the one below (left). When they click on “Review and Pay”, it opens up the order details screen as shown below (middle). Customer can then pay for their order using “Continue” button that opens up a bottom sheet with the payment options (right).</div><div><div><div><div>*\[image removed - too large for import\]*</div></div><div><div>*\[image removed - too large for import\]*</div></div><div><div>*\[image removed - too large for import\]*</div></div></div></div><div id="bkmrk-step-4%3A-receive-webh"><div id="bkmrk-step-4%3A-receive-webh-1"><div>#### Step 4: Receive Webhook about Transaction Status

</div></div></div><div>Businesses receive updates via [messages webhooks](/books/meta-whatsapp/page/messages-webhook-reference-developer-documentation) when the status of the user-initiated transaction changes in a status of type “payment”. It contains the following fields:</div><div><table><thead><tr><th><span>Object </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`id`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>Webhook ID for the notification.</div></div></td></tr><tr><td><div><div>`recipient_id `</div><div>string</div></div></td><td><div><div>**Required.**</div><div>WhatsApp ID of the customer.</div></div></td></tr><tr><td><div><div>`type`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>For payment status update webhooks, type is “payment”.</div></div></td></tr><tr><td><div><div>`status`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>`captured`/`pending`: `captured` - when the payment is successfully completed, `pending` when the user attempted but yet to receive success transactions signal</div></div></td></tr><tr><td><div><div>`payment`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>Contains the following field:   
`reference_id` string</div><div>Unique reference ID for the order sent in `order_details` message.   
`amount` object</div><div>Has value and offset fields corresponding to total amount that user has paid.   
`currency `string</div><div>currency is always INR.   
`transaction `object Transaction attempt for this payment. Transaction object contains the following fields:</div><div>`id` string **Required.** The alpha-numeric payment gateway order ID.</div><div>`pg_transaction_id` string **Optional.** The alpha-numeric payment gateway payment ID.</div><div>`type` string **Required.** The payment type for this transactions. Only, `billdesk` or `razorpay` or `payu` or `zaakpay` are supported.</div><div>`status` string **Required.** The status of the transaction. Can be one of `pending` or `success` or `failed`.</div><div>`created_timestamp` integer **Required.** Time when transaction was created in epoch seconds.</div><div>`updated_timestamp` integer **Required.** Time when transaction was last updated in epoch seconds.</div><span>`method` object (**Optional.** the payment method information might not be available for failed payments)</span><div>`type` string **Required.** The describes the type of payment method used by consumer to pay for the order. Can be one of `upi` or `card` or `wallet` or `netbanking`.</div><span>`error` object (**Optional.** the payment error details might not be available for all payments attempts)</span><span>`code` string **Required.** The describes the payment failure reason that is generated by payment gateway and Meta returns this to partners.</span><div>`reason` string **Required.** The describes the payment failure reason in plain text that is generated by payment gateway and Meta returns this to partners.   
`additional_info1-7` string **Optional.**</div><div>Only sent for billdesk payment gateway when the value is sent in order details message. Each of the keys additional_info1-4 has string values in them.   
`notes `object **Optional.**</div><div>Only sent for razorpay payment gateway when the value is sent in order details message. This contains key-value pair as passed in the Order Details message.   
`receipt` string **Optional.**</div><div>Only sent for razorpay payment gateway when the value is sent in order details message.   
`udf1-4` string **Optional.**</div><span>Only sent for payu payment gateway when the value is sent in order details message. Each of the keys udf1-4 has string values in them.</span><div>  
`extra1-2` string **Optional.**</div><span>Only sent for zaakpay payment gateway when the value is sent in order details message. Each of the keys extra1-2 has string values in them.   
`refunds` array **Optional.**</span><div>The list of refunds for this order. Each refund object contains the following fields:</div><span>`id` string **Required.** The alpha-numeric ID of the refund.</span><span>`amount` object **Required.** The total amount of the refund.</span><span>`speed_processed` string **Required.** Speed by which refund was processed. Can be one of `instant` or `normal`.</span><span>`status` string **Required.** The status of the refund. Can be one of `pending`, `success` or `failed`.</span><span>`created_timestamp` integer **Required.** Time when refund was created in epoch seconds.</span><span>`updated_timestamp` integer **Required.** Time when refund was last updated in epoch seconds.</span></div></td></tr><tr><td><div><div>`timestamp`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>Timestamp for the webhook.</div></div></td></tr></tbody></table>

</div><div>Here is an example status webhook of type `payment`:</div><div>For more information about other statuses, see [Messages Webhooks](/books/meta-whatsapp/page/messages-webhook-reference-developer-documentation).</div><div id="bkmrk-step-5%3A-confirm-paym"><div id="bkmrk-step-5%3A-confirm-paym-1"><div>#### Step 5: Confirm Payment

</div></div></div><div>After receiving the payment status webhook, or at any time, the business can look up the status of the payment for the order. To do that, businesses must make a GET call to the payments endpoint as shown here:</div><div><div>```
<span><span>GET </span><span><</span><span>PHONE_NUMBER_ID</span><span>></span><span>/payments/</span><span><</span><span>PAYMENT_CONFIGURATION</span><span>></span><span>/</span><span><</span><span>REFERENCE_ID</span><span>></span></span><br></br>
```

</div></div><div>where `payment_configuration` and `reference_id` are same as that sent in the `order_details` message.</div><div>Businesses should expect a response in the same HTTP session (not in a webhook notification) that contains the following fields:</div><div><table><thead><tr><th><span>Field </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`reference_id`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>The ID sent by the business in the `order_details` message</div></div></td></tr><tr><td><div><div>`status`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>Status of the payment for the order. Can be one of `pending` or `captured`  
</div><div>Refer the table below for what these statuses mean.</div></div></td></tr><tr><td><div><div>`currency`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>The currency for this payment. Currently the only supported value is `INR`.</div></div></td></tr><tr><td><div><div>`amount`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>The amount for this payment. It contains the following fields:</div><div>`offset` integer</div><span>**Required.** Must be 100.</span><div>`value` integer</div><span>**Required.** Positive integer representing the amount value multiplied by offset. For example, ₹12.34 has value 1234.</span></div></td></tr><tr><td><div><div>`transactions`</div><div>array</div></div></td><td><div><div>**Optional.**</div><div>The list of transactions for this payment. This field is only present when at least one payment attempt has been made. If the payment status is `pending` and no payment attempt has occurred, this field will not be returned. Each transaction object contains the following fields:</div><div>`id` string</div><span>**Required.** The alpha-numeric payment gateway order ID.</span><div>`pg_transaction_id` string</div><span>**Required.** The alpha-numeric payment gateway payment ID.</span><div>`type` string</div><span>**Required.** The payment type for this transactions. Only, `billdesk` or `razorpay` or `payu` or `zaakpay` are supported.</span><div>`status` string</div><span>**Required.** The status of the transaction. Can be one of `pending` or `success` or `failed`.</span><div><div>At most one transaction can have a `success` status.</div></div><div>`created_timestamp` integer</div><span>**Required.** Time when transaction was created in epoch seconds.</span><div>`updated_timestamp` integer</div><span>**Required.** Time when transaction was last updated in epoch seconds.</span><div>`method` object</div><div>**Optional.** the payment method information might not be available for failed payments</div><span>`type` string **Required.** The describes the type of payment method used by consumer to pay for the order. Can be one of `upi` or `card` or `wallet` or `netbanking`.</span><div>`error` object</div><div>**Optional.** the payment error details might not be available for all payments attempts</div><span>`code` string **Required.** The describes the payment failure reason that is generated by payment gateway and Meta returns this to partners.</span><span>`reason` string **Required.** The describes the payment failure reason in plain text that is generated by payment gateway and Meta returns this to partners.</span><div>`refunds` array</div><div>**Optional.** The list of refunds for this order. Each refund object contains the following fields:</div><span>`id` string **Required.** The alpha-numeric ID of the refund.</span><span>`amount` object **Required.** The total amount of the refund.</span><span>`speed_processed` string **Required.** Speed by which refund was processed. Can be one of `instant` or `normal`.</span><span>`status` string **Required.** The status of the refund. Can be one of `pending`, `success` or `failed`.</span><span>`created_timestamp` integer **Required.** Time when refund was created in epoch seconds.</span><span>`updated_timestamp` integer **Required.** Time when refund was last updated in epoch seconds.</span></div></td></tr><tr><td><div><div>`additional_info1-7`</div><div>string</div></div></td><td><div><div>**Optional.**</div><div>Supported for only BillDesk PG, this contains string values sent as part of Order Details message.</div></div></td></tr><tr><td><div><div>`receipt`</div><div>string</div></div></td><td><div><div>**Optional.**</div><div>Supported for only Razorpay PG, this contains the receipt-value sent as part of Order Details message.</div></div></td></tr><tr><td><div><div>`notes`</div><div>object</div></div></td><td><div><div>**Optional.**</div><div>Supported for only Razorpay PG, this contains the key-value pairs sent as part of Order Details message.</div></div></td></tr><tr><td><div><div>`udf1-4`</div><div>string</div></div></td><td><div><div>**Optional.**</div><div>Supported for only PayU PG, this contains string values sent as part of Order Details message.</div></div></td></tr><tr><td><div><div>`extra1-2`</div><div>string</div></div></td><td><div><div>**Optional.**</div><div>Supported for only Zaakpay PG, this contains string values sent as part of Order Details message.</div></div></td></tr></tbody></table>

</div><div id="bkmrk-payment-status"><div id="bkmrk-payment-status-1"><div>##### Payment Status

</div></div></div><div><table><thead><tr><th><span>Status </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`pending`</div></div></td><td><div><div>The order has been created but payment has not yet been captured. This status covers two scenarios:</div><span>**No payment attempt yet:** The `transactions` array will not be present in the response.</span><span>**Payment attempted but failed:** The `transactions` array will contain one or more entries with `status` set to `failed`.</span></div></td></tr><tr><td><div><div>`captured`</div></div></td><td><div><div>The payment was successfully captured. The `transactions` array will contain an entry with `status` set to `success`.</div></div></td></tr></tbody></table>

</div><div>An example successful response looks like this:</div><div>Shown here is an example for a generic error:</div><div id="bkmrk-response-by-payment-"><div id="bkmrk-response-by-payment--1"><div>##### Response by Payment Stage

</div></div></div><div>The response payload varies depending on the payment stage. Below are examples for each stage.</div><div>**No payment attempted** — The user has not yet attempted payment. Only order-level fields are returned; the `transactions` array is not present.</div><div>**Payment successful** — The user completed payment and the payment gateway confirmed capture. The `transactions` array contains the successful transaction with payment method details.</div><div>**Payment failed** — The user attempted payment but it failed. The overall payment status remains `pending` (the order is still awaiting successful payment), but the `transactions` array contains the failed attempt with error details.</div><div id="bkmrk-step-6%3A-update-order"><div id="bkmrk-step-6%3A-update-order-1"><div>#### Step 6: Update Order Status

</div></div></div><div><div>Businesses *must* send updates to their order using the `order_status` message instead of text messages since the latest status of an order displayed on the order details page is only based on `order_status` messages.</div></div><div>To notify the customer with updates to an order, you can send an `interactive` message of type `order_status` as shown below.</div><div>The following table describes the fields in the `order_status` interactive message:</div><div><table><thead><tr><th><span>Object </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`type`</div><div>string</div></div></td><td><div><div>**Required.** Must be “order_status”</div></div></td></tr><tr><td><div><div>`body`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>An object with the body of the message. The object contains the following field:</div><div>`text` string</div><span>**Required** if `body` is present. The content of the message. Emojis and markdown are supported. Maximum length is 1024 characters.</span></div></td></tr><tr><td><div><div>`footer`</div><div>object</div></div></td><td><div><div>**Optional.**</div><div>An object with the footer of the message. The object contains the following field:</div><div>`text` string</div><span>**Required** if `footer` is present. The footer content. Emojis, markdown, and links are supported. Maximum length is 60 characters.</span></div></td></tr><tr><td><div><div>`action`</div><div>object</div></div></td><td><div><div>**Required.**</div><div>An action object you want the user to perform after reading the message. This action object contains the following fields:</div><div>`name` string</div><span>**Required**. Must be “review\_order”.</span><div>`parameters` object</div><span>See [Parameters Object](#bkmrk-parameters-object-4) for information.</span></div></td></tr></tbody></table>

</div><div id="bkmrk-parameters-object-3"><div id="bkmrk-parameters-object-4"><div>##### Parameters object

</div></div></div><div>The `parameters` object contains the following fields:</div><div><table><thead><tr><th><span>Value </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`reference_id`</div><div>string</div></div></td><td><div><div>**Required.**</div><div>The ID sent by the business in the `order_details` message.</div></div></td></tr><tr><td><div><div>`order`</div><div>object</div></div></td><td><div><div>**Required.** This object contains the following fields:</div><div>`status` string</div><span>**Required.** The new order `status`. Must be one of `processing`, `partially_shipped`, `shipped`, `completed`, `canceled`.</span><div>`description` string</div><span>**Optional.** Text for sharing status related information in `order_details`. Could be useful while sending cancellation. Max character limit is 120 characters.</span></div></td></tr></tbody></table>

</div><div>`order_status` message introduces two new errors that are summarized below.</div><div><table><thead><tr><th><span>Error Code </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`2046` - Invalid status transition</div></div></td><td><div><div>The order status transition is not allowed.</div></div></td></tr><tr><td><div><div>`2047` - Cannot cancel order</div></div></td><td><div><div>Cannot cancel the order since the user has already paid for it.</div></div></td></tr></tbody></table>

</div><div id="bkmrk-product-experience-3"><div id="bkmrk-product-experience-4"><div>##### Product Experience

</div></div></div><div>Customers receive each `order_status` update as a separate message in their chat thread, that references their original `order_details` message as shown below (left). The order details page always displays the latest valid status communicated to the customer using the `order_status` message as shown below (right).</div><div><div><div><div><div>*\[image removed - too large for import\]*</div></div></div><div><div><div>*\[image removed - too large for import\]*</div></div></div></div></div><div id="bkmrk-supported-order-stat"><div id="bkmrk-supported-order-stat-1"><div>##### Supported Order Status and Transitions

</div></div></div><div>Currently we support the following order status values:</div><div><table><thead><tr><th><span>Value </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`pending`</div></div></td><td><div><div>User has not successfully paid yet</div></div></td></tr><tr><td><div><div>`processing`</div></div></td><td><div><div>User payment authorized, merchant/partner is fulfilling the order, performing service, etc.</div></div></td></tr><tr><td><div><div>`partially-shipped`</div></div></td><td><div><div>A portion of the products in the order have been shipped by the merchant</div></div></td></tr><tr><td><div><div>`shipped`</div></div></td><td><div><div>All the products in the order have been shipped by the merchant</div></div></td></tr><tr><td><div><div>`completed`</div></div></td><td><div><div>The order is completed and no further action is expected from the user or the partner/merchant</div></div></td></tr><tr><td><div><div>`canceled`</div></div></td><td><div><div>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</div></div></td></tr></tbody></table>

</div><div>Order status transitions are restricted for consistency of consumer experience. Allowed status transitions are summarized below:</div><span>Initial status of an order is always `pending`, which is sent in `order_details` message.</span><span>`canceled` and `completed` are terminal status and cannot be updated to any other status.</span><span>`pending` can transition to any of the other statuses including `processing`, `shipped`, `partially-shipped`.</span><span>`processing`, `shipped` and `partially-shipped` are equivalent statuses and can transition between one another or to one of the terminal statuses.</span><div>*\[image removed - too large for import\]*</div><div>Upon sending an `order_status` message with an invalid transition, you will receive an error webhook with the error code `2046` and message “New order status was not correctly transitioned.”</div><div id="bkmrk-canceling-an-order"><div id="bkmrk-canceling-an-order-1"><div>##### Canceling an Order

</div></div></div><div>An order can be `canceled` by sending an `order_status` message with the status `canceled`. The customer cannot pay for an order that is canceled. The customer receives an `order_status` message and order details page is updated to show that the order is canceled and the “Continue” button removed. The *optional* text shown below “Order canceled” on the order details page can be specified using the `description` field in the `order_status` message.</div><div>An order can be canceled only if the user has not already paid for the order. If the user has paid and you send an `order_status` message with `canceled` status, you will receive an error webhook with error code `2047` and message “Could not change order status to ‘canceled’”.</div><div id="bkmrk-step-7%3A-reconcile-pa"><div id="bkmrk-step-7%3A-reconcile-pa-1"><div>#### Step 7: Reconcile Payments

</div></div></div><div>WhatsApp does not support payment reconciliations. Businesses should use their payment gateway account to reconcile the payments using the `reference_id` provided in the `order_details` messages and the `id` of the transactions returned as part of the payment lookup query.</div><div id="bkmrk-merchant-preferred-u"><div id="bkmrk-merchant-preferred-u-1"><div>### Merchant Preferred UPI Payment Method

</div></div></div><div>Now merchants can specify up to one 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 the “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.</div><div>Note: This feature is available on consumer apps on and above version: 2.24.21.0</div><div id="bkmrk-updates-to-order-det"><div id="bkmrk-updates-to-order-det-1"><div>#### Updates to Order Details Payload

</div></div></div><div id="bkmrk-list-of-supported-ap"><div id="bkmrk-list-of-supported-ap-1"><div>#### List of supported apps:

</div></div></div><div><table><thead><tr><th><span>UPI Application </span></th><th><span>Application ID to be passed in Order Details payload </span></th></tr></thead><tbody><tr><td><div><div>Google Pay</div></div></td><td><div><div>gpay</div></div></td></tr><tr><td><div><div>PhonePe</div></div></td><td><div><div>phonepe</div></div></td></tr><tr><td><div><div>PayTm</div></div></td><td><div><div>paytm</div></div></td></tr><tr><td><div><div>BHIM</div></div></td><td><div><div>bhim</div></div></td></tr><tr><td><div><div>Amazon Pay</div></div></td><td><div><div>amazonpay</div></div></td></tr><tr><td><div><div>CRED</div></div></td><td><div><div>cred</div></div></td></tr><tr><td><div><div>Mobikwik</div></div></td><td><div><div>mobikwik</div></div></td></tr></tbody></table>

</div><div id="bkmrk-restrict-available-p"><div id="bkmrk-restrict-available-p-1"><div>### Restrict Available Payment Options

</div></div></div><div>Merchants can specify which payment options to show in checkout flow between UPI and Web options. This will allow merchants to enable only UPI or credit card(any PG available option) to accept payments for invoices.</div><div><div>UPI transactions are limited to ₹5,00,000. For higher amounts, set `enabled_payment_options` to `["web"]` to use your payment gateway’s web checkout. Payments with UPI enabled above this limit will fail.</div></div><div>Note: This feature is available on consumer apps on and above version: 2.24.22.4</div><div id="bkmrk-updates-to-order-det-3"><div id="bkmrk-updates-to-order-det-4"><div>#### Updates to Order Details Payload

</div></div></div><div id="bkmrk-list-of-payment-opti"><div id="bkmrk-list-of-payment-opti-1"><div>#### List of payment options

</div></div></div><div><table><thead><tr><th><span>Enabled Option </span></th><th><span>Experience in checkout flow </span></th></tr></thead><tbody><tr><td><div><div>upi</div></div></td><td><div><div>Only UPI apps are show in checkout flow</div></div></td></tr><tr><td><div><div>web</div></div></td><td><div><div>Payment gateway webpage is loaded and merchant payment gateway account configured payment options will be shown in the checkout flow.</div></div></td></tr></tbody></table>

</div><div><div>Some Payment Gateways allow customization of payment options that are shown in payment link or web based checkout flow. Please contact Payment Gateway to restricting payment options in payment link or web page.</div></div><div id="bkmrk-third-party-validati"><div id="bkmrk-third-party-validati-1"><div>### Third Party Validation with Razorpay and PayU Payment Gateways

</div></div></div><div>We now support TPV for RazorPay and PayU merchants, this allows merchants to specify the consumer accounts from which orders needs to be paid. Since, the consumer bank account information is sensitive, please work with Payment Gateways to procure public encryption key and pass the encryption information as part of Order details message.</div><div>To use this feature which is in alpha testing, please reach out to Meta payments team - whatsappindia-bizpayments-support@meta.com</div><div id="bkmrk-updates-to-order-det-6"><div id="bkmrk-updates-to-order-det-7"><div>#### Updates to Order Details Payload to support TPV for Razorpay merchants

</div></div></div><div>The raw value before encryption should look something like the following:</div><div id="bkmrk-updates-to-order-det-9"><div id="bkmrk-updates-to-order-det-10"><div>#### Updates to Order Details Payload to support TPV for PayU merchants

</div></div></div><div>The raw value before encryption should look like the following:</div><div><div>Note please closely work with Meta and Payment Gateway teams(RazorPay or PayU) to unlock this feature as we are still in alpha testing phase.</div></div><div id="bkmrk-security-considerati"><div id="bkmrk-security-considerati-1"><div>### Security Considerations

</div></div></div><div>Businesses should comply with local security and regulatory requirements in India. They should not rely solely on the status of the transaction provided in the webhook and must use payment lookup API to retrieve the statuses directly from WhatsApp. Businesses must always sanitize/validate the data in the API responses or webhooks to protect against SSRF attacks.</div><div id="bkmrk-checklist-for-integr"><div id="bkmrk-checklist-for-integr-1"><div>### Checklist for Integrated Merchants

</div></div></div><div>Ensure that `order_status` message is send to consumer informing them about updates to an order after receiving transaction updates for an order.</div><div>Ensure the merchant is verified and WABA contact is marked with a verified check.</div><div>Verify the WABA is mapped to appropriate merchant initiated messaging tier(1k, 10k and 100k per day)</div><div>Merchant should list the customer support information in the profile screen incase consumer wants to report any issues.</div><div>Migrate to “payment_settings” in place of “payment_type” and “payment_configuration”. This is the recommended way, and gives access to features likes “notes” and “udf” fields. For an example, [view the payloads above](#bkmrk-step-1%3A-send-order-d-1).</div></div>