Skip to content

A simple demo showing how to implement subscriptions with Paystack

License

Notifications You must be signed in to change notification settings

PaystackOSS/sample-subscriptions-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, and your server's URL including the port. This is necessary for the callback URL you'll be redirected to after completing a transaction. You can also change the default port from 5000 to a port of your choosing:
PAYSTACK_SECRET_KEY=sk_domain_xxxxxx
SERVER_URL=http://localhost:5000
  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.

About

A simple demo showing how to implement subscriptions with Paystack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published