1
Get a sandbox key
Create a secret key in your dashboard. Sandbox keys start with
sk_sandbox_. The key decides which environment you are in — there is no separate base
URL and no environment header.2
Create a checkout session
Amounts on a payment are in major units: The response carries both the session and the payment intent it created:Store
50 means 50.00.payment.id against your order. That is the identifier you will see in every
webhook.3
Send the customer to the payment page
Redirect to
checkout.url. Orchestrate renders the page, collects the payment details and
handles whatever the payment method requires.In sandbox, pick the built-in test method and use a phone number ending in two digits
that select the outcome you want to rehearse — see Testing.4
Confirm the result
The customer returning to your Fulfil when
return_url is not proof of payment. They may have
closed the tab, and some methods settle after the redirect.Treat the webhook as the signal, and re-read the intent before you fulfil:data.status is completed.Next
Webhooks
The events Orchestrate sends, and how to verify them.
Direct API
Build your own payment interface instead of redirecting.
Testing
Reproduce every outcome in sandbox.
Go live
Swap the sandbox key for a live one. Nothing else changes.