Skip to content

EdwinWalela/flutterwave-subscription

Repository files navigation

Flutterwave Subscriptions

Handling monthly subscriptions using Flutterwave

Run locally

  1. Start MongoDB Server
docker-compose up
  1. Create a .env file
PORT=
DB_URI=mongodb://user:password@host:port
MONGO_USER=demo
MONGO_PASSWORD=demo
MONGO_DB=demo
SALT_ROUNDS=10
JWT_EXPIRY=1
JWT_SECRET=
FW_PUBKEY=
FW_SECRET_KEY=
FW_PREMIUM_LINK=
  1. Create a merchant account on Flutterwave and copy public key and secret key to the .env file

  2. Create a payment link from the Flutterwave dashboard and copy the link to the .env file

  3. Create a local tunnel URL using Ngrok and add the url as a webhook on the Flutterwave dashboard

  4. Start NodeJS Server

npm start

Test

npm run test

API Documentation

Service Subscription

drawing

Use the following card details:

Card number: 5531 8866 5214 2950

Cvv: 564

Expiry: 09/32

OTP: 123456

drawing

Payment confirmation

drawing

Flutterwave Admin dashboard

drawing

Reference

Flutterwave Documentation

About

Monthly subscription service using Flutterwave

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published