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:
parent
ce72aa40a0
commit
48260dedba
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ module.exports = class StripePaymentProcessor {
|
|||
customer_email: customerEmail,
|
||||
metadata,
|
||||
subscription_data: {
|
||||
trial_from_plan: true,
|
||||
items: [{
|
||||
plan: plan.id
|
||||
}]
|
||||
|
|
Loading…
Add table
Reference in a new issue