To use Stripe as a payment method in the Marketplace, you must integrate it with Kubo.
Prerequisites
Before you begin, check that:
-
Your company has an active Stripe account.
-
The account registration is complete and approved.
-
The production environment is enabled.
Instructions
Step 1: obtain the Stripe Key and Stripe Secret credentials
-
Access the Stripe dashboard
-
Go to Developers > API Keys
-
Turn off Test Mode and make sure you are in the Production environment
-
Copy the Public Key, which begins with
pk_live_ -
Copy the Secret Key, which begins with
sk_live_
If necessary, click to reveal it.
Store this information in a safe place and never share it publicly.
Step 2: configure the Stripe Key and Stripe Secret credentials in Kubo
-
Access the Marketplace > Configuration menu
-
Click on the Payment tab
-
In Payment method, activate the Enable option for Stripe
-
Fill in the Stripe Key and Stripe Secret fields with the credentials 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 > Stripe, copy the URL displayed in the Webhook field
-
Access the Stripe panel
-
Access Developers > Webhooks
-
Click Add Endpoint
-
In the Endpoint URL field, paste the URL copied from Kubo in Step 3
-
Under Select events to listen for, select the billing and payment events (
charge.succeeded,charge.failed,payment_intent.succeeded, etc.) -
Click Add Endpoint to save
Step 4: test the integration
-
Generate a test transaction via credit card, with a minimum value of R$ 1.00, on the platform
-
Verify that the purchase status in Kubo has been automatically updated to Paid
This test allows you to verify that the integration is working correctly and that payments are automatically posted.