#jmak
1 messages · Page 1 of 1 (latest)
Do you see the free trial days in this page?
oh i don't do this via the products page?
like I basically want a payment link such that the first 30 days are discounted, and then the regular price
but this would be creating a subscription for a particular customer
The same option is also available in payment link creation page
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
because I don't want it to be free but rather discounted
say like $8 first month, $20 after
Then you can use promo code https://support.stripe.com/questions/promotion-codes
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
so I have to programmatically add this promo code in for them when I create the CheckoutSessionParams?
Is there a way to automatically add that? I see that there is an allow_promo_codes
You can do that. If you are using payment link, there's also a prefilled_promo_code URL param https://docs.stripe.com/payment-links/customize#customize-checkout-with-url-parameters
ah no i'm not using a payment link, i'm programmaticcaly creating their checkout links right now since I need to store things
how do I do that with CheckoutSessions?
"like I basically want a payment link such that the first 30 days are discounted, and then the regular price
but this would be creating a subscription for a particular customer" -> this is what you said earlier. So my understanding is that you are using payment links
sorry, i thought it would be easier if i could do it through the UI, but if that's not possible then I'd stick to my original flow
my original flow is that right now I am programatically creating the checkoutSession for them
so now I basically just need to create the promo codes right
You can still do it through Dashboard
- create a payment link
- create a promo code
- append the promo code in the payment link through
prefilled_promo_code