#wackjeston_api
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/1227249367031742596
๐ 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.
- wackjeston_api, 21 hours ago, 15 messages
- wackjeston_api, 5 days ago, 17 messages
- wackjeston_api, 5 days ago, 26 messages
- wackjeston_api, 6 days ago, 10 messages
- wackjeston_api, 6 days ago, 11 messages
Hi @dusky spindle ๐ sincere apologies for the delay, I'm taking a look.
I'm alright, but swamped.
Okay, so the first one of those PIs is an intent that used a card and succeeded.
Yes, this was done using the google pay option from the express checkout
the other is using the paypal option
The second is one that used PayPal and failed during the confirm call. Looks like a pretty generic decline too.
They both update before confirming to add in the delivery cost
If you don't update the intent before confirming, does PayPal succeed?
Yes, every time
I couldn't find any more detail on why it declined, just gineric_deciline
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?
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
Ah, this is an Express Checkout Element? I was thinking Payment Element.
Sorry yeah it's express
Gotcha (I think you said that initially and it didn't click for me, sorry about that)
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.
Now trying this, bear with
Doesn't appear to be working
Should I be calling it before or after the submit?
Before
can't see it doing anything here
I've just noticed this
Paypal is activated in my account tho
Ignore that
In the logs, I am seeing that errors about the amounts not lining up. Can you try restructuring your flow the way we show here:
https://docs.stripe.com/elements/express-checkout-element/accept-a-payment#handle-click-event
It creates the intent as the very last step, so you don't have to make a request to update it.
Could you send me a screen shot of the amount not lining up so I can see where it as gone wrong
No, it's internal logs, the amounts line up with the original and updated amount you provided for the intent.
I've read through the docs you sent me and I am already using all these practices
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.
But their shouldn't be any issue with updating the intent before confirming
It works fine with google pay
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.
Thank you for your help
I have to go now
If you get any usfull feedback about this, my email is jack.weston@edisonhousegroup.com
Have a good day, I hope it slows up