0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Used plans trial by default for checkout sessions (#158)

no-issue

Without this flag the checkout session will ignore any default trial periods
attached to the plan. Now we are able to give basic support for trials, by
attaching a trial period in Stripe Dashboard
This commit is contained in:
Fabien 'egg' O'Carroll 2020-05-21 10:14:36 +02:00 committed by GitHub
parent ce72aa40a0
commit 48260dedba

View file

@ -124,6 +124,7 @@ module.exports = class StripePaymentProcessor {
customer_email: customerEmail,
metadata,
subscription_data: {
trial_from_plan: true,
items: [{
plan: plan.id
}]