mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-06 11:48:09 +00:00
Justin DiRose
a868e6b838
FEATURE: Cancel payments at end of subscription vs immediately
Previously, when a user canceled a subscription, the access would revoke immediately on Discourse vs. at the end of the billing period. This commit changes the behavior to remove membership at the end of the billing period using Stripe's `cancel_at_period_end` attribute on the Subscription object. This commit now requires the setup of webhooks for subscription processing to occur correctly.
Discourse Subscriptions
Please see the topic on Discourse Meta for more information about this plugin: https://meta.discourse.org/t/discourse-subscriptions-plugin/140818
Languages
Ruby
49.4%
JavaScript
31.4%
Handlebars
14.1%
SCSS
5.1%