PhonePe

Merchant ID, salt key and index.

PhonePe is one of the four gateways GoSell can take money through. It runs on your merchant account and settles straight to your bank.

It works differently from Razorpay and Cashfree: instead of a payment window opening over your store, the customer is sent to PhonePe and returns afterwards. Nothing to configure — the store handles both shapes — but it is worth knowing when you test it.

Before you start

  1. You need a PhonePe Business merchant account with onboarding complete.
  2. PhonePe issues sandbox credentials for testing and separate production ones once you are live. They are not interchangeable.

Getting your credentials

From the PhonePe Business dashboard, or from the onboarding email PhonePe sends:

FieldWhat it is
Merchant IDIdentifies your account to PhonePe.
Salt keySigns every request and verifies every reply. Treat it as a password.
Salt indexWhich salt key is in use — usually 1. PhonePe tells you if it is not.
ModeSandbox while testing, Live once you are onboarded.

Entering them

Integrations → PhonePe, then fill all four. Leave any blank and PhonePe is not offered at checkout, so a half-finished setup can never take a real order.

Set your store URL first. PhonePe is told where to send the customer back, and that address is built from your store URL. If it is wrong or empty, customers pay and then land nowhere. Check Settings → General before your first test.

The callback

PhonePe is handed this address automatically when a payment starts:

https://yourbrand.com/webhooks/payment/phonepe/

If your PhonePe account also asks you to register a webhook URL in their dashboard, use the same one. Every callback is checked against your salt key before it is believed, so a forged call cannot mark an order paid.

The callback is what confirms the order — not the customer arriving back on your site. Someone who pays and closes the tab immediately still gets their order.

Testing it

  1. In Sandbox, place an order and pay with PhonePe's test credentials.
  2. You will be taken to PhonePe and returned afterwards. Confirm the order shows Paid.
  3. Then close the tab on the PhonePe screen straight after paying on a second test order and confirm that one is marked paid too. That is the case the callback exists for.
  4. Switch to Live, swap in production credentials, and place one real low-value order.

Still stuck? Message us on WhatsApp — we would rather answer than have you guess.