Overview
This guide explains how to configure Flutterwave as a payment provider in your AppTree project. Flutterwave enables you to accept payments from customers in multiple African countries and beyond, supporting various payment methods including cards, bank transfers, and mobile money.
Prerequisites
- An active Flutterwave account
- Access to your AppTree project settings
- Basic understanding of Webhook configurations
Step 1: Get Flutterwave API Keys
1.1 Access Flutterwave Dashboard
- Log in to your Flutterwave Dashboard
- Navigate to Settings β API Keys
1.2 Get API Keys from Flutterwave
- Public Key: Copy your public key (starts with
FLWPUBK_
) - Secret Key: Copy your secret key (starts with
FLWSECK_
) - Encryption Key: Copy your encryption key (used for data encryption)

Step 2: Configure AppTree Project Settings
2.1 Access E-commerce Settings
- In your AppTree project, go to Sales β Settings
- Scroll down to Payment Provider Configuration
- Select Flutterwave from the dropdown

2.2 Enter Flutterwave Credentials
Fill in the following fields:
- Flutterwave Public Key: Your public key from Step 1.2
- Flutterwave Secret Key: Your secret key from Step 1.2
- Flutterwave Encryption Key: Your encryption key from Step 1.2
- Flutterwave Webhook Secret: Your webhook secret from Step 1.3

2.3 Save Configuration
- Click Save Settings
- Wait for the configuration to be processed
- Verify that the status shows as "Configured"
Step 3: Configure Flutterwave Webhook
3.1 Get Your Webhook URL
After saving the configuration, AppTree will generate a webhook URL in this format:
<https://api.apptree.so/flutterwave/{PROJECT_ID}/webhook>
- Copy this URL from your project settings.
- Fill in the webhook Secret field and note it down (you'll need it later)

3.2 Set Up Webhook in Flutterwave Dashboard
- Go back to Flutterwave Dashboard β Settings β Webhooks
- Click Add Webhook
- Enter the webhook URL from Step 3.1
- Set the webhook secret (use the same one from Step 3.1)
- Click Save

( Note: The Webhook Secret entered in the Flutterwave dashboard and your project settings must be same )
Step 4: Test the Integration
4.1 Create a Test Order
- Go to your project's store
- Add items to cart
- Proceed to checkout

4.2 Complete Test Payment
- Use Flutterwave's test card numbers:
- Visa:Β 4000 0000 0000 0002
- Mastercard:Β 5200 8300 0000 0001
- Enter any future expiry date
- Use any 3-digit CVV
- Complete the payment
- Enter any 4 digit otp

Step 5: Go Live
5.1 Switch to Production Mode
- In Flutterwave Dashboard, Activate your account by adding necessary details and documents (Activate Account now button)
- Your account is automatically switched to live mode once your verification is completed and approved.
