Create your PesaSwap account and add a payment provider using PesaSwap APIs through Postman.
Create a PesaSwap Account
PesaSwap operates on a multi-tenant architecture, enabling a single application server to support multiple merchants. To create a new merchant account, follow these steps:1. Locate the Admin API Key
- Find the
config/docker_compose.tomlfile in your PesaSwap setup. - Search for the
api_keyentry within this file to retrieve your admin API key.
2. Execute the cURL Command
- Use the following cURL command to create a merchant account.
- Replace
<admin-api-key>with your actual admin API key.
3. Receive the Response
Upon executing the command, you should receive a response containing the merchant_id and publishable_key.Create an API Key
To generate an API key for your merchant account in PesaSwap, follow these steps:- Prepare the cURL Command
2. Secure the API Key
The response will include the plaintext API key. Store this key securely, as it is essential for authenticating API requests from your merchant server.Set Up a Payment Processor
To integrate your preferred payment processor with PesaSwap, follow these steps:- Obtain API Credentials from Your Payment Processor
- Set Up the Payment Processor in PesaSwap