Files
digifi-PayStack/README.md
T
tolu-paystack 6f53b7d3df add readme
2023-03-09 14:22:54 +01:00

2.0 KiB

Paystack Subscriptions Sample App

This sample application shows how to integrate Paystack's Subscriptions API in your apps. For the official documentation for Paystack Subscriptions, head over to the docs

Demo

View a live demo of the app here.

Get Started

Requirements

Running the sample locally

  1. Clone this repo:
git clone https://github.com/PaystackOSS/sample-subscriptions-app
  1. Navigate to the root directory and install dependencies
npm install
  1. Rename the .env.example file to .env and add your Paystack secret key. You can also change the default port from 5000 to a port of your choosing:
PAYSTACK_SECRET_KEY=sk_domain_xxxxxx
  1. Start the application
npm start
  1. Visit http://localhost:5000 in your browser to interact with the app. You should be able to signup/login, subscribe to a plan, and view/manage your existing plan(s).

Contributing

If you notice any issues with this app, please open an issue. PRs are also more than welcome, so feel free to submit a PR to fix an issue, or add a new feature!

License

This repository is made available under the MIT license. Read LICENSE.md for more information.