Overview
This guide explains how to configure Campay as a payment provider in your AppTree project. Campay enables you to accept payments from customers in Cameroon, supporting mobile payment methods from MTN MoMo and Orange Money.
Prerequisites
- An active Campay account (DEMO for tests, LIVE for production)
- A MTN MoMo or Orange Money account already configured
- Access to your AppTree project settings
- Basic understanding of Webhook configuration
Step 1: Get your Campay access token
- Log in to your Campay Dashboard:
- https://demo.campay.net/fr/login/ for DEMO
- https://www.campay.net/fr/login/ for LIVE
- Navigate to Applications (1)
- Open your project (2)
- Copy your Permanent access token (3)

Step 2: Configure AppTree Project Settings
- In your AppTree project, go to the E-Commerce tab
- Click on the Settings sub-tab
- Scroll down to Payment Provider and select Campay from the dropdown
- Paste your permanent access token

- Select the XAF currency from the dropdown as it is the only one handled by Campay
- Click on βSave settingsβ to register your provider

Step 3: Configure Campay Webhook
3.1 Get Your Webhook URL
After saving the configuration, AppTree will generate a webhook URL in this format:
<https://api.apptree.so/campay/{PROJECT_ID}/webhook>Copy this URL from your project settings:

3.2 Set Up Webhook URL in Campay Dashboard
- From your Campay Dashboard, paste the URL in the Apptree Callback URL field
- Click on βSaveβ
- Copy your Application Webhook key

3.2 Set Up Webhook secret in Apptree settings
- In your Apptree project settings page (E-commerce), paste your Application Webhook key from Campay
- Click on βSave settingsβ

Step 4: Test your Campay integration
- Go to your project's store
- Add an item to cart
- Proceed to checkout
- Login to your account or create an account if necessary
- Fill in your delivery address and continue to payment
- Fill in the βPhone numberβ field (1) with which you wish to validate your payment
- Click on βComplete orderβ (2)

- The payment will be in pending status while you confirm it from your smartphone:

- If you payment succeeds, you will be redirected to the confirmation page and your transaction will be considered as successfull. Otherwise, you will be warned that it failed, your transaction will be considered as failed and you will have to try again.