Tweak the request below. We render a live cURL and the response shape you'd see on the wire. Hit Run to execute it against your sandbox account once you've grabbed test keys from the merchant dashboard.
/v2/payments/checkoutsk_test_ key — paste it from your dashboard or use the Get API keys button.curl https://maxfi-api.exezine.az/v2/payments/checkout \ -H "Authorization: Bearer sk_test_…" \ -H "Content-Type: application/json" \ -d '{ "amount": 4900, "currency": "USD", "description": "Pro plan — annual", "order_id": "order_42", "settings": { "success_url": "https://yourapp.com/success", "cancel_url": "https://yourapp.com/pricing" }, "webhook_url": "https://yourapp.com/maxfi" }'
{
"id": "cs_pl_demo_a1b2c3d4",
"checkout_url": "https://maxfi-api.exezine.az/checkout/cs_pl_demo_a1b2c3d4",
"expires_at": "2026-04-17T08:33:23.182Z",
"amount": 4900,
"currency": "USD",
"status": "open",
"livemode": false
}