#wackjeston_api

1 messages ยท Page 1 of 1 (latest)

wanton pathBOT
#

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

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

wanton topazBOT
#

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.

wanton topazBOT
lean trout
#

Hi @dusky spindle ๐Ÿ‘‹ sincere apologies for the delay, I'm taking a look.

dusky spindle
#

No worries

#

I hope you are well

lean trout
#

I'm alright, but swamped.

#

Okay, so the first one of those PIs is an intent that used a card and succeeded.

dusky spindle
#

Yes, this was done using the google pay option from the express checkout

#

the other is using the paypal option

lean trout
#

The second is one that used PayPal and failed during the confirm call. Looks like a pretty generic decline too.

dusky spindle
#

They both update before confirming to add in the delivery cost

lean trout
#

If you don't update the intent before confirming, does PayPal succeed?

dusky spindle
#

Yes, every time

#

I couldn't find any more detail on why it declined, just gineric_deciline

lean trout
#

What do you see as you're going through the testing for PayPal? Do you see a screen that gives you an option to approve or fail the transaction?

dusky spindle
#

I get the pop up

#

Which allows you to choose delivery address and payment method

#

and delivery option

#

I would send a screen shot but there is a lot of my boss' personal details

#

I'm litrelly only updating the amount

#

The update is always successfull, it just fails to confirm

lean trout
#

Ah, this is an Express Checkout Element? I was thinking Payment Element.

dusky spindle
#

Sorry yeah it's express

lean trout
#

Gotcha (I think you said that initially and it didn't click for me, sorry about that)

dusky spindle
#

no worries

#

I am confirming using JS if that helps

lean trout
#

Gotcha, and you're creating the intent up front here. The only thing coming to mind is try calling stripeElements.update() prior to the confirmation, to fetch the updates from when you modified the Payment Intent, but I'm not confident that will resolve this behavior.

#

I'm still trying to take a closer look at the logs to see if they give me any more insight.

dusky spindle
#

Now trying this, bear with

#

Doesn't appear to be working

#

Should I be calling it before or after the submit?

lean trout
#

Before

dusky spindle
#

can't see it doing anything here

#

I've just noticed this

#

Paypal is activated in my account tho

lean trout
#

Ignore that

dusky spindle
#

Oh cool

lean trout
dusky spindle
#

Could you send me a screen shot of the amount not lining up so I can see where it as gone wrong

lean trout
#

No, it's internal logs, the amounts line up with the original and updated amount you provided for the intent.

dusky spindle
#

I've read through the docs you sent me and I am already using all these practices

lean trout
#

I think it's different, I think there the intent is not created until the very end so you would already know the shipping amount and not need to update the intent.

dusky spindle
#

But their shouldn't be any issue with updating the intent before confirming

#

It works fine with google pay

lean trout
#

I agree it doesn't make sense to see different behavior based on payment method being used, unless this is some how a PayPal restriction happens to manifest. When things are slower I plan to try to reproduce this behavior and report it to our teams if I'm able to do so.

dusky spindle
#

Thank you for your help

#

I have to go now

#

Have a good day, I hope it slows up