#yagnesh_api

1 messages · Page 1 of 1 (latest)

wet condorBOT
#

👋 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/1499297285488775218

📝 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.

torpid geode
#

Hey do give me some time to look into this

warm citrus
#

Sure

torpid geode
warm citrus
#

Yes I do:
this.stripeV3 = this.stripe(publishableKey, {
betas: ['custom_checkout_adaptive_pricing_2', 'custom_checkout_server_updates_1'],
locale: this.currencyCode() || 'auto',
});
the thing is that update checkout session request body is showing empty in the dashboard, even though explicitly passing discount as empty array

torpid geode
#

Right understood, I think i might know whats going on

#

Currently testing it out on my side, so do give me some time

warm citrus
#

Sure sure, please

torpid geode
#

I took a deeper look into this, for some reason, it seems like the empty discount parameter was not included into the request body

wet condorBOT
#

Hello @warm citrus, we have sent you a direct message, please check it at https://discord.com/channels/@me/1499312465354293343

  • 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
torpid geode
#

As the Investigation might take some time to look into, Could I trouble you to write in to us through the DM i just sent you?

warm citrus
#

Okay

#

Hey,
i think passing discount = null is working

#

empty array is not working

torpid geode
#

Yup, I noticed that as well, dor some reason the empty array [] was dropped

#

during the request

warm citrus
#

though in docs it is mentioned passing as empty array should work,
i think ideal should be empty array

torpid geode
#

Could you try with discounts: "",

#

it worked for me

wet condorBOT
warm citrus
#

yes that worked too,
null and "" is working

torpid geode
#

nice, so it seems like unsetting the discounts via "" would work.

#

I will still be checking with our internal teams to see if this ("") is the intended way of removing discounts (because it does not seem so to me) and will reply you in the email ticket you just filed with us