KBAISE/ for lovable
Library
Docs

Connect your app to Asaas

about 10 minBuildingchecked 5d agoOfficial page
The short version

Connect your Lovable app to Asaas to accept Brazilian payments through instant transfers, bank slips, and credit cards. Your app can create charges, track payment status, and manage recurring billing.

Anyone building an app for the Brazilian market who wants to accept payments or manage subscriptions using Asaas.

Do this, in order

  1. 1

    Register a Pix key inside your Asaas dashboard if you plan to accept instant payments.

    Asaas cannot generate Pix payment codes without a registered key tied to your account.

  2. 2

    Go to Integrations > API Keys in your Asaas dashboard and create a key with no IP address restrictions.

    Restricting the key to specific IP addresses prevents Lovable from connecting to your Asaas account.

  3. 3

    Copy the complete key, making sure to include the dollar sign at the very beginning.

    Asaas reveals this secret code only once, and leaving out the initial symbol makes the key invalid.

  4. 4

    Open Connectors in your Lovable dashboard, select Asaas, click Connect, and name your connection.

    Naming clearly (like Asaas Sandbox or Asaas Production) prevents mixing up test data and real money.

  5. 5

    Choose your environment (Sandbox or Production), paste the API key, select who can access it, and click Connect.

    Lovable verifies your credentials against the chosen environment before activating the integration.

  6. 6

    Open your project chat in Lovable and ask to link your project to your Asaas connection.

    Linking allows your specific app to interact with Asaas to create charges and check order statuses.

Paste this into your project

Use Asaas and build a registration page where attendees pay by Pix. Display the Pix QR code and copy-and-paste code, and release the registration ticket automatically once Asaas confirms payment.

Words decoded

Pix
Brazil's instant bank transfer system that moves money 24 hours a day, 7 days a week.
Boleto
A standard Brazilian bank slip with a barcode that buyers pay at a bank, ATM, or via online banking.
API key
A secure password code that allows your Lovable app to communicate directly with your Asaas account.
Sandbox
A mock environment where you can test payments and app behavior without using real money.
Webhook
An automated alert sent from Asaas to your app the moment a customer's payment status changes.

Where people get stuck

  • Do not restrict the Asaas API key to specific IP addresses, or Lovable will not be able to connect.
  • Do not omit the leading dollar sign ($) when copying the Asaas API key.
  • Do not paste your API key directly into the project chat; paste it only into the Lovable connection form.
  • Do not try to scan a sandbox Pix QR code with a real banking app; confirm test charges manually inside the Asaas Sandbox dashboard.
  • If your app uses TanStack Start, you must publish the app for Asaas to deliver webhook payment notifications.

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.