Quickstart
Get up and running with Khaime payments in three steps.1. Create Your API Key
1
Sign up or log in
Go to app.khaime.com and create your merchant account.
2
Navigate to API Settings
Go to Settings → API & Integrations → Partner API.
3
Generate a key
Click Create API Key. Choose Sandbox for testing, Live for production.You’ll receive:
- API Key:
pk_sandbox_abc123...(used inX-API-Keyheader) - Webhook Secret:
whsec_xyz789...(used to verify webhook signatures)
2. Create a Charge
Make your first API call to create a payment:Amounts are in the smallest currency unit (cents for USD, kobo for NGN).
5000 = $50.00 USD.Response
3. Handle the Payment
Based on thepayment_gateway in the response:
- Stripe
- Paystack
Use the
client_secret and publishable_key to mount Stripe’s Payment Element:4. Receive the Webhook
After payment completes, Khaime sends a webhook to your configured URL:Next Steps
Multicurrency
Let customers pay in NGN, GHS, KES, EUR, and more.
Subscriptions
Set up recurring billing with automatic renewals.
WooCommerce Plugin
Zero-code integration for WordPress stores.
Webhook Security
Verify webhook signatures to prevent fraud.
