Ghost/ghost/stripe/lib
Rishabh 52e3ae2058 Handled mapping offer to subscription for free trials
refs https://github.com/TryGhost/Team/issues/1726

Free trial offers don't have a Stripe coupon created for them, as the trial is directly added to checkout session. So for mapping a subscription to offer, we pass the offer id directly from checkout metadata to link the subscription in backend with right offer data. This also handles the case where the offer id against a subscription can get overwritten for a subsequent subscription event, as the sub event from Stripe doesn't has the trial offer info.

- handles storing an offer id for a subscription
- updates member detail in Admin to show the offer info for a subscription
2022-08-11 12:03:38 +05:30
..
Migrations.js
StripeAPI.js Fixed trial days validation for stripe checkout 2022-08-09 14:14:22 +05:30
StripeService.js
WebhookController.js Handled mapping offer to subscription for free trials 2022-08-11 12:03:38 +05:30
WebhookManager.js