Guides

INITIATE_PAYMENT

After INITIATE_FD_APPLICATION, the FD is in INITIATEDstate. 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

FieldTypeSupported ValuesDescription
paymentGatewayStringPHONEPEThe payment gateway to use. We support PhonePe as the payment gateway
modeStringUPI_COLLECT, UPI_QR, NET_BANKINGThe payment method to use. We support UPI and net banking as of now.
bankIdStringSBINThe bank id corresponding to the user's bank
redirectUrlStringThe URL to redirect to after a payment is complete
orderIdStringThis is the order ID received from the INITIATE_FD_APPLICATION action