https://github.com/emmo00/payment-notify-service-ts
This service notifies you by email whenever you have a successful payment made to your FLUTTERWAVE account.
https://github.com/emmo00/payment-notify-service-ts
email flutterwave nodemailer typescript
Last synced: over 1 year ago
JSON representation
This service notifies you by email whenever you have a successful payment made to your FLUTTERWAVE account.
- Host: GitHub
- URL: https://github.com/emmo00/payment-notify-service-ts
- Owner: Emmo00
- Created: 2024-01-13T11:38:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-13T20:24:24.000Z (over 2 years ago)
- Last Synced: 2025-01-11T19:37:19.896Z (over 1 year ago)
- Topics: email, flutterwave, nodemailer, typescript
- Language: TypeScript
- Homepage: https://github.com/Emmo00/payment-notify-service
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# payment-notify-service-ts
> My attempt to convert [payment-notify-service](https://github.com/Emmo00/payment-notify-service) to a Typescript project.
This service notifies you by email whenever you have a successful payment made to your `FLUTTERWAVE` account.
## Tech Stack
- Node.js
- Express.js
- Nodemailer, Sendinblue
## Endpoints
```txt
GET /api/status - Status Ping
POST /api/webhook-callback - Webhook Callback
```
## Environment Variables
```txt
NODE_ENV=
PORT=
CORS_ORIGIN=
SENDINBLUE_API_KEY=
EMAIL_FROM=
EMAIL_TO=
FLW_PUBLIC_KEY=
FLW_SECRET_KEY=
FLW_SECRET_HASH=
```
## Get it started
Clone Repo.
```bash
git clone
```
Install deps.
```bash
npm install
```
create a file called `.env` in the root of the project and fill in the environment variables
Create a file in to root of the directory called `db.json`, and add the following content to it, than save:
```json
{ "transactions": [] }
```
Start Project
```bash
npm run start
```