1
Get a sandbox key
Sign in to the business dashboard, switch it to Test and create a secret key in Settings > API keys. It starts with
sk_test_. Test keys use test money, and any email they cause is marked [TEST].2
Install a library
3
Create a checkout session
Create it on your server. The price and the milestones never come from the browser.
4
Pay it
Open Want to try it without writing code? Use the Playground.
session.url and pay with a test card, or pay it from code:5
Handle the webhook
Register an endpoint on the dashboard’s Developers page or with See Webhooks for retries, ordering and secret rotation.
POST /webhook_endpoints. When the buyer pays, KetaPay sends escrow.funded. Verify the signature against the raw body before you trust it:Next
- Move the escrow through delivery and release in the sandbox: Testing.
- Let your customers act from your own UI: Customer tokens.