POST
/
api
/
v2
/
info
/
payment
/
methods
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}"

This API retrieves the list of available payment methods for a merchant.

Request Parameters

  • key (string): Merchant API key
  • hash (string): Calculated hash for request validation

Responses

200 OK

{
  "status": true,
  "methods": [
    {
      "id": "string",
      "name": "Credit Card",
      "type": "card"
    },
    {
      "id": "string",
      "name": "Net Banking",
      "type": "bank"
    }
  ]
}

400 Bad Request

{
  "status": false,
  "error": {
    "message": "Invalid request",
    "code": 400
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

user-agent
string
required

Body

application/json
amount
string

in cents/paisa

currency
string

3 char currency code

callback
string

callback url

udf1
string

user defined fields

pg
string

Payment Gateway

pg_pool_id
string

Payment Gateway pool id

Response

200
application/json
200

The response is of type any.