#gaetan-checkout-coupon
1 messages ยท Page 1 of 1 (latest)
No that's not possible, that's something you would track on your end
there's https://stripe.com/docs/api/coupons/object#coupon_object-times_redeemed but we track this and you can't change the max number of redemptions
:'(, ok I can do this with metadata maybe ..
because coupon can be use only from checkout session for exemple ?
not really?
Sorry I think I'm misunderstanding your question at this point. What is the real problem you are trying to solve?
I want use a coupon with a configuration 100% reduction, as free..
If I pass this coupon 100% free to stripe session checkout, stripe said me it's not possible to do this.. I don't want that the user put his banking informtions so I woulk like a process to use coupon without having pay ..
so if I put a metadata on this coupon when I create this, and then I check this metadata, I increment this I can manage my process without redirect the user on stripe checkout session page
Checkout today doesn't support 100% off coupon for one-time payments. It's just not possible to do this
But yeah I think with the flow you describe you mostly would build this yourself ahead of Checkout
like you would ask them if they have a coupon code (your own,not Stripe's) and if so you'd skip Checkout right?
gaetan-checkout-coupon
yes
- user come on my website put his code 100% free
- server side check if coupon exist on stripe .
- I check if is valid with a metadata "count_coupon_free_number" and the field on the stripe coupon 'isvalid' for the duration
I think it can work, and I bypass the stripe checkout page .
seems good ?
Yes though you don't really need to use our Coupon feature in that case I would say. It'd be easier to have your own logic
yes but it avoid to stock on my side the code coupon and with stripe I can put a duration for the validity, it's 2 feature cool
that I no need to code
gotcha, then yes that seems like it would work. Just a bit annoying that you have to track usage that way. I wouldn't use metadata personally, I'd cache all of this in my own database.
ok thanks for the tips @silk cliff ๐ and thanks for your conversation ๐
Sure thing! Hopefully we can add support for 100% off coupon in Checkout soon to solve your problem ๐
it's will be really amazing, can you keep me in touch if it can be done ?
Unfortunately that's not really something we could reach out to you about. But it's something we want to add support for later this year