KBAISE/ for lovable
Library
Docs

Connect your app to Chargebee

about 5 minBuildingchecked 25h agoOfficial page
The short version

Connect your Chargebee account to Lovable to manage subscriptions, customers, and billing directly in your apps. Workspace admins set up the connection using a Chargebee site name and API key.

Workspace admins or owners who want their app to show customer billing info, manage subscriptions, or launch checkout pages.

Do this, in order

  1. 1

    Log in to Chargebee and copy your site name from the URL, taking only the name before '.chargebee.com'.

    Lovable needs your specific Chargebee subdomain to send requests to the right account.

  2. 2

    In Chargebee, generate and copy an API key with the permissions your app needs.

    The API key lets your Lovable app securely communicate with your Chargebee data.

  3. 3

    In Lovable, navigate to Connectors, select Chargebee, and click Connect.

    This opens the configuration screen to set up the integration.

  4. 4

    Enter a Display name, your Site name, and paste your API key.

    These details identify the connection and authenticate your app with Chargebee.

  5. 5

    Under Sharing, choose whether to keep it Private or share it with team members or the entire workspace, then click Connect.

    Sharing allows other builders in your workspace to link the connection to their projects.

  6. 6

    Open your Lovable project chat and ask Lovable to link your project to the Chargebee connection.

    Your app cannot call Chargebee until the specific project is linked to the workspace connection.

Paste this into your project

Connect this project to our Chargebee integration and build a customer billing portal where logged-in users can view their active subscription status, see their past invoices, and open a Chargebee hosted portal to update their payment methods.

Words decoded

API key
A secret code that acts like a password, allowing one software program to talk to another securely.
Hosted checkout page
A secure payment screen hosted by Chargebee where customers enter card details, so your app does not have to handle sensitive payment data.
Webhook
An automated notification that one service sends to another when an event happens, like a successful subscription payment.

Where people get stuck

  • Do not include '.chargebee.com' in the site name field; use only the prefix (like 'acme-test').
  • The connector does not receive Chargebee webhooks directly.
  • Connections do not automatically rotate API keys; if you change a key in Chargebee, you must manually update it in Lovable.
  • Deleting a connection breaks all Chargebee features across any projects that were using it.

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.