Get Started
Quickstart
Learn how to create and process payments with Open Market API
Payment Integration Guide
This guide will walk you through the process of integrating payments into your application using Open Market API.
Supported Countries
Open Market supports payments in the following countries:
West Africa
- Benin
- Burkina Faso
- Ivory Coast
- Mali
- Senegal
- Togo
Central Africa
- Cameroon
- Congo
- DR Congo
- Gabon
Other Regions
- Uganda
- Zambia
- International
Creating a Payment
To create a payment, you’ll need to make a POST request to our payment endpoint with the required information.
Required Parameters
Parameter | Type | Description |
---|---|---|
product_name | string | Name of the product or service being sold |
price | number | Price in the local currency |
description | string | Description of the product or transaction |
buyer_name | string | Customer’s full name |
buyer_country | string | Customer’s country (see supported countries) |
reference | string | Your unique transaction reference (6-24 alphanumeric characters, must contain both letters and numbers) |
Optional Parameters
Parameter | Type | Description |
---|---|---|
meta_data | object | Additional data you want to store with the payment |
success_url | string | URL to redirect after successful payment (must be valid HTTPS/HTTP URL) |
failed_url | string | URL to redirect after failed payment (must be valid HTTPS/HTTP URL) |
Example Request
Payment Flow
- Create Payment Request
- Send payment details to our API
- Receive a payment URL in response
- Redirect Customer
- Redirect your customer to the received payment URL
- The customer will see our secure payment page
- Payment Processing
- Customer selects their preferred payment method
- Completes the payment on our secure platform
- Payment Confirmation
- After successful payment, customer is redirected to your success URL
- Our system sends a webhook notification to your callback URL
- Failed payments are redirected to your failure URL
Make sure you’ve configured your callback URLs in the API Settings before processing payments.
Country Codes
When specifying the buyer_country
, use one of these exact values:
Best Practices
Testing Tips
During development, use test cards and mobile money numbers available in our testing guide.
Common Issues
Need Help?
If you encounter any issues or need assistance, our support team is available through: