Skip to content

Commit

Permalink
feat: Configure free trial without payment details
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Oct 17, 2024
1 parent 52701eb commit 2d527e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/controllers/admin/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,14 @@ export class SubscriptionController {
success_url: successURL,
cancel_url: cancelURL,
subscription_data: {
trial_settings: {
end_behavior: {
missing_payment_method: 'cancel',
},
},
trial_period_days: trialPeriodDays,
},
payment_method_collection: 'if_required',
},
{
idempotencyKey,
Expand Down

0 comments on commit 2d527e2

Please sign in to comment.