Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. 'zi-standardmanual-1y': {
  2. id: 'zi-standardmanual-1y',
  3. name: 'ZI StandardManual 1Y',
  4. keywords: 'standardmanual year',
  5. descriptor: 'ZAPIN STDMANUAL1Y',
  6. price: prices.free,
  7. type: 'standard',
  8. frequency: 'year',
  9. interval_count:1
  10. },
  11. // Call to create a subscription
  12.  
  13.  
  14. {
  15. let createOpts = {
  16. plan: plan.id,
  17. quantity: plan.quantity,
  18. trial_end: plan.trialEnd || 'now'
  19. }
  20. if (plan.tax) {
  21. createOpts.tax_percent = plan.tax
  22. }
  23. subscription = yield stripe.customers.createSubscription(user.stripeCustomer, createOpts)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement