#newton_checkout-discounts-subscriptions
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1234537781804535901
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Can you share a request ID or Checkout Session ID where you are creating a Checkout Session with a discount?
Unfortonately, I haven't created a Checkout Session yet. I'm still in early stages of development and am trying to understand how discounts will work when I attach a discount to a Checkout Session.
I see that discounts can be applied to Customers, Subscriptions, and Subscription Items and am confused which of those the discount/coupon will be applied to when I create a checkout Session object when using https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-discounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm still in early stages of development and am trying to understand how discounts will work when I attach a discount t a Checkout Session.
Honestly the easiest way to do this is to create some Checkout Sessions in test mode. There are plenty of nuances to how Checkout applies the settings in different scenarios and the fastest way to really understand it is to test it directly
Do you have a Stripe account?
Yes, I have a Stripe account.
OK, I'll play around w/ creating checkout sessions then.
I assume I'll figure out Question 1 w/ a bit of playing around w/ a test account
For question 2 - do you have any articles you can point me to that will direct me on how to specifyin which of the three options (i.e., Customer, the Subscription, or each of the Subscription Items) to attach to the discount to when creating Checkout Session object in subscription mode?
Currently we do not have a feature in Checkout that will allow you to specify. I am 90% certain the discount will be applied to the Subscription.
I can request those features to be added though.
OK, thanks!
Attaching to the subscription only may be good enough if I can set up the coupon to not apply to the one-time installation/deployment fee that we'll be charging customers.
You can configure that when you define your Coupons (how often they should apply) using the duration property: https://docs.stripe.com/api/coupons/create#create_coupon-duration
OK, thanks!
I'll take a look at that and play w/ checkout sessions in test mode.
Thanks!
Happy to shed what ๐ก I can ๐