This is a simple Pesapal project build on top of node. Feel free to extend on this to build your custom solution.
Before you begin, ensure you have the following installed:
- Node.js
- Git
Follow these steps to set up the project on your local machine.
First, clone/download zip of this repository to your local machine.
- npm install
- npm run start
- npm run dev - for watch mode
By default this sample is using Kenyan demo keys. Feel to switch to any other keys of the country of your choice from the link below.
https://developer.pesapal.com/api3-demo-keys.txt
There is a dotenv file where you can easily change the keys accordingly.
I have also included a Pesapal_node_sample.postman_collection.json with api sample requests and responses for this sample to easily navigate.
For more in depth documentation on pesapal API3 integration, please refer to the link below.
https://developer.pesapal.com/how-to-integrate/e-commerce/api-30-json/api-reference