#xwjs_unexpected

1 messages ¡ Page 1 of 1 (latest)

devout fractalBOT
#

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

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

prime jungle
modest ridge
#

I just tried the demo and the payment went through

prime jungle
#

i followed the guide. it was working on last week. but yesterday when i try again it didnt work anymore

modest ridge
#

DO you have a test website hosted that we can run and test ?

prime jungle
modest ridge
#

I managed to open the Google Pay popup

prime jungle
#

niceee can you try to pay now

modest ridge
#

It works as expected

prime jungle
#

hmm this is my view

modest ridge
#

Are you making an API call before calling the confirm ?

#

Is there a logic that adds latency sometimes to your flow ?

prime jungle
#

nope.. but this is my code

modest ridge
#

You are probably calling handleConfirm from another event sometimes then

#

Where are you calling handleConfirm in your code ?

prime jungle
#

hm i am directing calling from expresscheckoutelement

devout fractalBOT
lunar wing
prime jungle
#

i have added submit before confirmPayment. but still facing the same error

lunar wing
prime jungle
lunar wing
#

I just tried your URL and it worked for me I'm afraid

prime jungle
#

any idea why this is happening on my side?

lunar wing
#

Is confirmPayment called anywhere else in your code?

prime jungle
#

nope.. only being called by ExpressCheckoutElement

lunar wing
#

The error implies otherwise

prime jungle
#

hmm if is being called at anywhere else in my code, then i think it wont work for u as well

lunar wing
#

Yeah, I'm not sure I'm afraid

#

Maybe there's some other logic you're triggering somehow that calls confirmPayment elsewhere

#

Really hard for us to debug an issue that doesn't occur for us