mutation

createPaymentOrder

Create an order and payment on the aggregator side.
Arguments
paymentOrderInput
PaymentOrderInput
Payment Order Request Schema.
Response
callback_url
String
Callback url for aggregator.
Payment Order Data Schema.
message
String!
Required
Detailed message.
order_id
String
Merchant order id.
payment_confirm_url
String
Payment confirm url for aggregator.
status_code
Int
HTTP status code.
success
Boolean
Successful or failure.
Mutation
1mutation createPaymentOrder($paymentOrderInput: PaymentOrderInput) {
2 createPaymentOrder(paymentOrderInput: $paymentOrderInput) {
3 callback_url
4 data {
5 aggregator
6 amount
7 callback_url
8 contact
9 currency
10 customer_id
11 email
12 merchant_order_id
13 method
14 order_id
15 }
16 message
17 order_id
18 payment_confirm_url
19 status_code
20 success
21 }
22}
Try it
Input Variables
1{
2 "paymentOrderInput": {
3 "order_id": "order_id",
4 "payment_methods": [
5 {
6 "amount": 30.7,
7 "meta": {
8 "merchant_code": "merchant_code",
9 "payment_gateway": "payment_gateway",
10 "payment_identifier": "payment_identifier"
11 },
12 "mode": "mode",
13 "name": "A name",
14 "payment": "payment"
15 }
16 ],
17 "shipment_id": "shipment_id"
18 }
19}
Response
1{
2 "createPaymentOrder": {
3 "callback_url": "callback_url",
4 "data": {
5 "aggregator": "aggregator",
6 "amount": 30.7,
7 "callback_url": "callback_url",
8 "contact": "contact",
9 "currency": "currency",
10 "customer_id": "customer_id",
11 "email": "[email protected]",
12 "merchant_order_id": "merchant_order_id",
13 "method": "method",
14 "order_id": "order_id"
15 },
16 "message": "message",
17 "order_id": "order_id",
18 "payment_confirm_url": "payment_confirm_url",
19 "status_code": 42,
20 "success": true
21 }
22}