Create checkout session
qashier_create_checkout_sessionWRITE: create a payment Checkout Session for ONE item and return its payment url. It charges nothing until the customer pays at that url. Amount is in cents (SGD 12.50 = 1250). POST /checkout/sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Currency code, uppercase, for example SGD, MYR, PHP. | |
| expires_at | No | Expiry as epoch seconds, 30 minutes to 24 hours from now (default 24 hours). | |
| return_url | Yes | https URL where the customer returns after paying or cancelling. | |
| success_url | Yes | https URL where the customer goes when payment is complete. | |
| unit_amount | Yes | Amount to charge in cents (non-negative integer). | |
| customer_email | No | Email that receives the payment receipt. | |
| idempotency_key | No | Optional idempotency key (max 255 chars). Reuse the same key to retry safely without a duplicate. |