INITIATE_PAYMENT
After INITIATE_FD_APPLICATION, the FD is in INITIATED
state. The INITIATE_PAYMENT action code is used to make the payment for this FD.
Use the following payload structure for payment via net-banking
Request
payload: {
paymentGateway: 'PHONEPE',
initiatePaymentRequest: {
mode: 'NET_BANKING',
bankId: 'SBIN',
redirectUrl: 'https://www.google.com/',
orderId: '948d5d54-37f7-4681-b7fa-3da308434224',
},
},
Use the following payload structure for payment via UPI
payload: {
paymentGateway: 'PHONEPE',
initiatePaymentRequest: {
mode: 'UPI_COLLECT',
vpa: 'ankur22@ybl',
redirectUrl: 'https://www.google.com/',
orderId: '948d5d54-37f7-4681-b7fa-3da308434224',
},
},
Response
{
"message": "Payment initiated",
"status": "Success",
"upiQRCodeImage": null,
"upiIntentUrl": null,
"netBankingUrl": null
}
Payload
Field | Type | Supported Values | Description |
---|---|---|---|
paymentGateway | String | PHONEPE | The payment gateway to use. We support PhonePe as the payment gateway |
mode | String | UPI_COLLECT, UPI_QR, NET_BANKING | The payment method to use. We support UPI and net banking as of now. |
bankId | String | SBIN | The bank id corresponding to the user's bank |
redirectUrl | String | The URL to redirect to after a payment is complete | |
orderId | String | This is the order ID received from the INITIATE_FD_APPLICATION action |
Updated 11 months ago