query

paymentModeRoutes

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
String
Card reference id of user's debit or credit card.
refresh
Boolean
Select `true` to remove temporary cache files on payment gateway and replace with the latest one.
userDetails
String
URLencoded 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
JSON
Payment 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: String
7 $refresh: Boolean
8 $userDetails: String
9) {
10 paymentModeRoutes(
11 amount: $amount
12 cartId: $cartId
13 checkoutMode: $checkoutMode
14 pincode: $pincode
15 cardReference: $cardReference
16 refresh: $refresh
17 userDetails: $userDetails
18 ) {
19 success
20 payment_breakup
21 advance_payment {
22 name
23 display_priority
24 payment_mode_id
25 display_name
26 }
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}