ravepay-subscriptions
v0.0.2
Published
RavePay subscription API for Node.js
Downloads
1
Maintainers
Readme
RavePay Subscription API
This is a WIP unofficial RavePay subscription API for Node.js >= v8.x.x
. With this API, you can handle recuring billings within your Node.js application.
Installation
Using Node.js v8.X or lastest, you install using:
npm install ravepay-subscriptions
Important!
From a security standpoint, it much safer to store all ravepay API keys and other confidentials in environment variables instead of hard-coding them in your source code.
Plan API
Detailed docs coming up
Plan class
new Plan()
Class methods
async create({ amount, name, interval, duration })
async listAllPlans()
async fetchPlan({ planId, name })
async cancelPlan({ planId })
async editPlan({ planId, name, status })
Subscription API
Detailed docs coming up
Subscription class
new Subscription()