1
0
mirror of synced 2026-08-11 01:27:16 +00:00

450 Commits

Author SHA1 Message Date
Mark Doerr 9e5f61832d FEATURE: Add support for SEK currency (#276)
Ref: https://meta.discourse.org/t/adding-new-currency-options-for-the-subscriptions-plugin/316003/12
2025-07-07 08:42:18 -06:00
Jarek Radosz fe53f2cbc0 DEV: Clean up helpers (#279)
* remove an unused helper
* move a single-use helper to its call-site as a getter
* convert `format-currency` to a pure function helper
2025-06-20 21:36:54 +02:00
Jarek Radosz 7107966af6 DEV: Update linting config and run gjs-codemod (#277) 2025-06-05 11:40:13 +01:00
Derek Rushforth 33d033c23b FIX: Campaign banner size when sidebar is active (#274) 2025-04-14 10:47:35 -07:00
Derek Rushforth 4771d81bfa UX: Campaign banner layout improvements (#273) 2025-04-10 13:12:38 -07:00
Derek Rushforth b0af86f12b Campaign banner styles (#270) 2025-03-28 14:21:54 -07:00
Jarek Radosz 854b3f223f DEV: Update linting (#269) 2025-03-17 11:41:43 +00:00
Tomas Vavrda 208ecb66a3 FEATURE: Add support for CZK currency (#265) 2025-02-18 14:48:04 -07:00
David Taylor da48acad9a DEV: Bump dependencies and fix linting (#262) 2025-02-06 17:57:53 +01:00
David Taylor 001a25c63c DEV: Colocate component templates (#259) 2025-01-09 17:43:06 +01:00
Blake Erickson 02ba5e1ff2 FEATURE: Add support for PLN currency (#258)
Stripe supports the Polish złoty so we can add support for it.

https://meta.discourse.org/t/342040
2024-12-17 14:58:05 -07:00
Kelv 73db0b208a DEV: Update more deprecated Font Awesome icon names (#253) 2024-12-06 20:40:32 +01:00
Blake Erickson 1811b5955d FEATURE: Add support for CHF currency (#254)
Stripe supports the Swiss Franc so we can add support for it.

https://meta.discourse.org/t/316003
2024-12-05 11:01:31 -07:00
Kelv 9263d97d64 DEV: Update deprecated Font Awesome icon names (#251) 2024-12-04 02:36:19 +01:00
David Taylor 3149828c22 DEV: Convert to native class syntax (#249) 2024-11-29 16:42:50 +01:00
David Taylor 12cac3827c DEV: Update linting (#247) 2024-11-20 18:34:34 +01:00
David Taylor 7b15f57af3 DEV: Update eslint config (#245) 2024-11-19 11:31:14 +01:00
Blake Erickson eecb17698f FIX: Redirect to the pricing table page when enabled (#239)
If the pricing table is enabled the `/s` route should redirect to the
pricing table route and vice versa.

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-10-02 17:53:20 -06:00
Blake Erickson 41c443ab23 FIX: Decimal point truncation (#223)
Amounts like $45.80 were being displayed as $45.8. Which doesn't look
correct for currency.

Bug Report: https://meta.discourse.org/t/316007
2024-07-19 07:18:28 -06:00
Blake Erickson c02193943b FIX: Admins unable to cancel a subscription for a user (#220) 2024-07-12 14:33:04 -06:00
Blake Erickson 542af4cf16 FIX: Campaign banner should link to pricing table when enabled (#212)
If the new pricing table is enabled the campaign banner should link to
the pricing table route.
2024-05-15 11:44:27 -06:00
Blake Erickson e132913db4 FIX: Login required for Stripe Checkout (#209)
If an anonymous user tries to subscribe we need to show them a log in
message first. We currently don't have support for anonymous
subscriptions.
2024-05-03 17:01:51 -06:00
Blake Erickson b1920caf7d FIX: Auto-Create Support Campaign button (#206)
The Auto-Create Support Campaign button was just showing an infinite "is
loading" spinner so you couldn't even click on it.

This fix allows the button to work again and only show the loading
spinner when it is actually loading.

See: https://meta.discourse.org/t/discourse-subscriptions/140818/653?u=blake
2024-04-30 09:27:04 -06:00
Blake Erickson 7ee0b696ba FIX: Update cc save button missing (#204) 2024-04-30 06:00:55 -06:00
Blake Erickson 45754baa00 FEATURE: Add new stripe based pricing table (#202)
This commit adds an optional new stripe based pricing table.
If the user is logged in, the email field will be prepopulated with the users email.

The pricing table can be configured in the stripe dashboard.

Once the discourse_subscriptions_pricing_table setting is filled with the pricing table embed code from the stripe dashboard,
the pricing table will be displayed on /s/subscriptions

For more details see https://stripe.com/docs/payments/checkout/pricing-table
---------

Co-authored-by: spirobel <spirobel@protonmail.com>
2024-04-29 12:47:58 -06:00
Michelle Bueno Saquetim Vendrame d63f241e0d FEATURE: add ZAR currency support (#199) 2024-04-15 21:26:26 +02:00
Natalie Tay 0d28c9a56d FIX: Ensure deletion of product upon confirmation (#195)
Ensure deletion of product upon confirmation
2024-03-13 17:16:07 +08:00
Jarek Radosz d33cf2921e DEV: Update linting (#189) 2024-01-16 17:51:44 +01:00
David Taylor a3883d2a9a DEV: Resolve registerUnbound deprecation (#188) 2024-01-15 11:52:19 +00:00
Isaac Janzen 331c8630c3 DEV: Upgrade modal to Component API (#186)
- Upgrade modal to Component API
- Co-locate templates
2023-12-08 15:25:05 -07:00
David Taylor 2ea8d7b6eb DEV: Resolve transitionTo deprecation (#185) 2023-12-01 18:30:36 +00:00
Natalie Tay c30fea21ef FIX: Clicking on login should show login modal (#177)
* FIX: Clicking on login should show login modal

* Add system test that shows the login modal appears
2023-09-28 14:21:16 +08:00
alex-tee b855ce9bb9 add JPY currency (#176) 2023-09-06 12:14:41 +02:00
Penar Musaraj 7140517ec8 DEV: Fix SCSS deprecations (#172)
* DEV: Fix SCSS deprecations

Followup to https://github.com/discourse/discourse-subscriptions/pull/171

Also fixes:

```
    ╷
581 │       hsl(random(360), 100, 50);
    │       ^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    /Users/pmusaraj/Projects/discourse/discourse-subscriptions.scss 581:7  root stylesheet
Deprecation Warning: $lightness: Passing a number without unit % (50) is deprecated.
```

* More cleanup
2023-07-19 11:15:34 -04:00
Penar Musaraj 77cb62bf1f DEV: Fixes SCSS deprecation in console (#171)
Sample warning was:

```
Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($sidebar-height, 1.2) or calc($sidebar-height / 1.2)

More info and automated migrator: https://sass-lang.com/d/slash-div
```
2023-07-17 16:42:06 -04:00
Kris 00e5bc1614 DEV: remove old shadow definition (#168) 2023-06-15 10:18:04 -04:00
Isaac Janzen e365ced531 DEV: Use angle bracket syntax (#167) 2023-05-28 09:32:27 -05:00
Mark Reeves 49ddc757c9 Make country names translatable (#164) 2023-05-12 08:55:46 -04:00
Mark Reeves 7bc34bbbb4 FIX: A few more syntax fixes for button actions (#162) 2023-05-08 10:36:11 -04:00
Mark Reeves 803bba7938 FEATURE: Capture cardholder address fields for Stripe customer (#161)
- Adds the following fields to the subscription payment form:
  - Cardholder Name
  - Country
  - Postal Code
  - Address Line 1
  - City
  - State or Province
- Stripe recommends Cardholder Name & Country for verification; Cardholder Name, Country, and State/Province for US/Canada selections are required fields
- All fields are passed to Stripe for verification on submit
- Fields are also captured on the customer record in Stripe, under Billing Details
2023-05-05 13:20:35 -04:00
Selase Krakani 2babb43ffb FEATURE: Skip product listing if only one product is present (#160)
At the moment, paying for a product typically involves first clicking
the subscribe link added to the navigation bar, selecting a product and
then adding card details to to make the purchase.

This change skips the product selection step if the site has only one
product.
2023-05-04 13:52:04 +00:00
Mark Reeves 9aa4a44b2a FIX: Fix syntax for some buttons following recent updates (#159) 2023-05-03 15:50:20 -04:00
Isaac Janzen c06ae37048 DEV: Use angle bracket syntax (#158) 2023-05-02 09:24:28 -05:00
Rafael dos Santos Silva bb99a9a66a Revert "DEV: Dart Sass deprecation (#150)" (#151)
This reverts commit 1834095b23.
2023-02-07 18:33:31 -03:00
Rafael dos Santos Silva 1834095b23 DEV: Dart Sass deprecation (#150) 2023-02-07 16:25:47 -03:00
David Taylor 7fb0936e5c DEV: Update eslint-config-discourse, use prettier for hbs (#146) 2023-01-04 13:39:58 +01:00
Penar Musaraj 550e8347e3 DEV: Refactor bootbox dialogs (#137) 2022-10-17 14:42:40 -04:00
Bianca Nenciu c00e539304 UX: Make styling consistent with everything else (#134) 2022-10-03 16:14:32 +03:00
Angus McLeod aba86e5e25 FIX: Promo code placeholder (#133) 2022-09-23 10:37:28 +02:00
Penar Musaraj 39b7253c08 DEV: Refactor payment plan buttons (#131) 2022-09-14 18:32:22 -04:00