#kevin-checkount-discount
1 messages · Page 1 of 1 (latest)
I didn't find the option in the UI
Hello! Can you clarify what you mean by that? Typically discounts/coupons aren't something you'd apply to the product itself - it's usually something you'd apply to a customer or a subscription
Sure, if I set up a product with price of $10, and during this holiday season, I want to give users 10% discount or a coupon for the same purpose on this product, how to achieve that?
Well how are you charging your customers for this product? ARe you using Checkout? Invoices? Something else?
yes, we are using Stripe checkout page
so when a user checks out, it will bring them to Stripe checkout page
Gotcha! Then what you'd want to doinstead is change your Checkout creation code to also pass in discounts so that it's automatically applied (https://stripe.com/docs/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.
ok, so there is no UI where I can set this up? do I have to update the code base and re-deploy the code? and can I also set up expriation date etc?
do you have an example of using this property, how to add coupon and make it discount 10%
Correct, there's no UI to set this up - you'd have to implement in your code or have your users provide the promo code in the CHeckout Session UI themselves
We have examples of how to do this in code here: https://stripe.com/docs/payments/checkout/discounts
Great, thanks, what if I give 100% discount and make the small item free, does Stripe charge any fees in this kind scenario?
I don't believe we'd charge any fees for that (since not payment is happening)
great, thanks, one more quick question please, when I setting up coupon, I see a coupon name, coupon id and promotional code, which one should I give the customer to redem it
can I setup a coupon without the promotional code and allow users redem the coupon directly
kevin-checkount-discount
If you want your customer to be able to redeem it in the chekout sesseion UI itself, you'd enable promo codes for the checkout session and give them the promotional code to enter in
Got you, so coupon obj and promotional code have to work together
Yup!
do I have to manually enable the promo code section in checkout, or does it appears after I update the checkout section with coupon property
thanks btw
never mind, found it, that's all, thanks
👍