How a PhonePe payment works
PhonePe is an app-based wallet payment method:- The customer selects PhonePe at checkout.
- Payrails returns a redirect from Unlimit. It opens the PhonePe app through a deep link, or the Unlimit payment page when Unlimit returns only a page URL.
- The customer approves the payment in the PhonePe app.
- The customer returns to your
returnInfoURL. - Unlimit sends the result to Payrails, and Payrails updates the payment.
Supported currencies and countries
PhonePe supports INR (Indian rupee) as its only presentment currency.Supported workflows
The response redirects to an app deep link, so integrate PhonePe through the Payrails API and handle the redirect in your own checkout.Before you begin
Complete these steps before you send your first PhonePe payment through Unlimit:- Set up an Unlimit integration in your workspace. Contact your Payrails account team if Unlimit isn’t listed in your Payrails Portal yet.
- Ask Unlimit to enable PhonePe on your Unlimit terminal.
- In the Payrails Portal, go to Settings → Integrations, open your Unlimit integration, and turn on Processing payments in India. Select PhonePe under Payment methods, and save.
- Add PhonePe as a payment option in your workflow.
Request fields for Unlimit
Send these fields in the authorize request, in addition to the standard authorize fields. Payrails checks Required fields and returns an error when one is missing. Fields required by the PSP pass the Payrails checks but the PSP can decline the payment without them.Authorize a PhonePe payment
Call authorize a payment withphonePe as the paymentMethodCode. The response includes the redirect to the PhonePe app or the Unlimit payment page.
Authorize request
How Unlimit handles PhonePe
- Unlimit charges PhonePe payments directly and reports only the completed payment. Payrails records the authorization and the capture from that single notification.
- To return funds after a successful payment, refund it.
- Unlimit doesn’t return acquirer reference, retrieval reference or authorization code values for PhonePe payments.
- Merchant-initiated transactions (MIT) through Unlimit work only with cards, Apple Pay, and Google Pay. Payrails returns an error for a PhonePe MIT.