ChainPal Developer API
Welcome to the ChainPal Developer API documentation. ChainPal provides a RESTful API that enables businesses to accept cryptocurrency payments and receive automatic settlement in local fiat currency.Base URL
All API requests are made to:How It Works
- Initialize a Payment - Create a payment session with the amount and customer details
- Redirect Customer - Send your customer to the hosted checkout page
- Customer Pays - Customer selects their preferred cryptocurrency and completes payment
- Automatic Settlement - We convert the crypto and settle directly to your bank account
- Webhook Notification - Receive real-time updates about payment status
Core Capabilities
- Multi-Token Support: Accept payments in USDT and USDC
- Multi-Network Support: Support for Base, Celo, Polygon, and BSC networks (varies by country)
- Automatic Conversion: Crypto payments are automatically converted to local fiat currency
- Direct Settlement: Funds settle directly to your registered bank account
- Real-time Webhooks: Receive instant notifications when payment status changes
Supported Countries
ChainPal currently supports merchants in:| Country | Currency | Settlement |
|---|---|---|
| Nigeria | NGN | Bank Transfer |
| Ghana | GHS | Bank Transfer |
| Kenya | KES | Bank Transfer |
| South Africa | ZAR | Bank Transfer |
API Resources
- Authentication - API key types and authentication methods
- Payments - Create and manage payment sessions
- Quote - Get real-time conversion quotes
- Checkout - Hosted checkout page endpoints
- Webhooks - Event notifications and signature verification
- Types & Enums - Supported tokens, networks, and status values
- Errors - Error codes and handling
Environments
ChainPal provides two environments for development and production:| Environment | Description | Key Prefix |
|---|---|---|
| Test | For development and testing. Uses testnet networks. | cp_pk_test_, cp_sk_test_ |
| Live | For production. Real transactions and settlements. | cp_pk_live_, cp_sk_live_ |

