Getting Started
Overview
Quick start guide to integrate SwiftDime
Welcome to SwiftDime
SwiftDime is Africa's most developer-friendly payment gateway. Accept payments from cards, mobile money, and bank transfers with just a few lines of code.
What you'll learn
- How to create your first payment
- Setting up webhooks for real-time updates
- Testing in sandbox before going live
- Best practices for security and performance
Quick Start
1
2 minGet API Keys
Sign up and get your API keys from the dashboard
2
5 minMake First Call
Test your integration with our sandbox environment
3
10 minGo Live
Switch to production and start accepting payments
Your First Payment
Here's how to create your first payment with SwiftDime. Choose your preferred language:
curl -X POST https://api.swiftdime.com/api/v1/payments/initialize/ \
-H "Authorization: Bearer {{YOUR_API_SECRET_KEY}}" \
-H "Content-Type: application/json" \
-d '{
"tx_ref": "ORDER-'$(date +%s)'",
"amount": 100.00,
"currency": "ZMW",
"customer": {
"name": "John Doe",
"email": "customer@example.com",
"phone_number": "+260977123456"
},
"payment_methods": ["mobile_money", "card"],
"callback_url": "https://yoursite.com/webhook",
"redirect_url": "https://yoursite.com/success",
"metadata": {
"order_id": "ORD-12345"
}
}'