Node.js Library for processing online payment (Credit Cards, Braintree and Paypal)
- Back-end Languge: Node.js (Express Framework)
- Database: MongoDB
- UI Framework: Bootstrap 4.3
- Template Engine: Twig
- Payment processors: Braintree and Paypal
- API Documentation: Swagger
- Docker Image
- Node.js Installed
- MongoDB Installed
- Git Installed
- Paypal Sandbox Account
- Braintree Sandbox Account
- Clone the repository
$ git clone https://github.com/ahmadelmalah/Node.js-lib-for-online-payment.git
- Install NPM Modules
$ cd Node.js-lib-for-online-payment
$ npm install
- Create .env for your enviromental variables by copying .env.example
$ cp .env.example .env
- Update .env with your sandbox accounts (You can replace nano with your favourite editor)
$ nano .env
- Now we are ready!
$ npm start