Payment API for Ghana: Mobile Money and card payments for developers
The berrapay API lets developers take MTN, Telecel and AT Mobile Money payments and card payments in Ghana from their own website or app. It is a JSON API at berrapay.com/api/v1 with test keys that move no real money, signed webhooks, and a playground on the Developers page that works without signing up.
Step by step
- 1
Try it without an account
Open berrapay.com/developers and run a request in the playground. It uses pretend money.
- 2
Get a test key
Sign in as a freelancer or business, open Settings, then Connections, then berrapay API, and create a key. Test keys start with bp_test_.
- 3
Create a payment
Send one POST request to create a checkout, invoice, payment link, subscription plan or a charge to a customer's phone. You get back a page address or a payment to follow.
- 4
Listen for the result
Add a webhook address. berrapay sends signed events such as payment.succeeded, and retries if your server is down.
- 5
Go live
Once your account is approved, create a live key. Live keys start with bp_live_.
At a glance
- Base address
- https://berrapay.com/api/v1
- Format
- JSON; amounts are numbers in cedis
- Sandbox
- Yes, free, no money moves
- Webhooks
- Signed, with retries
- Code samples
- curl, JavaScript, PHP, Python, and a Postman collection
Common questions
Is there a sandbox?
Yes. Test keys and the playground use pretend money, so nothing real moves while you build.
Can the API send money out?
No. The API creates and tracks incoming payments. Sending, withdrawing and refunding are done in berrapay itself.
Which languages are supported?
Any language that can send an HTTPS request. The docs show curl, JavaScript, PHP and Python, and there is a Postman collection to download.
What does it cost?
Payments are in Ghana cedis (GHS). The payer is charged 1% when they pay by Mobile Money, never more than GHS 25 on one payment, or 1.95% when they pay by card. It is added to what they pay, so you receive the full amount. There is no setup or monthly fee, and topping up and withdrawing are free. The full list is at berrapay.com/fees.
Ask an AI assistant about this
Opens the assistant in a new tab with a question about this page already typed. You can change it before sending.