#hendr1x_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/1353720850389405796
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Current code is
const {error: submitError} = await xesm.payment.system['stripe'].cache.elements.submit();
if (submitError) { }
I assume that will work but I have no way to test
Hi, we document how you can handle errors here, https://docs.stripe.com/error-handling and here, https://docs.stripe.com/error-low-level
You can test submission errors by using of the decline cards for instance, https://docs.stripe.com/testing#declined-payments. Are you able to try that?
So I did try that. The payment method gets created without issue.
I assumed that the error only occurs when the payment is confirmed
I am trying to test the payment method submission.
Ah, you can pass it to confirm on the PaymentIntent creation, https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm. If you set that to 'true' it should work.
So that is later in the checkout process....I'm just trying to capture any errors on the payment page (elements).
Can you walk me through your use case please? We document how our inetgartion works here: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment
If you're using Stripe.js any errors like incomplete card details would surface an error.
Let me read through the two error documents you provided.
My use case is as simple as the code I provided
I'm guessing you guys don't have a way for to trigger an error
What error are you trying to trigger? Can you add more context?
I have a report of this page producing errors but I don't have any record of them...unfortuntely I do not have any more information. All I could offer the client was to increase logging which I am trying to do. Very frustrating.
The checkout has worked hundreds of times in the past, this one customer is having issues repeatly
What issue/ error are they seeing exactly? What integration document are they using?
I appreciate your time. I think I am going to give up on this. Have a good day