- Send customers to a hosted payment page to pay for an order
- Capture authorized payments, meaning collect the amount approved at checkout
- Issue refunds after capture and cancel orders before capture
- Read payouts for a finance dashboard
- Show payment methods and express checkout buttons with Kustom Elements
Common use cases and example apps
These examples show what you can build with Kustom, each with a prompt to start from.How to connect Kustom
Who can create Kustom connections depends on your plan and workspace settings. App + chat connectors are available by default. On Business and Enterprise plans, Who can create connections and clients starts at Admins. Some Enterprise workspaces start at No one, which disables the connector. An admin or owner changes it in Connectors → Admin settings → App + chat connectors. You can create multiple Kustom connections using different merchant credentials, including separate connections for testing and real payments. When the connection is created, you can link it to the projects where you want to use it. Anyone building in a project can ask Lovable in the project chat to link their project to it. Linking follows the connection’s access rules.Prerequisites
Before connecting Kustom, make sure you have:- A Kustom account for the environment you want to connect, with access to API credentials in the Kustom Portal
- Permission to create connections in your Lovable workspace (see Who can create connections and clients)
Payment processing fees are billed directly by Kustom, not Lovable, under your merchant agreement.
Step 1: Get your Kustom API credentials
Kustom uses an API username and password for your merchant account. Your Kustom Portal login and your Merchant ID are different from these credentials.1
Open the Kustom Portal for your environment
Sign in to the portal for the environment you want to connect:
- Playground Portal: test checkout without charging real money.
- Production Portal: take real payments. Lovable labels this environment Live.
2
Generate credentials
Open Developers → API and check that the selected merchant account is the one you want your app to use. Click Generate new.If you cannot access the API settings, ask your Kustom account admin to provide credentials or update your access.
3
Save the username and password
Copy Key ID as your API username and Password as your API password. Kustom shows the password only when you generate it, so save both values securely before leaving the page.The password starts with
kco_test_api_ for Playground or kco_live_api_ for Live. You now have the credential pair for the next step.Step 2: Connect Kustom to Lovable
Create the connection with the credential pair from Step 1.1
Open Kustom in Connectors
Open Connectors and select Kustom. For the other places to open the catalog from, see Where to find connectors.
2
Add a connection
Click Connect on the connector page. The form is split into collapsible sections, Details, Configure connection, and Sharing.
3
Name the connection
Under Details, Lovable fills in a name for the connection, which you can change. The name is only used inside Lovable to identify the connection.
4
Configure the connection
Under Configure connection, complete these required fields:
- Environment: choose Playground, the default, for test payments, or Live for real payments.
- API username: paste the Key ID from the matching Kustom Portal.
- API password: paste the password generated with that Key ID.
5
Choose who can use this connection
Under Sharing, the connection is private to you by default and shows a Private label. To share it, click Share with others. Then add workspace members by email, or click Invite entire workspace to make the connection available to everyone in your Lovable workspace.See Who can use connections and clients for more information.
6
Connect
Click Connect at the bottom of the form. Lovable checks the credentials with Kustom and confirms when the connection is created.If Kustom rejects the credentials, the form shows an error under Configure connection. Check that both credentials match the selected environment and try again.
Test checkout and accept real payments
Kustom separates test payments in Playground from real payments in Live. Link at most one Playground connection and one Live connection to each project, because your app uses only one connection per environment.1
Build and test with Playground
Create a Playground connection using the setup steps above and link it to your project. Ask Lovable to add Kustom checkout to your existing order flow.Complete a test checkout using Kustom’s test data. Check that your app confirms the order and that the order appears in the Playground Portal.
2
Add a Live connection
Repeat the setup with credentials from the Production Portal and select Live. Ask Lovable in the project chat to link the Live connection to the same project.Keep the Playground connection linked for testing. With both connections linked, the preview uses Playground and the published app uses Live.
Add payment displays and express buttons
Kustom Elements adds payment method displays and express checkout buttons to existing product or cart pages. If you have never opened Elements in the Kustom Portal for your environment, open it once before you ask Lovable. See Kustom’s Elements setup guide for more information. Ask Lovable to add the elements you need. Lovable registers the addresses where your app runs with Kustom, including previews and custom domains. For example:Limitations
The Kustom connector cannot let each app user connect a separate Kustom merchant account. Your app takes payments through the merchant account on its linked connection.Manage your Kustom connection
Connections are managed from Connectors: select Kustom, then open the connection.- Unlink projects to remove Kustom access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
- Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use Kustom stop working until a new connection is added. See Delete a connection for the steps and who can delete.