Skip to content
Developer guide

Quickstart (15-min walkthrough)

From zero to a verified sandbox transaction with webhook delivery in 15 minutes. Eight concrete steps.

Context and key considerations

Concrete walkthrough — 8 commands, ~15 minutes, end with a verified webhook delivery on your local machine. Every command below works copy-pasted against https://sandbox.key2pay.ai/api/v1 with a test secret key.

1 / 8

1. Get sandbox keys

Log into the merchant portal at merchant.key2pay.ai → Shops & API keys. You'll see one pair of test keys per shop: pk_test_… (publishable, safe for client) and sk_test_… (secret, server-only). Copy the secret — that's all you need for backend integration.

bash
export K2P=sk_test_…
Key2Pay Developer documentationAPI v1
Documentation
Dashboard