Connect your app to Kustom
Connect your Lovable app to Kustom to accept customer payments through your own merchant account. You can test transactions safely in a test environment before switching on real payments.
Anyone with an existing order system who wants to add checkout pages, capture card payments, handle refunds, or show accepted payment badges.
Do this, in order
- 1
Log in to the Kustom Portal (Playground for testing, Production for real transactions), navigate to Developers then API, and click Generate new.
Lovable requires a dedicated API Key ID and password from your merchant account to process transactions.
- 2
Copy and save both the Key ID and the generated password immediately before navigating away.
Kustom reveals the API password only once when it is created.
- 3
Go to Connectors in your Lovable dashboard, select Kustom, and click Connect.
This opens the configuration screen where you set up your merchant integration.
- 4
Select your environment (Playground or Live), paste the Key ID into API username, and paste the password into API password.
The credentials must match the selected environment, and you cannot switch an existing connection's environment later.
- 5
Set your sharing permissions under Sharing and click Connect at the bottom of the form.
This verifies your credentials with Kustom and allows team members to use the integration.
- 6
Open your project chat and ask Lovable to link your Kustom connection and implement your checkout or payment flow.
Linking connects your app's frontend and backend code to your configured merchant account.
Paste this into your project
Use Kustom and build a checkout flow for the orders in my app, with a confirmation page after payment. Configure it to use my linked Kustom connection.
Words decoded
- Capture
- Actually collecting the money from a customer after their bank has authorized and held the funds.
- Playground
- A safe simulation mode where you can test payments and orders without charging real credit cards.
- Kustom Elements
- Ready-made buttons and badges you can place on product pages to show accepted payment methods like Apple Pay.
Where people get stuck
- Linking only a Live connection causes the preview editor to charge real money during testing; link a Playground connection alongside it so previews use test data.
- Never paste your Kustom API password into the project chat; only enter it directly into the connector settings form.
- You cannot edit an existing connection's environment after creating it; create separate connections for Playground and Live instead.
- Remember to capture authorized orders before the hold expires (normally 28 days), or the payment will never be paid out.
- Apple Pay and Google Pay buttons might not appear in the embedded editor preview; open the preview in its own standalone browser tab to test them.
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.