Connect your app to Paystack
Connect your Paystack business account to your app to accept payments through cards, bank transfers, and mobile money. Payments are verified directly with Paystack before orders are marked as complete.
App builders with a Paystack account who want to charge customers in Nigeria, Ghana, Kenya, South Africa, or Côte d'Ivoire.
Do this, in order
- 1
Log in to your Paystack Dashboard, go to Settings, open API Keys & Webhooks, and copy your secret key.
Your secret key allows Lovable to securely create and verify payments through your Paystack account.
- 2
In Lovable, navigate to Connectors, select Paystack, click Connect, paste your secret key, configure sharing, and click Connect.
This establishes the shared connection between your Lovable workspace and your Paystack business.
- 3
Open your Lovable project chat and ask Lovable to link your Paystack connection and create your payment flow.
Your project must be linked to the connection before it can initiate checkout sessions or verify transactions.
- 4
Ask Lovable to register your webhook address with Paystack, or manually paste the provided URL into your Paystack API Keys & Webhooks settings.
The webhook ensures orders are marked as paid even if a customer closes their browser before returning to your site.
Paste this into your project
Link this project to my Paystack connection. Build a checkout page where customers can purchase an item in my enabled currency, open the payment in a Paystack popup, and mark the order as paid only after Paystack confirms the payment was successful.
Words decoded
- Secret key
- A private code that acts like a password, allowing your app to interact securely with your payment provider.
- Webhook
- A specific web address in your app where external services like Paystack send automatic alerts when an event happens, like a completed payment.
Where people get stuck
- Do not mix test and live keys; both the secret key and optional public key must come from the same mode in Paystack.
- Only link one Paystack connection to a project at a time, and remember to re-register the webhook when switching from test to live keys.
- Payments will fail if your app requests a currency that is not enabled on your Paystack business.
- Do not build custom card or mobile money input forms; payments must occur through Paystack's hosted checkout page or popup.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.