Connect your app to GoCardless
Connect GoCardless to collect direct bank payments, recurring direct debits, and one-off transfers in your Lovable app. Your app sends customers to hosted payment pages and receives updates when payments clear or fail.
Builders who want to charge customers directly from their bank accounts for things like memberships, rent, or recurring invoices.
Do this, in order
- 1
Create a GoCardless access token with read-write access in either your GoCardless sandbox or live dashboard.
Your app needs read-write permissions to set up direct debit mandates and collect payments.
- 2
Go to Connectors in your Lovable dashboard, select GoCardless, and click Connect.
This creates the shared connection between your Lovable workspace and your GoCardless account.
- 3
Enter a name for the connection, paste your access token, set your sharing permissions, and click Connect.
Lovable tests the token against GoCardless and securely saves it for your projects to use.
- 4
Ask Lovable in your project chat to link to the GoCardless connection, build your payment flow, and create a webhook receiver.
This generates the app logic for collecting bank payments and gives you a public address to receive payment status updates.
- 5
Create a webhook endpoint in your GoCardless dashboard using the address from Lovable, then paste the endpoint secret into Lovable's secret prompt.
Direct debits take several days to settle, so your app needs verified status updates from GoCardless to know when money actually arrives.
Paste this into your project
Use GoCardless to build a customer sign-up flow where users set up a monthly direct debit subscription. Link our GoCardless connection, build the webhook endpoint to update member statuses when payments confirm or fail, and tell me where to add the webhook secret.
Words decoded
- Direct debit mandate
- An agreement where a customer authorizes you to collect payments directly from their bank account in the future.
- Instant Bank Pay
- A single, immediate bank payment that the customer approves directly inside their mobile banking app.
- Sandbox
- A mock testing environment with fake money used to check that everything works before going live.
- Webhook
- An automated alert sent from GoCardless directly to your app whenever a payment succeeds, fails, or gets paid out.
Where people get stuck
- Do not mark an order or membership as paid simply because the user returned from the payment screen; direct debits take days to confirm and must be verified by webhook.
- Do not select read-only access when creating your GoCardless token, or any requests to create payments or mandates will fail.
- Do not paste your webhook secret into the project chat; always enter it into Lovable's dedicated secret prompt form.
- Do not keep both sandbox and live connections linked simultaneously when launching; you must unlink the sandbox connection before linking the live one.
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.