Handling monthly subscriptions using Flutterwave
- Start MongoDB Server
docker-compose up
- 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=
-
Create a merchant account on Flutterwave and copy public key and secret key to the
.env
file -
Create a payment link from the Flutterwave dashboard and copy the link to the
.env
file -
Create a local tunnel URL using Ngrok and add the url as a webhook on the Flutterwave dashboard
-
Start NodeJS Server
npm start
npm run test
Use the following card details:
Card number: 5531 8866 5214 2950
Cvv: 564
Expiry: 09/32
OTP: 123456