Authentication
All requests use HTTP Bearer authentication with a publishable key.
const atp = new AfriTradePay("pk_test_…");- Test keys (
pk_test_…) hit a sandbox — no real money moves. - Live keys (
pk_live_…) execute real transfers. Keep them server-side. - Sign up to generate, scope, and revoke keys from the Developer dashboard.
- Keys are shown once. Rotate immediately if compromised.