mutation

verifyAndChargePayment

Verify the payment status and charge from the customer's BNPL (Buy Now, Pay Later) account after order confirmation.
Arguments
chargeCustomerRequestInput
ChargeCustomerRequestInput
Charge Customer Request.
Response
aggregator
String!
Required
Payment gateway name i.e Simpl, Mswipe.
cart_id
String
Cart id of customer.
delivery_address_id
String
Delivery address id of customer.
message
String!
Required
Human readable message.
order_id
String!
Required
Unique order id.
status
String!
Required
Status of charged payment.
success
Boolean!
Required
Response is successful or not.
Mutation
1mutation verifyAndChargePayment(
2 $chargeCustomerRequestInput: ChargeCustomerRequestInput
3) {
4 verifyAndChargePayment(
5 chargeCustomerRequestInput: $chargeCustomerRequestInput
6 ) {
7 aggregator
8 cart_id
9 delivery_address_id
10 message
11 order_id
12 status
13 success
14 }
15}
Try it
Input Variables
1{
2 "chargeCustomerRequestInput": {
3 "aggregator": "aggregator",
4 "amount": 42,
5 "order_id": "order_id",
6 "transaction_token": "transaction_token",
7 "verified": true
8 }
9}
Response
1{
2 "verifyAndChargePayment": {
3 "aggregator": "aggregator",
4 "cart_id": "cart_id",
5 "delivery_address_id": "delivery_address_id",
6 "message": "message",
7 "order_id": "order_id",
8 "status": "status",
9 "success": true
10 }
11}