stripe-assistant
v1.0.23
Published
stripe-assistant provides a set of utility functions that wrap around stripes api!
Downloads
8
Readme
stripe-assistant
stripe-assistant provides a set of utility functions that wrap around stripes api!
API
SmartyPants converts ASCII punctuation characters into "smart" typographic punctuation HTML entities. For example:
| method | args | returns |
| ------------------- | ------------------------------- | ----------------- |
| getTrialUsers | limit: int
planId: string
| Promise => Array |
| getTrialConversions | time: string
planId: string
| Promise => Object |
Example 1
stripeHelper.getTrialConversions('dec, 2020', 'planId').then((res) => console.log(res))
Output: {
trialUsers: 3,
conversions: 1,
conversionRate: '33.33333333333333 %
}
Example 2
stripeHelper.getTrialUsers(100, "planId").then((res) => console.log(res))
Output: [{...},{...},{...}]