curl --request POST \
--url https://api.paytring.com/api/v2/info/payment/methods \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'user-agent: <user-agent>' \
--data '{
"amount": "<string>",
"currency": "<string>",
"callback": "<string>",
"udf1": "<string>",
"pg": "<string>",
"pg_pool_id": "<string>"
}'
"{\n {\n\n \"status\": true,\n\n \"data\": {\n\n \"netbanking\": {\n\n \"priority\": 0,\n\n \"data\": [\n\n {\n\n \"code\": \"INB1134\",\n\n \"title\": \"Development Credit Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"KOTAK\",\n\n \"title\": \"Kotak Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"BCCO\",\n\n \"title\": \"Bassien Catholic Coop Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n \n {\n\n \"code\": \"CANARA\",\n\n \"title\": \"Canara Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n\n {\n\n \"code\": \"PNBCO\",\n\n \"title\": \"Punjab National Bank - Corporate Banking\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"DIGIDBS\",\n\n \"title\": \"Digibank by DBS\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n\n {\n\n \"code\": \"FINCARER\",\n\n \"title\": \"Fincare Bank - Retail\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"HDFC\",\n\n \"title\": \"HDFC Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"IDFC\",\n\n \"title\": \"IDFC FIRST Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"PNBSB\",\n\n \"title\": \"Punjab and Sindh Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n \n {\n\n \"code\": \"RBLBKCO\",\n\n \"title\": \"RBL Bank Limited - Corporate Banking\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"SBI\",\n\n \"title\": \"State bank Of India\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n\n {\n\n \"code\": \"AXIS\",\n\n \"title\": \"AXIS Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"YESBK\",\n\n \"title\": \"Yes Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n ]\n\n },\n\n \"debitcard\": {\n\n \"priority\": 1,\n\n \"data\": [\n\n {\n\n \"code\": \"VI\",\n\n \"title\": \"Visa Credit Card\"\n\n },\n\n {\n\n \"code\": \"MC\",\n\n \"title\": \"Master Card Credit Card\"\n\n },\n\n {\n\n \"code\": \"RU\",\n\n \"title\": \"Rupay Credit Card\"\n\n },\n\n {\n\n \"code\": \"AX\",\n\n \"title\": \"Amex Credit Card\"\n\n },\n\n ]\n\n },\n\n \"creditcard\": {\n\n \"priority\": 1,\n\n \"data\": [\n\n {\n\n \"code\": \"VI\",\n\n \"title\": \"Visa Credit Card\"\n\n },\n\n {\n\n \"code\": \"MC\",\n\n \"title\": \"Master Card Credit Card\"\n\n },\n\n {\n\n \"code\": \"RU\",\n\n \"title\": \"Rupay Credit Card\"\n\n },\n\n {\n\n \"code\": \"AX\",\n\n \"title\": \"Amex Credit Card\"\n\n },\n\n ]\n\n },\n\n \"upi\": {\n\n \"priority\": 2,\n\n \"data\": {\n\n \"UPI\": \"UPI\"\n\n }\n\n },\n\n \"intent\": false,\n\n \"wallet\": false,\n\n \"emi\": false,\n\n \"scanAndPay\": false,\n\n \"upiQr\": true,\n\n \"convenience_fee\": false\n\n },\n\n \"request_id\": x67xxxxxxxx19a\"\n\n}\n}"
It includes fetch methods for payment data.
curl --request POST \
--url https://api.paytring.com/api/v2/info/payment/methods \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'user-agent: <user-agent>' \
--data '{
"amount": "<string>",
"currency": "<string>",
"callback": "<string>",
"udf1": "<string>",
"pg": "<string>",
"pg_pool_id": "<string>"
}'
"{\n {\n\n \"status\": true,\n\n \"data\": {\n\n \"netbanking\": {\n\n \"priority\": 0,\n\n \"data\": [\n\n {\n\n \"code\": \"INB1134\",\n\n \"title\": \"Development Credit Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"KOTAK\",\n\n \"title\": \"Kotak Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"BCCO\",\n\n \"title\": \"Bassien Catholic Coop Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n \n {\n\n \"code\": \"CANARA\",\n\n \"title\": \"Canara Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n\n {\n\n \"code\": \"PNBCO\",\n\n \"title\": \"Punjab National Bank - Corporate Banking\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"DIGIDBS\",\n\n \"title\": \"Digibank by DBS\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n\n {\n\n \"code\": \"FINCARER\",\n\n \"title\": \"Fincare Bank - Retail\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"HDFC\",\n\n \"title\": \"HDFC Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"IDFC\",\n\n \"title\": \"IDFC FIRST Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"PNBSB\",\n\n \"title\": \"Punjab and Sindh Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n \n {\n\n \"code\": \"RBLBKCO\",\n\n \"title\": \"RBL Bank Limited - Corporate Banking\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"SBI\",\n\n \"title\": \"State bank Of India\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n\n {\n\n \"code\": \"AXIS\",\n\n \"title\": \"AXIS Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n {\n\n \"code\": \"YESBK\",\n\n \"title\": \"Yes Bank\",\n\n \"health\": true,\n\n \"favorite\": true,\n\n \"image\": \"https://cdn.paytring.com/cdn/bank/inb1134.svg\"\n\n },\n\n ]\n\n },\n\n \"debitcard\": {\n\n \"priority\": 1,\n\n \"data\": [\n\n {\n\n \"code\": \"VI\",\n\n \"title\": \"Visa Credit Card\"\n\n },\n\n {\n\n \"code\": \"MC\",\n\n \"title\": \"Master Card Credit Card\"\n\n },\n\n {\n\n \"code\": \"RU\",\n\n \"title\": \"Rupay Credit Card\"\n\n },\n\n {\n\n \"code\": \"AX\",\n\n \"title\": \"Amex Credit Card\"\n\n },\n\n ]\n\n },\n\n \"creditcard\": {\n\n \"priority\": 1,\n\n \"data\": [\n\n {\n\n \"code\": \"VI\",\n\n \"title\": \"Visa Credit Card\"\n\n },\n\n {\n\n \"code\": \"MC\",\n\n \"title\": \"Master Card Credit Card\"\n\n },\n\n {\n\n \"code\": \"RU\",\n\n \"title\": \"Rupay Credit Card\"\n\n },\n\n {\n\n \"code\": \"AX\",\n\n \"title\": \"Amex Credit Card\"\n\n },\n\n ]\n\n },\n\n \"upi\": {\n\n \"priority\": 2,\n\n \"data\": {\n\n \"UPI\": \"UPI\"\n\n }\n\n },\n\n \"intent\": false,\n\n \"wallet\": false,\n\n \"emi\": false,\n\n \"scanAndPay\": false,\n\n \"upiQr\": true,\n\n \"convenience_fee\": false\n\n },\n\n \"request_id\": x67xxxxxxxx19a\"\n\n}\n}"
key
(string): Merchant API keyhash
(string): Calculated hash for request validation{
"status": true,
"methods": [
{
"id": "string",
"name": "Credit Card",
"type": "card"
},
{
"id": "string",
"name": "Net Banking",
"type": "bank"
}
]
}
{
"status": false,
"error": {
"message": "Invalid request",
"code": 400
}
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
200
The response is of type any
.