#MarkoBoras
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share more context for these aspects:
for each bought card
You mean the discount value depends on the amount of
items bought?
if I don't have auth on my website
if I have customer added in Stripe
What's the exact technical challenge you're facing?
I am here back sorry
sorry also for bad explanation
so my company is organizing some IT conference and we want to give discounts to partner companies. They are choosing amount of tickets they want to buy but discount for each ticket is same, for example 20%
Technical challenge that you asked, I've checked now everything. So each user in my app needs to authenticate and with that I can create stripe customers to that is even better for implementation.
ok my boss has changed requirements.
I need to create checkout where user is standalone choosing what he wants to buy and he can apply some code as a discount.
I understand the context, thanks.
So what's the challenge?
how can I create checkout where user can enter discount code and apply that discount in checkout.
for some account
You can enable allow_promotion_codes: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-allow_promotion_codes
thankss
Happy to help. Please, let me know if you have any other questions.