Papapi is a simple, fast, and powerful microservice for Paynow, PayPal and Stripe payments.
Think of it a box that is just responsible for handling payments. You can query the transactions, create new ones, and so on. You can get webhooks for PayPal, Stripe, and Paynow status updates.
- Papapi
- Table of contents
- Supported payment methods
- Tech Stack
- Architecture
- Installation
- Contributing
- Special Thanks To
- Sponsorship
- Todo
- Paynow ✅
- PayPal ✅
- Stripe ✅
- Hono
- Kysely - ORM
- Postgres - Database
- Axios - Webhooks
Papapi uses a layered architecture
- Clone it
$ git clone https://github.com/takumade/papapi
- Install dependencies
$ cd papapi
$ npm i
-
Config your environment variables in
config/default.json
andconfig/production.json
-
Run the server
$ npm run dev
- To Start a dev database
$ wasp db start
If you installed docker as root type this before running wasp db start
$ su - takunda
Send a POST request to /users
with the following data:
{
"name": "John Doe",
"email": "johndoe@email.com",
"password": "password"
}
Send a POST request to /authentication
with the following data:
{
"strategy": "password",
"email": "johndoe@email.com",
"password": "password"
}
Set the Authorization
header to the token (accessToken) you got from /authentication
{
"Authorization": "Bearer <token>"
}
My plan is to add the 3 gateways and document them well. Other gateways will be added in future versions. Or If you are stubborn and want to add a new gateway now, please contact me but make sure it doesnt do the same thing as the other gateways.
The last thing I want is end up with a very huge repo with a lot of gateways that does the same thing.
Papapi should be simple and stupid. It should be very good at what it does.
Please see CONTRIBUTING for details.
- iamngoni - Papapi uses his version of paynow sdk
If you love Papapi, you can really help us by sponsoring us.
- Remove nodemon and uneeded code
- Clean paynow
- Add paynow mobile
- Add paypal standard
- Add stripe
- Add stripe webhooks
- Dockerize app
- Standardize payment status
- Test stripe
- Test paynow mobile
- Test paypal standard
- Test stripe webhooks
- Add paypal example docs
- Add paypal standard example docs
- Add stripe example docs
- Add paypal config docs
- Add paynow config docs
- Add stripe config docs
- Write tests for paypal standard
- Write tests for stripe
- Write tests for paynow mobile
- Add tests for stripe standard
To be continued...