Payments
Accept UPI, card and netbanking payments inside WhatsApp in India through Razorpay or PayU, check payment status and issue refunds.
Customers in India can pay you inside WhatsApp, using UPI, cards or netbanking, through your own payment gateway account (Razorpay or PayU).
Before you start
Link your payment gateway to your WhatsApp Business Account in WhatsApp Manager under Payments. That creates a payment configuration with a name you choose. You'll use the name in every payment request.
How a payment works
- Ask for payment. Send an
interactivemessage of typeorder_details(see Send a message, example Payment request). Give the order your own uniquereference_id. - The customer pays without leaving WhatsApp.
- Check the result with Retrieve a payment, and always confirm it with your payment gateway before you ship anything.
- Update the customer with an
order_statusmessage (example Order status). - Refund with Refund a payment if needed.
Amounts
Amounts are written as a value and an offset. The real amount is value ÷ offset, and offset is always 100. So ₹499.00 is { "value": 49900, "offset": 100 }.