Commit Graph

42 Commits

Author SHA1 Message Date
Justin DiRose 7f84cee940
UX: Improve usability of purchase page (#54)
Commit does 3 things:

    Remove the duplicative currency abbreviation in favor of the currency symbol alone
    Reorders plans by the cost in ascending order.
    Fixes a flexbox button bug
2021-02-16 12:07:53 -06:00
Roman Rizzi 088b8d2239
REFACTOR: Use the new format for acceptance tests. (#37) 2021-01-04 16:32:33 -03:00
Justin DiRose 587661fafb
FEATURE: Allow one-time purchases on products (#18)
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 (#17)
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 52db93ecd8 user payments page 2019-12-17 16:31:58 +11:00
Rimian Perkins 7d3ca0421a rm old donation form 2019-12-16 10:59:59 +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
Rimian Perkins ce600eec04 fix broken paths 2019-12-03 11:00:03 +11:00
Rimian Perkins bdb5883d6a enable 2019-11-07 15:14:52 +11:00
Rimian Perkins a4c1168e4f skip another 2019-11-07 15:07:04 +11:00
Rimian Perkins 5c13266e5b skip failing test 2019-11-07 14:58:39 +11:00
Rimian Perkins 59dd4deb76 file name extention wrong 2019-11-07 14:33:08 +11:00
Rimian Perkins 2c6944e66e stub stripe and add pretender 2019-10-09 11:53:58 +11:00
Rimian Perkins 22af03a42e add billing to confirm dialog 2019-09-12 18:51:40 +10:00
Rimian Perkins 1add7e9cdf Fix broken test and form wrap 2019-09-12 15:52:30 +10:00
Rimian Perkins 7ad42c9b48 combo box with amounts. use decimals 2019-09-12 11:21:27 +10:00
Rimian Perkins 55bab5d936 rm redundant component 2019-09-12 09:28:01 +10:00
Rimian Perkins dfba5471f9 add specs back. fix plugin name 2019-09-12 09:25:06 +10:00
Rimian Perkins fb372703a2 try and get the js tests to actually run 2019-09-12 07:51:40 +10:00
Rimian Perkins fdd4d1ed5f yarn prettier 2019-09-12 07:14:16 +10:00
Rimian Perkins 11b2917254 eslint 2019-09-11 22:17:07 +10:00
Rimian Perkins a9434f5723 load in components 2019-09-11 20:37:23 +10:00
Rimian Perkins ee2be672f7 initial components 2019-09-11 20:19:50 +10:00
Rimian Perkins 78914e0511 Add new plugin files.
This gets the plugin running again without name collisions. A solid starting point
2019-09-11 13:19:07 +10:00
Rimian Perkins 32f883a7ad pretty code 2019-08-28 18:36:19 +10:00
Rimian Perkins 8d8e9f9ad1 abstract out the stripe component for easy future testing 2019-08-28 14:59:45 +10:00
Rimian Perkins f1de907c32 add the basic form 2019-08-27 22:05:30 +10:00
Rimian Perkins 0cb3a9acde format with prettier 2019-08-27 20:37:20 +10:00
Rimian Perkins f49c0c89a3 empty form component 2019-08-27 19:56:55 +10:00
Rimian Perkins abaf101173 initial spec for donation-row component 2019-08-26 17:34:40 +10:00
Rimian Perkins 2df3e0d85a disable this to get tests running for now 2019-08-26 11:24:30 +10:00
Rimian Perkins 118d71cfc7 assert combobox has things in it 2017-03-20 12:24:39 +11:00
Rimian Perkins 751274244d component test runs but does not really test anything 2017-03-02 09:35:06 +11:00
Rimian Perkins 8cabbc7ac9 initital test 2017-02-24 12:12:28 +11:00