Available in🇮🇳 India
Customers can pay on UPI from more than a bank account. In their UPI app, they can choose a RuPay credit card, a credit line or a prepaid wallet linked to UPI.
You do not send anything extra in the payment request. The customer chooses the fund source in their UPI app. Create the payment as you do for UPI Intent, UPI Collect or UPI QR. Razorpay returns the fund source on the payment after the customer pays.
Fund Sources
Thepayer_account_type field in the upi object of the payment tells you the fund source.
Where to Find the Fund Source
Readupi.payer_account_type from either of the following:
- The response of the Fetch a Payment API.
- The payment entity in the
payment.authorizedandpayment.capturedwebhook events.
Sample Payloads
- Credit Card on UPI
- Credit Line on UPI
- PPI or Wallet
- Bank Account
payment.captured
Interest-Bearing and Non-Interest-Bearing Credit Lines
NPCI has split Credit Line on UPI into interest-bearing and non-interest-bearing credit lines. You may need to tell them apart for reconciliation, to verify the MDR charged and for accounting.payer_account_typeiscredit_linefor every credit line payment. It does not tell you the type of the credit line.- The
credit_lineobject in theupiobject carries the type.credit_line.typeisinterest_bearingornon_interest_bearing. The object is present only whenpayer_account_typeiscredit_line. - The
credit_lineobject is returned in the response of the Fetch a Payment API and in thepayment.capturedandpayment.failedwebhook events.
Test Mode
You cannot test payments from a credit card, a credit line or a wallet in Test Mode. A test payment always haspayer_account_type as bank_account. Verify these fund sources with a live payment.