#charlche_error

1 messages ยท Page 1 of 1 (latest)

strong dragonBOT
#

๐Ÿ‘‹ 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/1229888537084690473

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

jovial ravineBOT
wide turtle
#

Hello ๐Ÿ‘‹
Give me a moment to look

#

Actually, can you double check the PaymentIntent ID?

#

It seems to be missing a few characters

earnest ledge
#

oh my bad, let me double check the ID

#

it was, sorry about that

#

pi_3P60NUFdV4bT3T5F10r0rpit

wide turtle
#

Is there a reason you're passing the shipping address twice?

Initially, you're setting shipping address at creation which uses your secret key. The confirmation request uses your Publishable key since it's happening client-side.

#

Since you've already set the address at creation, you don't need to pass it again at confirmation.

earnest ledge
#

Is the issue that shipping address should only be set once and if we pass it in the confirmation request it will give us a 400?

wide turtle
#

Kind of. If you try to pass it in with the confirmation request, we try to update it on the PaymentIntent.
However since confirmation request uses Publishable key, the API throws this error.

earnest ledge
#

oh i see

#

There isn't any reason in particular that we are passing it twice, or another way to put it is we aren't doing it intentionally. I am new to all of this, just started at my new job and am taking on a bug ticket for this error. I don't see a way to not pass the shipping information in the call we are making with the SDK. We only started encountering this when we started to add the shipping information to our payment intent creation so that we can have that information to use for Radar rules for fraud mitigation.

#

and sorry for my lack of knowledge, but it seems like the shipping address information is contained in the elements object?

wide turtle
earnest ledge
#

ah yes

#

should we remove that?

wide turtle
#

Yeah since you're already setting shipping info from server-side, I assume you already have shipping address for the customers.

#

So you can remove that, yeah..

earnest ledge
#

sweet, let me try doing that and testing on our end

#

thanks