Prerequisites
Before you begin, you’ll need:A Payfonte sandbox account
Your API credentials (client-id and client-secret)
A tool to make HTTP requests (cURL, Postman, or your preferred language)
Step 1: Create Your Sandbox Account
1
Sign Up
Go to sandbox-app.payfonte.com and create a free account.
2
Verify Email
Check your inbox and verify your email address.
3
Complete Profile
Fill in basic business information to activate your account.
Step 2: Get Your API Credentials

1
Navigate to Settings
Log into your dashboard and click on Settings in the sidebar.
2
Go to API Keys/Webhooks
Click on API Keys/Webhooks tab.
3
Copy Your Credentials
You’ll find your:
client-id- Your unique identifierclient-secret- Your secret key (keep this secure!)
Never expose your
client-secret in client-side code or public repositories.
Always make API calls from your backend server.Step 3: Set Up Webhook Callback (Optional but Recommended)
Webhooks notify your server about transaction status changes in real-time.1
Go to API Keys/Webhooks
In Settings -> Security -> API Keys and Webhooks, find the webhook configuration section.
2
Enter Your Callback URL
Add your webhook endpoint URL (e.g.,
https://yoursite.com/payfonte/webhook).3
Save Configuration
Click Save. You can test the webhook using our test transaction feature.
Environment URLs
- Sandbox (Testing)
- Production (Live)
Use these URLs for development and testing:
Sandbox transactions are simulated and do not involve real money.
Step 4: Make Your First API Call
Let’s create a checkout session to collect a payment:Expected Response
Step 5: Redirect Customer to Checkout
Take thecheckoutUrl from the response and redirect your customer to complete payment:
- See available payment methods for their country
- Select their preferred method (e.g., MTN MoMo, Bank Transfer)
- Complete the payment
- Be redirected to your
redirectURL
Step 6: Handle the Webhook
When the payment status changes, we’ll send a POST request to your webhook URL:What’s Next?
Explore Collection Methods
Learn about inline, standard, and direct charge integrations
Set Up Disbursements
Send disbursements to mobile money and bank accounts
View All Providers
See available payment methods by country
API Reference
Complete API documentation
Troubleshooting
Invalid Country/Currency Combination
Invalid Country/Currency Combination
Make sure the currency matches the country. For example, Nigeria uses NGN,
Kenya uses KES. See Supported
Providers for valid
combinations.
Webhook Not Receiving Events
Webhook Not Receiving Events
Ensure your webhook URL is publicly accessible and returns a 200 status code. Check your server logs for incoming requests.
Still need help?
Contact our support team at support@payfonte.com