Supports the following payment gateways:
- PayPal
- Braintree
(Note: I used Swagger UI plugin for Hapi [https://github.com/glennjones/hapi-swaggers] - this provides an interactive API documentation which enable testing of API endpoints without the need to create an API client.)
- Clone the repo:
git clone https://github.com/rtorino/node-payment-gateways.git
- Run
cd node-payment-gateways && npm install
- Data are persisted using MongoDB, run
sudo mongod
and thennode server.js
- Test the API: navigate to
http://localhost:5000/documentation
in your browser
- Run
npm test
- Improve test coverage
- Save response from gateways - PayPal and Braintree have different response format, need to clarify on which common information to persist into the database.