#xwjs_unexpected
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/1418163506858954823
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
even in the demo page (docs.stripe.com/checkout/one-click-payment-buttons?payment-ui=embedded-components) i tried google pay after confirm payment it is stuck at Complete your payment in the open Google Pay window, or close Google Pay to continue paying another way. screen
I just tried the demo and the payment went through
You should follow this guide in order to integrate with Express Checkout Element
https://docs.stripe.com/elements/express-checkout-element/accept-a-payment
i followed the guide. it was working on last week. but yesterday when i try again it didnt work anymore
DO you have a test website hosted that we can run and test ?
I managed to open the Google Pay popup
niceee can you try to pay now
It works as expected
hmm this is my view
Are you making an API call before calling the confirm ?
Is there a logic that adds latency sometimes to your flow ?
nope.. but this is my code
You are probably calling handleConfirm from another event sometimes then
Where are you calling handleConfirm in your code ?
hm i am directing calling from expresscheckoutelement
You're missing elements.submit() before confirmPayment: https://docs.stripe.com/elements/express-checkout-element/accept-a-payment#submit-the-payment
i have added submit before confirmPayment. but still facing the same error
What's the full error here obfuscated by the Google Pay window?
Uncaught (in promise) IntegrationError: Element confirming payment is "expressCheckout", but stripe.confirmPayment() was not called within the "confirm" event. Please call stripe.confirmPayment() in the "confirm" event (https://stripe.com/docs/js/elements_object/express_checkout_element_confirm_event).
this is the full error
I just tried your URL and it worked for me I'm afraid
any idea why this is happening on my side?
Is confirmPayment called anywhere else in your code?
nope.. only being called by ExpressCheckoutElement
The error implies otherwise
hmm if is being called at anywhere else in my code, then i think it wont work for u as well