restrictedPaymentOptions is to restrict payment options on check for this order, this field a map containg paymentMode as key and List as value.
NETBANKING: List of Netbanking codes
CREDIT_CARD: List of card scheme, ex: ["MASTERCARD","VISA","RUPAY","DINERS","AMEX"]
DEBIT_CARD: List of card scheme, ex: ["MASTERCARD","VISA","RUPAY","DINERS","AMEX"]
PREPAID_CARD: List of card scheme, ex: ["MASTERCARD","VISA","RUPAY","DINERS","AMEX"]
CORPORATE_CARD: List of card scheme, ex: ["MASTERCARD","VISA","RUPAY","DINERS","AMEX"]
UPI: null
WALLET: List of wallet codes
{
"orderId": "RANDOMID123",
"amount": {
"value": 100.00,
"currency": "INR"
},
"returnUrl": "https://glaring-version.net/",
"notifyUrl": "https://inconsequential-annual.biz/",
"customerInfo": {
"firstName": "Merlin",
"lastName": "Collins",
"address": {
"streetName": "Jill Zemlak",
"city": "Darioside",
"state": "Minnesota",
"country": "Angola",
"zipcode": "06422"
},
"email": "Emmitt37@yahoo.com",
"phoneNumber": "9889890909"
},
"customParameters": {
"customParam1": "value",
"customParam2": "value2"
},
"description": "Order description",
"restrictedPaymentOptions": {
"UPI": null,
"NET_BANKING" : ["NB001"],
"CREDIT_CARD" : ["MASTERCARD"]
}
}
curl --location --request POST '/api/v0/orders' \
--header 'merchantAccessKey;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"orderId": "RANDOMID123",
"amount": {
"value": 100.00,
"currency": "INR"
},
"returnUrl": "https://glaring-version.net/",
"notifyUrl": "https://inconsequential-annual.biz/",
"customerInfo": {
"firstName": "Merlin",
"lastName": "Collins",
"address": {
"streetName": "Jill Zemlak",
"city": "Darioside",
"state": "Minnesota",
"country": "Angola",
"zipcode": "06422"
},
"email": "Emmitt37@yahoo.com",
"phoneNumber": "9889890909"
},
"customParameters": {
"customParam1": "value",
"customParam2": "value2"
},
"description": "Order description",
"restrictedPaymentOptions": {
"UPI": null,
"NET_BANKING" : ["NB001"],
"CREDIT_CARD" : ["MASTERCARD"]
}
}'
{
"response_code": 0,
"response_message": "string",
"payload": {
"redirectionUrl": "string",
"orderId": "string"
}
}