This guide walks you through creating your first payment in under 5 minutes.
Prerequisites
Merchant Account
A CeyPay merchant account (sign up here)
KYC Verification
Completed merchant onboarding and KYC verification
Programming Language
Your preferred programming language (Node.js, Python, PHP, etc.)
Base URL
Production
Live environment for real transactions
Sandbox
Test environment for integration testing
Getting StartedIf you want to integrate CeyPay without signing up for a sandbox account, use the sandbox API key below.Sandbox API Key:Remember: The
x-api-key header should contain ONLY the key ID (the part before the dot), NOT the full API key. The secret key is used locally to derive the signing key and is never transmitted.Get Started
Generate API Key
- Log in to your CeyPay Dashboard
- Navigate to Settings → API Keys
- Click Generate New API Key
- Give it a descriptive name (e.g., “Production API Key”)
- Copy the API key immediately (you’ll only see it once!)
ak_live_abc123xyz.sk_live_def456uvwak_live_abc123xyz- Public key ID (sent inx-api-keyheader)sk_live_def456uvw- Secret key (used locally to derive signing key, NEVER transmitted)
Direct Customer to Payment
You have two options to collect payment:
Redirect to Checkout
Redirect users to the hosted checkout page:
Display QR Code
Show a QR code for mobile wallet scanning:
Handle Webhook Notifications
Set up a webhook endpoint to receive payment status updates. CeyPay uses ED25519 signatures for security.See webhooks.md for complete webhook integration guide.
Step 5: Test Your Integration
Test Webhook Endpoint
Test Payment Flow
Common Use Cases
E-commerce Checkout
Payment Link for Products
Invoice Payment
Next Steps
Learn More
Authentication
Deep dive into HMAC signature
Webhooks
Complete webhook integration guide
Payment Links
Guide to using payment links
Error Handling
Error codes and troubleshooting
Rate Limits
API rate limiting policies
Explore API Endpoints
Payments:POST/v1/payment- Create paymentGET/v1/payment/:id- Get payment detailsGET/v1/payment- List payments
POST/v1/payment-link- Create payment linkGET/v1/payment-link/:id- Get payment linkGET/v1/payment-link- List payment linksPATCH/v1/payment-link/:id- Update payment linkDELETE/v1/payment-link/:id- Deactivate payment link
GET/v1/webhooks/config- Get webhook configurationPOST/v1/webhooks/test- Test webhook delivery
API Reference
Full API documentation available at: https://api.ceypay.io/api-docsSupport
- Email: [email protected]
- Documentation: https://docs.ceypay.io
- Status: https://status.ceypay.io
Checklist
Before going live, ensure you:- Completed merchant onboarding and KYC
- Generated production API key
- Stored API key securely (environment variable)
- Implemented HMAC signature authentication with derived signing key
- Set up webhook endpoint with signature verification
- Tested payment flow end-to-end
- Implemented error handling
- Configured monitoring and logging
- Reviewed security best practices
- Read rate limiting policies
Tips
Security
- Never commit API keys to version control
- Use environment variables for secrets
- Always verify webhook signatures
- Use HTTPS for all webhook endpoints
- Send only the key ID in
x-api-key, never the full API key
Performance
- Cache exchange rates when possible
- Implement idempotent webhook handling
- Use exponential backoff for retries
- Monitor rate limit headers
Testing
- Use ngrok for local webhook testing
- Create test payments regularly
- Monitor webhook delivery logs
- Set up alerts for failed webhooks