12 Commits

Author SHA1 Message Date
Roman Rizzi
088b8d2239
REFACTOR: Use the new format for acceptance tests. () 2021-01-04 16:32:33 -03:00
Justin DiRose
587661fafb
FEATURE: Allow one-time purchases on products ()
Building off the foundation of using the Prices API, this PR adds the ability to create a one-time purchase plan for any product, which then can add a user to the specified plan group.

Some things to be aware of:

    One-time purchases cannot have trials.
    One-time purchases use the Invoice API instead of Subscriptions. Invoices are created then charged immediately.
    Users should receive emails for these invoices directly from Stripe just like subscriptions.
2020-07-22 11:06:34 -05:00
Justin DiRose
c9ff55b46a
REFACTOR: Use the Prices API in place of Plans ()
Stripe has a newer API called Prices where you can create a price for any product and it can either be recurring or one-time. The easy part is existing Plans work with the Prices API by passing a Plan ID, but objects are returned in the slightly-different Prices API object format.

This commit is a refactor to the new API to handle the data in its new form, and lays the foundation for a one time payment plan to be added to any subscriptions product.
2020-07-15 08:44:40 -05:00
Rimian Perkins
9176471551 toggle single payments allowed setting 2019-12-17 21:14:13 +11:00
Rimian Perkins
8264930e92 user activity link to payments 2019-12-13 13:44:25 +11:00
Rimian Perkins
57fb508514 buttons for selecting price and one time payment 2019-12-13 10:41:14 +11:00
Rimian Perkins
831e64317b refactor models, routes and buttons 2019-12-12 12:59:26 +11:00
Rimian Perkins
86bc9bb3e6 rm redundant action 2019-12-10 10:15:30 +11:00
Rimian Perkins
1c31884475 show the plans in the buttons proper 2019-12-09 12:01:10 +11:00
Rimian Perkins
71d6c6dab2 display the plan in the plan buttons 2019-12-09 10:30:34 +11:00
Rimian Perkins
d3eed3546d test button click 2019-12-06 14:33:38 +11:00
Rimian Perkins
2ce314fc8d initial payment buttons component 2019-12-06 13:52:03 +11:00