Whether you want to receive money from a customer (Feda Direct) or integrate FedaPay in your web or mobile application (Feda Commerce), accepting a payment is a process that comes in 3 steps.
If you use Feda Direct, you can simply send a payment link to your customer from the dashboard interface of your FedaPay account.
To do so :
- Create the customer
- Create a transaction for the customer
- Generate the payment link
Step 1: Create the customer
You can create a customer from the dashboard interface by filling in his last name, first name, email and phone number.
The customer email is unique for each account and allows you to identify your customers distinctly.
If it needs to be filled on the API side with queries, specify the
Step 2: Create a transactionEach payment from FedaPay constitutes a transaction.
Creating a transaction is just as easy as adding a new customer.
From the interface of your dashboard, create a transaction by entering the amount of the transaction, a return link (optional) and a description.
Step 3: Generate a payment linkOnce the transaction is created, generate a payment link which you send to the recipient either by email or by simply copying the link and transfer it to your customer by any other mean of your choice.
This secure payment link ensures that the transaction was indeed generated by FedaPay.
Any link generated apart from the system will invalidate the transaction payment.
The link is valid for 24 hours.
If you are planning to use Feda Commerce, this means that you want to accept payments directly on your website or mobile application.
In this case, start doing it quickly on your platform with Feda Checkout.
Step 1: Test out Feda Checkout
- last name
- first name(s)
- a syntactically valid email address (ex: firstname.lastname@example.org)
- a valid phone number
Test out Feda Checkout to see how it works by clicking on the below button and
filling the form which appears.
Step 2: Integrate the code
Add the following code to the payment page on your platform, ensuring that the information contained in this form are sent through your server-side code:
<!-- Replace YOUR_API_PUBLIC_KEY by the API public key of your sandbox or live account. If you are using your live account, you must replace the link by https://checkout.fedapay.com/js/checkout.js --> <form action="index.php" method="POST"> <input type="hidden" name="field" value="test"> <script src="https://sandbox-checkout.fedapay.com/js/checkout.js" data-public-key="YOUR_API_PUBLIC_KEY" data-button-text="Pay 35000" data-transaction-amount="35000" data-transaction-description="Transaction description" data-currency-iso="XOF" data-widget-description="Your 100% african store" data-widget-image="https://sandbox-checkout.fedapay.com/img/marketplace.svg" data-widget-title="Afrimarket"> </script> </form>
Make sure to fill in your public API key and not the secret API key. This is very important and don't communicate your API keys unless it is required
Step 3: Connect your account to Feda Checkout
Once the code is integrated, you will need to connect your FedaPay account to Feda Checkout so that the application can create the customers and transactions.
This step is necessary and secures your integration.
This step is necessary and secures your integration. In order to connect your account, click on the button generated by the code.
Feda Checkout will ask you to log in to your account and then give account management rights.
Don’t worry, this action is only required once and allows you to link your application to Feda Checkout.