Get available payment methods on the payment page, specifying the aggregator for each option, such as 'Netbanking powered by Juspay' and 'Card powered by Razorpay'.
Arguments
amount
Float!Required
Payable amount.
cartId
String!Required
Identifier of the cart.
checkoutMode
String!Required
Option to checkout for self or for others.
pincode
String!Required
The PIN Code of the destination address, e.g. 400059.
cardReference
StringCard reference id of user's debit or credit card.
refresh
BooleanSelect `true` to remove temporary cache files on payment gateway and replace with the latest one.
userDetails
StringURLencoded JSON containing details of an anonymous user.
Response
payment_options
PaymentOptionDetails!Required
Payment option and flow object.
success
Boolean!Required
Response is successful or not.
payment_breakup
JSONPayment Breakup for advance payment.
advance_payment
[AdvancePaymentObject]Advance Payment Array.
Query
1query paymentModeRoutes(2 $amount: Float!3 $cartId: String!4 $checkoutMode: String!5 $pincode: String!6 $cardReference: String7 $refresh: Boolean8 $userDetails: String9) {10 paymentModeRoutes(11 amount: $amount12 cartId: $cartId13 checkoutMode: $checkoutMode14 pincode: $pincode15 cardReference: $cardReference16 refresh: $refresh17 userDetails: $userDetails18 ) {19 success20 payment_breakup21 advance_payment {22 name23 display_priority24 payment_mode_id25 display_name26 }27 }28}
Try it
Input Variables
1{2 "amount": 30.7,3 "cartId": "cartId",4 "checkoutMode": "checkoutMode",5 "pincode": "pincode",6 "cardReference": "cardReference",7 "refresh": true,8 "userDetails": "userDetails"9}
Response
1{2 "paymentModeRoutes": {3 "success": true,4 "payment_breakup": {},5 "advance_payment": [6 {7 "name": "A name",8 "display_priority": 42,9 "payment_mode_id": 42,10 "display_name": "display_name"11 }12 ]13 }14}
Was this section helpful?