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.
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
}
]
}
]
}Update merchant withdrawal method
Updates a saved withdrawal method. Only `label` and `details` may be changed — `methodType` and `merchantId` are immutable. Changing `details` resets the method to "cooling" and starts a new cooling period for fraud protection.
Cancel payment
Cancels a payment that has not yet been captured. Valid for payments in `processing`, `requires_action`, or `requires_capture` status — cancellation voids the authorization without creating a refund. Returns 409 if the payment is already captured or in a terminal state.