HostMentor Docs

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

  1. Ask for payment. Send an interactive message of type order_details (see Send a message, example Payment request). Give the order your own unique reference_id.
  2. The customer pays without leaving WhatsApp.
  3. Check the result with Retrieve a payment, and always confirm it with your payment gateway before you ship anything.
  4. Update the customer with an order_status message (example Order status).
  5. 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 }.

On this page