Guides
Migrate from Stripe Checkout
How Stripe Checkout Session names map to ZeroPoint checkout sessions, what is the same, what differs, and what is not supported.
ZeroPoint checkout sessions follow Stripe's shape for payment mode, so most of your code keeps its field names. This table lists every difference that changes code. See Accept payments with hosted checkout for the full flow.
| Stripe | ZeroPoint |
|---|---|
checkout.sessions.create | POST /v1/checkout/sessions. The merchant taking the payment is merchant_id in the body, or the ZeroPoint-Account header (Stripe-Account is accepted too), or the platform's only merchant in that mode |
| Form-encoded body | Same: form-encoded or JSON |
Idempotency-Key optional | Same on create and expire: with a key, a retry replays the first answer |
cs_test_ and cs_live_ ids | One cs_ prefix; livemode on the object says which |
payment_intent | payment (pay_...), also echoed as payment_intent |
expand[]=line_items | Accepted; line_items are always inline anyway (at most 100) |
expand[]=customer, subscription, invoice, payment_intent | Same: the object in place of its id (on retrieve, on create in the body, and as data. paths on the list) |
Any other expand[] | Refused: parameter_unavailable, naming it, never ignored |
List filters customer, payment_intent, subscription, status, starting_after | Same; the list carries url |
payment_intent_data.metadata | Same: copied onto the payment, over the session's metadata |
subscription_data.metadata | Same: subscription mode only, copied onto the subscription the session creates; other subscription_data keys (trials) are parameter_unavailable |
currency, ui_mode | usd only; ui_mode hosted_page or hosted only. Anything else is parameter_invalid |
automatic_tax | Not supported: no tax line; enabled: true answers parameter_unavailable |
payment_status: processing | ZeroPoint addition: an attempt is in flight or the session is held while an outcome is confirmed. Through the Stripe SDK (and on a stripe_compatible_payload endpoint) the same session reads payment_status: unpaid with zeropoint_payment_status: processing |
payment_status: no_payment_required | Same meaning: a promotion code brought the total to $0 and the buyer completed the order with no card (payment mode; in subscription mode a code that would make the first invoice $0 is refused) |
mode: subscription | Available: one recurring catalog price, quantity 1; no trials yet (see Hosted checkout). Different from Stripe: unless the merchant's subscription_guard is off (it is product by default), the session must name the buyer with customer, client_reference_id or customer_email, else 400 customer_identity_required and nothing is created; and a buyer who already holds a live subscription the guard matches is refused with subscription_exists (400 through a Stripe SDK, 409 to plain HTTP), naming it |
mode: setup | Not supported: save a card with the card on file API |
price, allow_promotion_codes, discounts | Same names: a catalog price (quantity 1; one-time in payment mode, recurring in subscription mode); promotion codes (the page's code field, or one code applied at create) on a session with exactly one catalog price line |
shipping_address_collection, shipping_options, custom_fields, consent_collection and other fields | Not supported: parameter_unknown, naming the field in param |
phone_number_collection, tax_id_collection, invoice_creation, adaptive_pricing | enabled: false is accepted; enabled: true is parameter_unknown |
billing_address_collection | auto (Stripe's default) is accepted and changes nothing: the card form asks for the ZIP code either way. required is parameter_unknown: the page does not collect a billing address |
locale | auto (Stripe's default) is accepted and changes nothing: the page shows its own language. Any other locale is parameter_unknown |
submit_type | auto (Stripe's default) is accepted: the page sets its own button wording. pay, book, donate and subscribe are parameter_unknown |
payment_method_collection | always (Stripe's default) is accepted: the page asks for a card whenever there is an amount to pay. In payment mode it cannot be sent with allow_promotion_codes: true (parameter_invalid), because a 100 percent off code there completes the order with no card. if_required is parameter_unknown |
line_items[n].adjustable_quantity | {enabled: false} (Stripe's default) is accepted: the buyer cannot change the quantity. enabled: true is parameter_unknown |
payment_intent_data.capture_method | automatic (Stripe's default) is accepted: the payment is captured when the buyer pays. manual and automatic_async are parameter_unknown; setup_future_usage is refused too |
customer_update, custom_text, payment_method_options, saved_payment_method_options, wallet_options, return_url, redirect_on_completion | Not supported: parameter_unknown, whatever the value |
payment_method_types | ["card"] only; anything else is parameter_invalid |
checkout.session.completed, checkout.session.expired | Same names; data.object is the session with url null |
checkout.session.async_payment_* | Not sent: there are no delayed payment methods |
client_reference_id, customer_email, metadata, success_url, cancel_url, expires_at | Same names and meaning; expires_at is 30 minutes to 24 hours ahead. In subscription mode customer, client_reference_id and customer_email are also the buyer's identity for the duplicate guard: send one stable value per buyer (your user id as client_reference_id), never one per order |
{CHECKOUT_SESSION_ID} in success_url | Same |
What to change in your code
- Keep your create call; name the merchant with
merchant_idor theZeroPoint-Accountheader when your platform has more than one. Send anIdempotency-Keyto make retries safe. In subscription mode name the buyer (customer,client_reference_idorcustomer_email), and onsubscription_existssend the buyer to the portal instead of opening another session. - Read
payment(orpayment_intent) for the payment id. - Treat
payment_status: processing(through the Stripe SDK:zeropoint_payment_status: processing) as "not paid yet": do not fulfil and do not create a second session for the same buyer. A create with the sameclient_reference_idanswers409 checkout_outcome_unknownwhile one is held. - Keep fulfilling on
checkout.session.completed, once per session id, and checkstatusandpayment_statuson the success page. Never trust the redirect alone. - A refusal is cached under its
Idempotency-Keyfor 24 hours: after fixing the cause, retry under a new key.
Not available yet
Google Pay and Apple Pay on the page, and trials in subscription mode, are planned. Subscription mode is available. There is no tax line in this version.