Skip to main content
Modem Pay lets you accept Wave, Afrimoney, QMoney, APS, Yonna and card payments through one integration. You build once, and your customers pay with whichever method they prefer. This page takes you from sign-up to your first test payment.

Before you start

Everything on this page works in test mode. No real money moves until you go live.

Accept your first payment

1

Create your account

Register on the Modem Pay dashboard. This short video walks you through it:
2

Copy your API keys

You get two kinds of keys from the dashboard:
Never put your secret key in a website, mobile app or public repository. Anyone with it can act on your account.
3

Create a payment

From your server, create a payment intent with the amount to charge. Modem Pay returns a payment_link.
Amounts are in GMD, and the minimum is 10 GMD.
4

Send your customer to pay

Redirect the customer to the payment_link. They choose how to pay and complete the payment on Modem Pay’s checkout.When they finish, they come back to your return_url. If they cancel, they go to your cancel_url.
5

Confirm the payment with webhooks

Add your webhook URL in the dashboard. Modem Pay notifies your server when a payment changes, for example charge.succeeded or charge.cancelled.
Mark orders as paid from the webhook, not from the redirect. Customers sometimes close the page before they get back to your return_url, but the webhook still arrives.
That’s it. You’ve accepted a test payment.

Choose how to integrate

The steps above use an SDK. If you’d rather not write server code, use HTML Checkout.

HTML Checkout

Add a form to your page that posts the payment details to Modem Pay. When the customer clicks Pay Now, they’re taken to checkout. Try it here:
The form posts to https://test.checkout.modempay.com/api/pay with these fields: Example of what Modem Pay receives:
Redirects and webhooks work exactly as in the SDK flow above.

Go live

When your test payments work:
1

Complete KYC

Submit your business verification from the dashboard. This is required before you can accept real payments.
2

Switch to live mode

Once KYC is approved, switch to live mode in the dashboard and replace your test keys with your live keys.
3

Run one real payment

Make a small real payment and check that your webhook marks the order as paid.
Test and live are kept separate. Payments and sub-accounts created in test mode don’t exist in live mode, and the reverse.

What’s next

Split payments

Share each payment with partners automatically.

Webhooks

React to payments, refunds and transfers on your server.

Transfers

Send money to mobile wallets and bank accounts.

Refunds

Return money to a customer, in full or in part.