#hernan999
1 messages · Page 1 of 1 (latest)
Hi there!
You want the coupon to apply to a single product in the cart?
If so, when you create the coupon, you need to set the applies_to parameter to some specific products IDs: https://stripe.com/docs/api/coupons/create#create_coupon-applies_to
Actually, all products are discounted with their respective discount id/key. but when you put the correct code of a certain product if it is 1 it only works well. But if there are several products in the cart and I give the discount to only 1, it gives me the discount for everything in the cart and not for the product that puts the coupon code on it. My question is if it is possible to have several products which all have their discount code but I only want to provide a single discount and not to all the products that are in the cart. it's possible?
I'm sorry I don't understand. Can you give me a very concrete example? For example: which products are added, which discound code you use, what is happening, what were you expecting instead?
those are the discounts you believe in stripe
Here I am making a test purchase with 2 products. in which I added a 20% discount only to the first products, but stripe is giving me a 20% discount on all products
Is it possible to only discount a single item in the cart?
In the example that happens to you, you should only make a discount of -6 €
in which I added a 20% discount only to the first products
Can you share the coupon ID?
It should be in the top right of the page when looking at the coupon in the dashboard
in which I added a 20% discount only to the first products
Please give me the coupon ID of the coupon you used in your example
I'm guessing it's this one, so svf94cw9?
svf94cw9
Thanks. Can you share your account ID (acct_xxx)? It's at the top of this page: https://dashboard.stripe.com/settings/account
use that id
I also need your account ID (acct_xxx) in order to investiguate this.
Thanks. Well like I said at the very beginning of this conversation, you need to set your coupon to apply to only specific products, which you didn't do.
When you create the coupon, make sure to set this:
This way each coupon will only apply to some specific product instead of all products.