Commit Graph

880 Commits

Author SHA1 Message Date
Justin DiRose a1a7ca98a3
DEV: Fix tests 2020-07-28 15:40:16 -05:00
Justin DiRose 83002fab3c
FEATURE: New styling of product page 2020-07-28 12:46:59 -05:00
Justin DiRose 954beeb094
FIX: Properly show information on saved plans 2020-07-28 11:56:58 -05:00
Justin DiRose 0a244111bc
FIX: Buttons out of alignment on some browsers 2020-07-28 11:49:15 -05:00
Justin DiRose 11d9b2e011
FIX: If only one plan, automatically select it 2020-07-28 11:08:21 -05:00
Justin DiRose 9e66588038
FIX: Missing translation for daily subscriptions 2020-07-27 10:37:41 -05:00
Justin DiRose 9491f558ea
FEATURE: Add support for 3D Secure payments (#19)
Adds an additional checkout flow to support authentication of payment methods.
2020-07-24 15:07:18 -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
Discourse Translator Bot fcc90e4fcc DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:25 +02: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
Mark VanLandingham 8bcb7aa93c
DEV: Import getURL to fix deprecation warnings (#16) 2020-07-07 13:50:16 -05:00
Justin DiRose 3e6d8734de
FIX: Properly namespace payment serializer (#15) 2020-07-06 15:19:45 -05:00
Justin DiRose fb4f50478d
REFACTOR: Use engine to load files, add constraint (#14) 2020-07-06 11:11:04 -05:00
Justin DiRose 8c670328b7
DEV: Add translations support 2020-07-03 11:17:13 -05:00
Justin DiRose 88f36c18a6
FEATURE: Add BRL currency support 2020-06-30 10:13:05 -05:00
Justin DiRose 4830468e32
DEV: Fixes for rubocop 2020-06-09 12:37:46 -05:00
Justin DiRose c30daa1b86
FIX: Couldn't dig the payments 2020-06-09 12:26:31 -05:00
Justin DiRose 029232e881
FIX: Stripe returned limited number of plans 2020-06-09 12:06:46 -05:00
Justin DiRose 892c889c31
FIX: Products & Subscriptions returned blank 2020-06-08 15:09:41 -05:00
Justin DiRose d360a4155d DEV: Fix tests after changes to controllers 2020-05-28 11:45:58 -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
Justin DiRose fb4fac197b
REFACTOR: Use models to store data (#11)
* REFACTOR: Use api to add subscribe link

* FIX: I18n subscribe link

* REFACTOR: Use models to store some data

This enables the plugin to show only subscription information which was
generated on Discourse. Subscription data storage is limited to the
external identifiers Stripe generates so we can interact with the API.

* DEV: Test/linting fixes/rake task
2020-05-22 11:20:05 -05:00
Roman Rizzi 7ba08ab7da
FIX: Discourse.Model was removed. Use EmberObject instead (#10) 2020-05-06 19:06:14 -03:00
Rishabh 3d9fe5fdce
Update README.md & plugin.rb after moving to /discourse 2020-04-29 16:27:17 +05:30
Rishabh 071c72419c
Update README.md 2020-04-29 16:15:46 +05:30
Rimian Perkins 83b75ab771
Merge pull request #9 from StarWar/feature/inr-currency
Feature/inr currency: INR added to supported currencies
2020-04-27 19:24:29 +10:00
Rimian Perkins 69af94b31f upgrade stripe gem 2020-04-27 19:22:23 +10:00
Raj Rathore 9153126f59 fix(coding-style): now consistent with existing coding style of the project 2020-04-23 17:17:06 +05:30
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 40a390c3eb merge remote-tracking branch 'upstream/master' 2020-04-23 15:42:13 +05:30
Rimian Perkins 31a6e570bc
Merge pull request #7 from SidVal/patch-1
Spanish Translations
2020-04-21 21:33:34 +10:00
SidV b2931cacb1
Create client.es.yml 2020-04-20 22:23:36 -03:00
SidV 4dbfb232eb
Create server.es.yml 2020-04-20 22:01:41 -03:00
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 755f2d5c46
Merge pull request #4 from iunctis/master
French version
2020-03-27 13:42:50 +11:00
Rimian Perkins 77b5567090
Merge pull request #3 from rimian/fix-disable-billing-interval
disable billing interval when cannot change
2020-03-21 20:36:00 +11:00
Rimian Perkins 39564ea779 bump 2020-03-21 20:35:05 +11:00
Rimian Perkins 48c606908a disable billing interval when cannot change 2020-03-21 20:30:30 +11:00
Rimian Perkins 22a1a5fcac Merge branch 'master' of github.com:rimian/discourse-subscriptions 2020-03-20 10:35:20 +11:00
Rimian Perkins 4ed5d163dd upgrade stripe gem 2020-03-20 10:30:32 +11:00
iunctis.fr c82f1ce141
Améliorations
Sur la page de paiement
2020-03-16 01:16:11 +01:00
iunctis.fr ced756c0fb
Create server.fr.yml 2020-03-16 00:31:04 +01:00
iunctis.fr 5def8b4002
Create client.fr.yml 2020-03-16 00:30:14 +01:00
Rimian Perkins c1d0cf3741
Update README.md 2020-02-06 15:12:29 +11:00
Rimian Perkins c2106bc94c
broken url 2020-02-06 15:09:52 +11:00
Rimian Perkins 55e03aca8d move the warranty stuff into a file 2020-02-06 15:07:14 +11:00
Rimian Perkins 60847db997 fix up links yo 2020-02-06 15:00:41 +11:00
Rimian Perkins c8172b265a
Update README.md 2020-02-06 14:50:22 +11:00