1
0
mirror of synced 2026-08-06 23:27:03 +00:00
Commit Graph

16 Commits

Author SHA1 Message Date
spirobel 411ac6ec80 DEV: add frontend tests to make sure pricing-table works
We test three conditions:
1. Make sure the customer email is prefilled, if there is a logged in discourse user
2. The pricing table also displays, if there is no logged in discourse user
3. If the pricing table is not configured, the pricing table element does not show up.
2024-04-23 15:32:19 -06:00
Faizaan Gagan 392b88265b FIX: set Discourse consistent styles on Stripe card element (#124)
* FIX: set Discourse consistent styles on Stripe card element

* use correct placeholder color

* applied prettier

* mock update method for cardElement

* minor formatting
2022-06-24 21:18:38 +05:30
Jarek Radosz d6eaba632d DEV: Lose the es6 suffix (#112) 2022-03-07 00:20:03 +01:00
Roman Rizzi 088b8d2239 REFACTOR: Use the new format for acceptance tests. (#37) 2021-01-04 16:32:33 -03:00
Justin DiRose 1ad5b17640 FEATURE: Better UX for anonymous users (#25)
Improves the subscription flow for anonymous users by making the routes available, and showing a login button. Clicking login from this page will save a `destination_url` cookie so that when logging in they're redirected back to the subscription page they were at.
2020-10-28 13:30:26 -05: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 9c46794e80 DEV: Remove deprecations & improve error handling (#12)
- Replace deprecated methods on client
- Fix broken dropdowns due to select kit 2 upgrade
- Graceful error handling when Stripe keys are not configured but plugin enabled
2020-05-28 10:32:57 -05:00
Rimian Perkins 9902947e99 a bit more testing 2020-01-10 16:47:28 +11:00
Rimian Perkins ba43e9d977 name space tests 2020-01-10 14:24:39 +11:00
Rimian Perkins b2c5842aa6 only delete the right subscription 2019-11-12 12:43:23 +11:00
Rimian Perkins 1734abc1b9 product pretender 2019-11-12 11:03:04 +11:00
Rimian Perkins f61f756d9c fix broken subscribe page test 2019-10-10 14:18:44 +11:00
Rimian Perkins bb31deae89 basic subscribe page 2019-10-10 13:52:55 +11:00
Rimian Perkins 91045583ad namespace subscriptions controller 2019-10-10 13:09:24 +11:00
Rimian Perkins 8cc4f880eb name space admin controller 2019-10-10 12:08:52 +11:00
Rimian Perkins 2c6944e66e stub stripe and add pretender 2019-10-09 11:53:58 +11:00