Miracle Docs
Payment methods

List available payment methods

Returns payment methods available to the caller for the current checkout context. Two auth flows are supported: (1) client_secret — the session derives currency, merchant, and country; query params are ignored. (2) publishable_key — the currency query parameter is REQUIRED and the merchant is taken from the API key owner. Use this endpoint to render payment method selection in HPP or SDK flows.

GET
/v1/payment-methods
AuthorizationBearer <token>

In: header

Response Body

application/json

curl -X GET "https://api.miracle.com/v1/payment-methods"
{
  "data": [
    {
      "type": "card",
      "method": "string",
      "name": "string",
      "brands": [
        "string"
      ],
      "issuers": [
        {
          "id": "string",
          "name": "string"
        }
      ],
      "inputDetails": [
        {
          "key": "string",
          "type": "string",
          "required": true
        }
      ]
    }
  ]
}
Empty
Empty

On this page