Endpoints

GET /checkout/sessions/{id}

Retrieve a checkout session.

GET/checkout/sessions/{id}secret key

Retrieve a checkout session — typically polled from your `success_url` to confirm the linked payment status.

Request
curl https://sandbox-api.key2pays.com/v1/checkout/sessions/cs_3aB7K8… \
  -H "Authorization: Bearer sk_test_51N8mP...exampleK3Y"
Response
{
  "id": "cs_3aB7K8…",
  "status": "complete",
  "payment_id": "pay_3aB81…",
  "amount": 4500,
  "currency": "USD"
}