Creating Customers
Creating a customer in FedaPay is done via an API request, allowing you to add the necessary information about your customer. This data is used during transactions to clearly identify the user.Required Parameters
When creating a customer, you need to provide the following information:- First Name (firstname): The customer’s first name.
- Last Name (lastname): The customer’s last name.
- Email (email): The customer’s email address, which will be used for all communications and confirmations.
- Phone Number (phone_number): Optional, but helpful for certain transactions (must include the country code, e.g., +229 for Benin).
Important Points
- Be sure to replace YOUR_SECRET_API_KEY with your actual secret API key.
- The API endpoint may vary depending on the environment. Use https://api.fedapay.com/v1/customers for the live environment.