How to connect Mobile Money payments to a Bolt.new app in Ghana
To take Mobile Money in a Bolt app in Ghana, ask Bolt to add a button that opens a berrapay payment link, or have it call the berrapay API from a server function with your key saved in Secrets. Bolt's own payments integration is Stripe, which doesn'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 ask Bolt to add a button that opens it.
- 3
Connect a database
Bolt's Secrets need a connected database. Then open the Database icon, choose Secrets and add BERRAPAY_KEY.
- 4
Ask for a server function
Paste the prompt from the guide to AI-built websites. Bolt writes a server function that creates the checkout and returns its address.
- 5
Ask for a webhook function
A server function can receive berrapay's webhook. Tell Bolt to turn off JWT verification for that one function, since berrapay isn't a signed-in user, and to verify the Berrapay-Signature header instead.
- 6
Test, then go live
Use a test key until a successful and a failed payment both behave correctly.
At a glance
- Server-side code in Bolt
- Server functions
- Where the key goes
- The Database icon, then Secrets
- Webhooks
- A server function, with JWT verification off for it
- Bolt's built-in payments
- Stripe
- No-code alternative
- A payment link button
Common questions
Why does my webhook return an error about authorisation?
Server functions expect a signed-in user by default. Ask Bolt to turn off JWT verification for the webhook function and check berrapay's signature yourself.
Is my key safe in Secrets?
Bolt's docs say secret values never reach browser code. Never put the key in a file the page loads.
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.