50 Commits

Author SHA1 Message Date
spirobel
13d23dc3fa FEATURE: Add new stripe based pricing table
This commit adds the 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 /subscriptions

For more details see https://stripe.com/docs/payments/checkout/pricing-table
2024-04-23 15:18:31 -06:00
Michelle Bueno Saquetim Vendrame
d63f241e0d
FEATURE: add ZAR currency support (#199) 2024-04-15 21:26:26 +02:00
Martin Brennan
3608944b9c
DEV: Change settings root from plugins: to discourse_subscriptions (#182)
This is so the plugins settings are better categorized in the site settings UI.
2023-11-13 10:23:25 +10:00
Justin DiRose
6414a1f6e5
FEATURE: Show/hide campaign banner with goal status (#85) 2021-07-15 15:05:27 -05:00
Jordan Vidrine
787c5550c6
FEATURE: Add ability to use custom background image (#76)
* FEATURE: Add ability to use custom background image

* Prettier
2021-06-18 10:20:54 -05:00
Jordan Vidrine
a4f36e4966
Campaign topic footer (#72)
* UX: Restyle banner, add topic footer functionality, other updates
2021-06-10 16:02:54 -05:00
Justin DiRose
f596a0f78a
FEATURE: Campaigns (#67)
Co-authored-by: Jordan Vidrine <jordan@jordanvidrine.com>

See https://github.com/discourse/discourse-subscriptions/pull/67 for the full description.
2021-06-02 13:15:03 -05:00
chalkadmin
1ae5a552a6
FEATURE: Add SGD as supported currency (#60)
Add additional currency Singapore dollars as supported Stripe currency
2021-04-13 12:20:00 +02:00
Brian Bønk
312b1182b9
FEATURE: Add DKK as supported currency 2021-04-06 09:59:27 -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
88f36c18a6
FEATURE: Add BRL currency support 2020-06-30 10:13:05 -05:00
Raj Rathore
53a11872ef fix(coding-style): linting changes reverted to be consistent with existing style 2020-04-23 17:11:00 +05:30
Raj Rathore
30299a5f13 fix(currency-symbol): hard-coded dollar symbol removed 2020-04-23 16:06:02 +05:30
Raj Rathore
f91b257198 feat(currency-inr): inr added to supported currencies 2020-04-16 01:57:56 +05:30
Rimian Perkins
125cdab24e add NZ dollar 2020-03-31 09:46:56 +11:00
Rimian Perkins
0543b3a6a3 basic hook 2020-01-13 11:10:06 +11:00
Rimian Perkins
9176471551 toggle single payments allowed setting 2019-12-17 21:14:13 +11:00
Rimian Perkins
80b721ddd8 rename some settings 2019-12-04 11:53:05 +11:00
Rimian Perkins
4a812ceff6 toggle the subscribe button 2019-11-06 20:43:16 +11:00
Rimian Perkins
c6dcff5c06 redirect to group landing page on success 2019-10-14 13:54:46 +11:00
Rimian Perkins
bb31deae89 basic subscribe page 2019-10-10 13:52:55 +11:00
Rimian Perkins
32bf78fa9a send a description to the payment intent 2019-09-12 19:17:08 +10:00
Rimian Perkins
2a1a17793f add some settings for text 2019-09-12 13:40:18 +10:00
Rimian Perkins
7ad42c9b48 combo box with amounts. use decimals 2019-09-12 11:21:27 +10:00
Rimian Perkins
73258b10b9 reorder those settings the same as stripe dashboard 2019-09-11 22:14:15 +10:00
Rimian Perkins
381315f9f3 add settings 2019-09-11 22:06:01 +10:00
Rimian Perkins
ac267fabaf basic route and template 2019-09-11 17:13:12 +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
Angus McLeod
ae793ad247 Add setting for monthly total and other minor improvements 2018-09-24 10:17:53 +10:00
Angus McLeod
45ece34200 Add donations causes 2018-09-22 14:03:30 +10:00
Angus McLeod
8453d5cc03 various 2018-06-25 18:14:50 +10:00
Angus McLeod
d55d149d7d Add recurring donations 2018-06-21 19:00:43 +10:00
Angus McLeod
446cc75cbc Make donation amounts a customisable setting 2018-02-02 19:49:58 +08:00
Angus McLeod
e8e558c3e2 Add ability to allow donor to include stripe transaction fee in their donation 2018-02-02 17:43:54 +08:00
Angus McLeod
19f197e780 Add page description setting 2018-02-02 13:43:20 +08:00
Chris Beach
df91a44277 fix client/server messages and locales
zip code should be a positive boolean not negative
remove dollar signs
fix stripe.rb method signature and charging logic
2017-11-26 12:24:27 +00:00
Chris Beach
d563cd1ddd Working checkout_controller.rb that charges Stripe
* Add billing address setting
2017-10-19 23:51:05 +01:00
Chris Beach
6814c80540 Stripe Checkout can be created via BBCode markup 2017-10-09 08:39:21 +01:00
Rimian Perkins
2aa663d922 merge in master 2017-04-27 20:35:33 +10:00
Rimian Perkins
061ea69434 add the user to a group 2017-04-24 11:44:55 +10:00
Rimian Perkins
9acaf51307 explicitly specify group name 2017-04-24 06:05:51 +10:00
Rimian Perkins
b2393cb2aa add the current user to a group when the payment is successful 2017-04-21 10:26:43 +10:00
Rimian Perkins
e208ef3dfa initial setting 2017-04-06 14:26:23 +10:00
Rimian Perkins
35f8c17e91 initial create account fields 2017-03-20 14:33:17 +11:00
Rimian Perkins
261c0dfbcc donation description 2017-03-14 13:31:20 +11:00
Rimian Perkins
057d204b87 use let keyword and toggle plugin off by default 2017-03-13 11:19:10 +11:00
Rimian Perkins
5468cac161 add settings for currency and hide post code 2017-03-07 15:21:51 +11:00
Rimian Perkins
19a7956f43 load the public key from settings 2017-02-27 14:22:52 +11:00
Rimian Perkins
a84de2c876 settings for public and private key 2017-02-27 13:45:26 +11:00
Rimian Perkins
65317324f2 only show the link when the plugin is enabled 2017-02-27 12:52:00 +11:00