I want to have a trial period before the payment start kicking in. How do I do that?

I could get the normal payment to work. I looked through stripe document, I just need to add a field for
trial_end= and billing_cycle_anchor= , I don't know how to go about doing that in the Prisma. Could anybody please help?
4 Replies
martinsos
martinsos10mo ago
Hey, so that is Prisma specific -> I would advise you to look into Prisma's documentation (you will have to learn some Prisma anyway to be effective with Wasp). Also, ChatGPT should be quite helpful with advising on stuff like this! Let us know when you get somewhat further, if you get stuck on something specific.
uglybeanhead
uglybeanheadOP10mo ago
I found a way around this: I just add trial_period_days when creating a subscription, here's the doc : https://docs.stripe.com/api/subscriptions/create#create_subscription-trial_period_days
Create a subscription | Stripe API Reference
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
MEE6
MEE610mo ago
Wohooo @uglybeanhead, you just became a Waspeteer level 1!
martinsos
martinsos10mo ago
Oh that is great, ok thanks for sharing!
Want results from more Discord servers?
Add your server