Get available payment methods on the payment page for POS, specifying the aggregator for each option, such as 'CARD powered by Juspay' and 'QR powered by Razorpay'.
Arguments
amount
Int!Required
Payable amount.
cartId
String!Required
Identifier of the cart.
checkoutMode
String!Required
Option to checkout for self or for others.
orderType
String!Required
The order type of shipment
HomeDelivery - If the customer wants the order home-delivered
PickAtStore - If the customer wants the handover of an order at the store itself.
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 posPaymentModeRoutes(2 $amount: Int!3 $cartId: String!4 $checkoutMode: String!5 $orderType: String!6 $pincode: String!7 $cardreference: String8 $refresh: Boolean9 $userDetails: String10) {11 posPaymentModeRoutes(12 amount: $amount13 cartId: $cartId14 checkoutMode: $checkoutMode15 orderType: $orderType16 pincode: $pincode17 cardreference: $cardreference18 refresh: $refresh19 userDetails: $userDetails20 ) {21 success22 payment_breakup23 advance_payment {24 name25 display_priority26 payment_mode_id27 display_name28 }29 }30}
Try it
Input Variables
1{2 "amount": 42,3 "cartId": "cartId",4 "checkoutMode": "checkoutMode",5 "orderType": "orderType",6 "pincode": "pincode",7 "cardreference": "cardreference",8 "refresh": true,9 "userDetails": "userDetails"10}
Response
1{2 "posPaymentModeRoutes": {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?