How to accept Mobile Money payments on a Lovable website in Ghana
To take Mobile Money on a Lovable site in Ghana, either ask Lovable to add a button that opens a berrapay payment link, or have it call the berrapay API from an edge function. Edge functions are Lovable's way of running code on the server, which is where your berrapay key must stay. Lovable's built-in payments use Stripe or Paddle, which don't take Mobile Money.
Last updated 29 November 2026.
Step by step
- 1
Open a berrapay account
Create a free berrapay account at berrapay.com as a freelancer or a business, confirm your phone number, and add your Ghana Card details. berrapay reviews every account, and collecting unlocks once yours is approved.
- 2
Quick route
Create a payment link in berrapay and tell Lovable: "Add a Pay now button that opens this link in a new tab."
- 3
Save your key
In Lovable open More, then Settings, then Secrets, and add BERRAPAY_KEY with a berrapay test key. If your project uses your own Supabase, add it to the Edge Functions secrets in Supabase instead.
- 4
Ask for an edge function to create the checkout
Paste the prompt from the guide to AI-built websites. Lovable will write an edge function that calls berrapay and returns the checkout address.
- 5
Ask for an edge function to receive the webhook
An edge function can act as a webhook address. Have it check berrapay's signature and mark the order as paid.
- 6
Test, then go live
Pay with a test key first. Switch to a live key when your berrapay account is approved.
At a glance
- Server-side code in Lovable
- Edge functions
- Where the key goes
- More, then Settings, then Secrets
- Webhooks
- An edge function can receive them
- Lovable's built-in payments
- Stripe or Paddle
- No-code alternative
- A payment link button
Common questions
Can I just paste my key into the chat?
Don't. Put it in Secrets and tell Lovable its name. A key typed into the chat can end up in the code.
Lovable's payments setup failed for Ghana. What now?
Its built-in payments depend on Stripe or Paddle supporting your country. Use the berrapay API through an edge function instead.
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.
Sources
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.