Skip to content

Commit

Permalink
chore: add trial period for pro self-checkout (#354)
Browse files Browse the repository at this point in the history
* chore: add 30-day trial for pro self-checkout

* fix: remove print
  • Loading branch information
rohan-chaturvedi authored Aug 28, 2024
1 parent 6c67b9a commit 59bc52a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/ee/billing/graphene/mutations/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def mutate(self, info, organisation_id, billing_period):
],
customer=organisation.stripe_customer_id,
payment_method_types=["card"],
subscription_data={
"trial_period_days": 30,
},
return_url=f"{settings.OAUTH_REDIRECT_URI}/{organisation.name}/settings?stripe_session_id={{CHECKOUT_SESSION_ID}}",
)
return CreateProUpgradeCheckoutSession(client_secret=session.client_secret)
Expand Down

0 comments on commit 59bc52a

Please sign in to comment.