#neha_docs
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215665615961071656
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- neha_best-practices, 6 hours ago, 110 messages
- neha_docs, 12 hours ago, 26 messages
- neha_webhooks, 14 hours ago, 66 messages
- neha_unexpected, 17 hours ago, 73 messages
- neha_best-practices, 1 day ago, 47 messages
i've tried to make a code but i only see one discount possible
What do you mean by this? Why do you need to apply multiple? Your example made it seem like you only need to apply 1 discount (either 5 or 10, not both)
so i make a code WELCOME
if the user spends < $50 i want it to be $5 off
if the user spends > $50 i want it to be $10 off
i happen to have 6 products, 3 under $50 and 3 over $50, so specifying the discount per product could work too
does that make sense? the use case is for a customer rewards program
customer referrs a friend, friend gets $X off, they get $X credit in return
but i want the credit to be proportional to the product
but i don't want to use a %
Yeah so why can't you just pick the correct discount to use in your code based on the price they select?
ok so i just fake the discount at the time of checkout?
like when doing the checkout session, i check the price ID and maybe swap the code?
but if the user applies the code at checkout itself, this won't work
There's not a way to customize the discount logic in checkout to what you want to do
So you need to have them select price ahead of time and apply the proper discount
Or do as you said and have a discount code per price id
ok i think i understand. one other question
for a subscription
is there a way to grandfather people into an old price for a fixed amt. of time?
Yeah just use the old price id. And then when you want to switch them to the new price: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade
If you want it automated, you could use a subscription schedule