Begin payment process for an order by initializing it through a payment link.Upon successful initialization, the response includes details about the payment status, aggregator details, order IDs, polling URL for status updates, and other relevant information.
Arguments
paymentInitializationRequestInput
PaymentInitializationRequestInputPayment Link Initialization Request.
Response
aggregator
String!Required
Payment gateway name.
aggregator_order_id
StringPayment order id.
amount
IntPayable amount.
bqr_image
StringBharat qr image url.
currency
StringCurrency code.
customer_id
StringPayment gateway customer id.
device_id
StringEDC machine Unique Identifier.
merchant_order_id
String!Required
Order id.
method
String!Required
Payment method.
polling_url
String!Required
Polling url.
razorpay_payment_id
StringPayment id.
status
StringStatus of payment.
success
Boolean!Required
Response is successful or not.
timeout
IntTimeout.
upi_poll_url
StringUPI poll url.
virtual_id
StringPayment virtual address.
vpa
StringCustomer vpa address.
Mutation
1mutation initialisePaymentPaymentLink(2 $paymentInitializationRequestInput: PaymentInitializationRequestInput3) {4 initialisePaymentPaymentLink(5 paymentInitializationRequestInput: $paymentInitializationRequestInput6 ) {7 aggregator8 aggregator_order_id9 amount10 bqr_image11 currency12 customer_id13 device_id14 merchant_order_id15 method16 polling_url17 razorpay_payment_id18 status19 success20 timeout21 upi_poll_url22 virtual_id23 vpa24 }25}
Try it
Input Variables
1{2 "paymentInitializationRequestInput": {3 "aggregator": "aggregator",4 "amount": 42,5 "contact": "contact",6 "currency": "currency",7 "customer_id": "customer_id",8 "device_id": "device_id",9 "email": "[email protected]",10 "merchant_order_id": "merchant_order_id",11 "method": "method",12 "order_id": "order_id",13 "razorpay_payment_id": "razorpay_payment_id",14 "timeout": 42,15 "vpa": "vpa"16 }17}
Response
1{2 "initialisePaymentPaymentLink": {3 "aggregator": "aggregator",4 "aggregator_order_id": "aggregator_order_id",5 "amount": 42,6 "bqr_image": "bqr_image",7 "currency": "currency",8 "customer_id": "customer_id",9 "device_id": "device_id",10 "merchant_order_id": "merchant_order_id",11 "method": "method",12 "polling_url": "polling_url",13 "razorpay_payment_id": "razorpay_payment_id",14 "status": "status",15 "success": true,16 "timeout": 42,17 "upi_poll_url": "upi_poll_url",18 "virtual_id": "virtual_id",19 "vpa": "vpa"20 }21}
Was this section helpful?