#cansozbir-coupons
1 messages ยท Page 1 of 1 (latest)
Hi ๐ no, this is not pre-built functionality that exists. You could try creating fixed amount coupons that are the same value as the product that you're trying to give for free.
I am ok with writing a fixed amount. But can I make something like this then:?
product_1 is 10 eur
product_2 is 20 eur
if you apply HOLIDAY coupon code, and buy product_1, then apply 20eur discount to product_2
do I need to write some code on backend to catch this thing? Or is this something we can handle from stripe?
@ember cobalt
I would recommend testing to confirm, but I believe that if you restrict a coupon to applying to a specific product, then the coupon won't be able to discount more than the price of that product.
but I don't want to have a coupon code which directly gives the product_2 for free to you
I want to have an "IF", if you have bought the product_1
The closest thing that we have to that is the applies_to field on a Coupon, that controls what products a Coupon can be applied on.
https://stripe.com/docs/api/coupons/object#coupon_object-applies_to