{"id":21285219,"url":"https://github.com/takumade/papapi","last_synced_at":"2025-07-11T11:32:16.991Z","repository":{"id":44389114,"uuid":"512392511","full_name":"takumade/papapi","owner":"takumade","description":"A payment micro-service for Paynow, PayPal and Stripe","archived":false,"fork":false,"pushed_at":"2024-05-01T13:58:27.000Z","size":1406,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T23:22:21.801Z","etag":null,"topics":["api","paynow-zimbabwe","paypal","stripe","wasp-lang"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takumade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-10T09:19:19.000Z","updated_at":"2024-05-01T13:58:31.000Z","dependencies_parsed_at":"2024-05-01T09:46:51.737Z","dependency_job_id":"2bae0acf-5a91-46aa-9420-d50b33db5ab2","html_url":"https://github.com/takumade/papapi","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takumade%2Fpapapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takumade%2Fpapapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takumade%2Fpapapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takumade%2Fpapapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takumade","download_url":"https://codeload.github.com/takumade/papapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225716382,"owners_count":17512997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","paynow-zimbabwe","paypal","stripe","wasp-lang"],"created_at":"2024-11-21T11:18:53.283Z","updated_at":"2024-11-21T11:18:53.824Z","avatar_url":"https://github.com/takumade.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Papapi\n\nPapapi is a simple, fast, and powerful microservice for **Paynow, PayPal and Stripe** payments.\n\nThink 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.\n\n\n# Table of contents\n- [Papapi](#papapi)\n- [Table of contents](#table-of-contents)\n- [Supported payment methods](#supported-payment-methods)\n- [Tech Stack](#tech-stack)\n- [Architecture](#architecture)\n- [Installation](#installation)\n  - [Add a user](#add-a-user)\n  - [Get a token](#get-a-token)\n  - [Making authenticated requests](#making-authenticated-requests)\n- [Contributing](#contributing)\n- [Special Thanks To](#special-thanks-to)\n- [Sponsorship](#sponsorship)\n- [Todo](#todo)\n  - [Features](#features)\n  - [Testing](#testing)\n  - [Documentation](#documentation)\n  - [Quality Assurance](#quality-assurance)\n   \n\n\n\n# Supported payment methods\n1. Paynow ✅\n2. PayPal ✅\n3. Stripe ✅\n\n# Tech Stack\n1. Hono\n2. Kysely - ORM\n3. Postgres - Database\n4. Axios - Webhooks\n\n\n# Architecture\nPapapi uses a layered architecture\n\n![Papapi Architecture](public/images/architecture.png)\n\n\n# Installation\n\n\n1. Clone it\n\n```bash\n$ git clone https://github.com/takumade/papapi\n```\n\n2. Install dependencies\n\n```bash\n$ cd papapi\n$ npm i\n```\n\n3. Config your environment variables in `config/default.json` and `config/production.json`\n\n4. Run the server\n\n```bash\n$ npm run dev\n```\n\n6. To Start a dev database\n   \n```sh\n$ wasp db start\n```\n\n\nIf you installed docker as root type this before running `wasp db start`\n\n```sh\n$ su - takunda\n```\n\n## Add a user\n\nSend a POST request to `/users` with the following data:\n\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"johndoe@email.com\",\n  \"password\": \"password\"\n}\n```\n\n## Get a token\n\nSend a POST request to `/authentication` with the following data:\n    \n```json\n{\n    \"strategy\": \"password\",\n    \"email\": \"johndoe@email.com\",\n    \"password\": \"password\"\n}\n```\n\n## Making authenticated requests\n\nSet the `Authorization` header to the token (accessToken) you got from `/authentication`\n\n```json\n{\n    \"Authorization\": \"Bearer \u003ctoken\u003e\"\n}\n```\n\n\n\n\n# Contributing\nMy 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.\n\nThe last thing I want is end up with a very huge repo with a lot of gateways that does the same thing.\n\nPapapi should be simple and stupid. It should be very good at what it does.\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n\n# Special Thanks To\n1. [iamngoni](https://github.com/iamngoni) - Papapi uses his version of paynow sdk\n\n# Sponsorship\nIf you love Papapi, you can really help us by sponsoring us.\n\n\n# Todo\n\n## Features\n- [x] Remove nodemon and uneeded code\n- [x] Clean paynow\n- [x] Add paynow mobile\n- [x] Add paypal standard\n- [x] Add stripe\n- [x] Add stripe webhooks\n- [x] Dockerize app\n- [x] Standardize payment status\n\n## Testing\n- [x] Test stripe\n- [x] Test paynow mobile\n- [x] Test paypal standard\n- [x] Test stripe webhooks\n\n## Documentation\n- [x] Add paypal example docs\n- [x] Add paypal standard example docs\n- [x] Add stripe example docs\n- [x] Add paypal config docs\n- [x] Add paynow config docs\n- [x] Add stripe config docs\n\n## Quality Assurance\n- [ ] Write tests for paypal standard\n- [ ] Write tests for stripe\n- [ ] Write tests for paynow mobile\n- [ ] Add tests for stripe standard\n \n\nTo be continued...","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakumade%2Fpapapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakumade%2Fpapapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakumade%2Fpapapi/lists"}