To use Asaas as a payment method in the Marketplace, you must integrate it with Kubo.
Prerequisites
Before you begin, check that:
-
Your company has an active Asaas account.
-
The account registration is complete.
-
The company documents have been approved.
-
The bank account for withdrawals has been validated.
Instructions
Step 1: obtain the Asaas API key
-
Access the Asaas panel with your login
-
Click the gear icon in the upper-right corner
-
Go to the Integrations menu
-
Locate the Generate API Key or API Key section
-
Copy the generated API Key (access token)
Store this credential in a safe place and never share it publicly.
Step 2: configure the API key in Kubo
-
Access the Marketplace > Configuration menu
-
Click on the Payment tab
-
In Payment method, activate the Enable option for Asaas
-
Fill in the API Key field with the credential obtained in Step 1
For guidance on the other configuration fields, access Configure payment.
-
Click the Save button
Step 3: configure the notification URL (Webhook)
-
Access the Marketplace > Configuration
-
Click on the Payment tab
-
In Payment method > Asaas, copy the URL displayed in the Webhook field
-
Access the Asaas panel
-
Access Settings > Integrations
-
Locate the Webhooks section and set up a new webhook
-
In the URL field, paste the URL copied from Kubo in step 3
-
In the event queue, select the options related to status updates (Payment Received, Overdue Payment, etc.)
-
Save the configurations in Asaas
Step 4: test the integration
-
Generate a test transaction via credit card or PIX, with a minimum value of R$ 1.00, on the platform
-
Complete the payment
-
Verify that the order status in Kubo has been updated to Paid within a few moments
This test allows you to verify that the integration is working correctly and that payments are automatically posted.