# Take payments in WhatsApp

> Link your payment provider in WhatsApp Manager, choose it on your number, and ask customers to pay for an order without leaving WhatsApp.

Source: https://docs.soosh.io/guides/workspace/take-payments-in-whatsapp/

WhatsApp checkout lets a customer pay for an order inside the chat. You send a
payment request from the order, WhatsApp shows the customer a **Review and
pay** message, and they pay with UPI, a card or net banking without leaving
WhatsApp. When the payment goes through, Soosh marks the order paid and
confirms it.

## Before you start

- **WhatsApp checkout** on your number's page. If you don't see it, contact the Soosh team.
- The Growth plan or higher. On other plans the **Request payment** button and
  the number's **WhatsApp checkout** settings show the plan that includes
  them.
- [A product catalog](https://docs.soosh.io/guides/workspace/set-up-a-product-catalog/) and
  [orders from WhatsApp](https://docs.soosh.io/guides/workspace/manage-orders-from-whatsapp/)
- A Razorpay, PayU, BillDesk or Zaakpay account for your business
- Admin access to the business in Meta Business Suite, to link the account
- Edit access to **WhatsApp numbers** to choose the payment configuration, and
  Create and edit access to **Orders** to ask for payment

WhatsApp checkout works in India and in rupees only. An order whose prices
aren't in rupees can't be asked to pay.

Payments go through your own payment provider account. Soosh never holds your
provider's keys, and the money goes to you, not to Soosh.

## Link your payment provider

You link your provider in WhatsApp Manager, not in Soosh. Meta calls the link a
payment configuration.

1. In [WhatsApp Manager](https://business.facebook.com/wa/manage/home/), open
   your WhatsApp Business Account and go to **Payment configurations**.
2. Add a configuration for your payment provider and follow the steps there to
   connect your account.
3. Test the configuration, if WhatsApp Manager asks you to, until it shows as
   active.

## Choose the configuration on your number

1. Open [**Settings > WhatsApp numbers**](https://app.soosh.io/settings/numbers) and click the number customers write to.
2. Find **WhatsApp checkout**. It lists the configurations WhatsApp has for the
   number, each with its status.
3. Select an **Active** configuration, then click **Save**.

A configuration that shows **Needs connecting** or **Needs testing** can't be
chosen yet. Finish it in WhatsApp Manager, then click **Check again** or open
the page again.

Soosh takes payments through a Razorpay, PayU, BillDesk or Zaakpay payment
gateway. Another kind of configuration, such as a UPI ID, shows **Not
supported** and can't be chosen.

If the list is empty, you haven't linked a provider for this number's account
yet. To stop taking payments on a number, select **Don't take payments** and
click **Save**. Orders on that number can't then be asked to pay.

## Ask a customer to pay

1. Open the order from [**Orders**](https://app.soosh.io/orders).
2. Click **Request payment**.
3. Choose **Products we ship** or **Digital goods or services**.
4. For products you ship, fill in the delivery address. WhatsApp needs it for
   shipped goods, and the customer doesn't see it.
5. Add tax, shipping or a discount in rupees if the order has them. Leave them
   empty if not. Soosh shows the total the customer will pay.
6. Click **Send payment request**.

The customer gets **Review and pay** in their chat, and the message shows in
your chat with them too, with a **View order** link. The order shows
**Awaiting payment**, and the **Payments** list on the order page records the
request.

If WhatsApp doesn't confirm that it got the message, Soosh says so above the
order. The request has probably gone out, and the order shows it when
WhatsApp's status arrives. You don't need to send it again.

You can only ask for payment while the customer's
[24-hour window](https://docs.soosh.io/concepts/the-24-hour-window/) is open, because the request is
a normal message and not a template. If it has closed, Soosh says so. Ask the
customer to write to you first.

You can't ask for payment for an order that's already paid, cancelled or
delivered.

### One open request at a time

A payment request can be paid for 3 days. While it's open, the **Payments**
list says **Payable until** and the date and time. After that it shows
**Expired**, and the customer can't pay it.

An order has one open request at a time. If the customer hasn't paid the last
one yet, the **Request payment** form says so, and its button changes to **Send
a new payment request**. Click it to replace the old request. Soosh closes the
old one in WhatsApp, so the customer can't pay it any more, and they get a
message saying the earlier request is closed and to pay with the latest one.
Their order isn't cancelled. A closed request shows **Withdrawn** in the
**Payments** list.

WhatsApp can only take that message within 24 hours of the customer's last
message. If it won't take it, the old request stays open and the customer can
still pay it, and Soosh tells you so. The old one also stays open while
WhatsApp hasn't confirmed it got the new one, so the customer always has a
request they can pay; once WhatsApp confirms it, Soosh closes the old one. If
they pay both, refund one in your payment provider.

Sending a payment request can take up to a minute. If Soosh doesn't hear back
in time, it says so instead of showing an error, because the request may still
go out. Check the **Payments** list before you send another.

If a teammate sends a request while you have the form open, Soosh shows that
when you send yours and offers the same button.

## When the customer pays

You don't need to do anything. Once WhatsApp confirms the full amount:

- The order shows **Paid**, with the method the customer used (UPI, card, net
  banking or wallet) and the transaction ID.
- A **New** order is confirmed automatically. The customer gets an order update
  in WhatsApp saying it's being processed, or where it is if you'd already moved
  it on.
- Any other request for the order that's still open is closed, so the customer
  can't pay twice.

If a payment fails, the order shows **Payment failed** with the reason. The
customer can try again on the same request until it expires, or you can send a
new one. Each request is kept in the **Payments** list. When a customer paid
a different amount from the one you asked for, the list shows what they
actually paid, and the order isn't marked **Paid** or confirmed: check the
payment in your payment provider before you send anything.

If WhatsApp's notice of a payment gets lost on the way, Soosh still finds the
payment and shows it on the order.

## See what's been paid

An order shows **Awaiting payment**, **Paid** or **Payment failed** next to its
status. You see it in the list at [**Orders**](https://app.soosh.io/orders), on the order page and
in **WhatsApp orders** in the chat's contact panel. In the chat, the payment
request and each order update show as a card, with a **View order** link.

## Tell the customer where their order is

Soosh sends the customer WhatsApp's order status message in two cases:

- You move a paid order to **Confirmed**, **Shipped** or **Delivered**.
- You cancel an order that has open payment requests.

Moving an unpaid order, for example confirming it by hand, doesn't message the
customer. Nor does moving an order the customer paid a different amount for:
it isn't marked **Paid**.

This needs the customer's 24-hour window to be open. If it has closed, Soosh
moves the order anyway and tells you that the customer wasn't told in WhatsApp.
Open the chat and send them a template if they need to know.

## Cancel an order

When you cancel an order with open payment requests, Soosh closes them in
WhatsApp, so the customer can't pay for a cancelled order. Soosh tells you
before it cancels. If WhatsApp won't take the message (more than 24 hours
since the customer last wrote), or doesn't confirm it got it, a request stays
open until it expires, and Soosh tells you so. If the customer pays it, refund
them in your payment provider.

## Refunds and payments that need a look

Soosh can't refund a payment. Refund it in your payment provider's dashboard. If
you cancel an order that's paid, Soosh reminds you of this before it cancels.
The order stays marked **Paid**.

Money that reaches you is always recorded, even when it isn't what you expected.
The order page shows a warning above the order when you need to act:

| The warning says | What happened | What to do |
|---|---|---|
| The customer paid after this order was cancelled | A payment came in after you cancelled | Refund them in your payment provider |
| The customer paid more than once | Two requests were both paid | Refund the extra payment in your payment provider |
| The customer paid a different amount from the one asked for | The amount paid isn't the request's total | Check it in your payment provider |

> **Note:** If a teammate asks for payment before you do, the order page shows their
> request. Soosh lets you send a new one to replace it, so the customer is only
> ever asked once.

## Related

- [Manage orders from WhatsApp](https://docs.soosh.io/guides/workspace/manage-orders-from-whatsapp/)
- [Set up a product catalog](https://docs.soosh.io/guides/workspace/set-up-a-product-catalog/)
- [The 24-hour window](https://docs.soosh.io/concepts/the-24-hour-window/)
- [Permissions](https://docs.soosh.io/reference/permissions/)
