#harshitbhargava
1 messages · Page 1 of 1 (latest)
Hello! Can you share an example PaymentIntent ID?
pi_3NEWJ4Inbsls4Aao245yO5Ms
It seems some internal error from stripe end
At ui end i am using confirmPayment function whenni click on pay in cashApp sometimes i am getting this error and sometimes not
So it is little bit annoying
Hello! I'm taking over and catching up...
So when you call confirmPayment in your code it leads to this error? Does the UI/page change at all?
Yes
No that page become blanks
Yes is for it leads to that error
And no for ui page change at all
So the QR code is never displayed, correct?
Yes sometimes it display and sometimes not
When this error is thrown what's the URL of the page? Is it still your page or is it a Stripe-hosted URL?
Does the URL start with https://payments.stripe.com/cashapp/?
I have to check
In which scenario you are asking when I am getting this error or when it js succeded
When you get the error.
Give me 1 minute
Sorry its my hosted url at that time
But it is not able to redirect to stripe.com/en-gb-us/payment_methods/test_payment?payment_attempt=
What return_url are you setting?
Or, better question, does a particular return_url cause the error?
My hosted url itself and it looks like www.hostedurl.com/confirmPayment
No it is not causing any error
You said it only happens sometimes. Is it random? Or are there specific steps you can take to make it happen every time?
That pay button is trying ti redirect me to stripe hosted url but it was failed due to above error and that error is related to qr something
No it is random
In some system it is not at all working everytime it is throwing error
How often does it happen? Half the time? 1 in 10? 9 in 10? Looking for a ballpark frequency/percentage.
You can assume 7/10
Okay, so more than half the time. That's interesting.
I've been trying to reproduce but it's working for me every time. Can you tell what the invalid URL is?
I am not sure what is invalid url mean and even we dont have that js file in our code
It seems it is coming from stripe end
It is, but I need more information from you to figure out what's going on because I can't reproduce the error on my end. Are you familiar with the debugger in the web dev tools of your browser?
No
What browser are you using to reproduce the error?
Chrome
When i click on back i am getting this error
Okay, in the dev tools can you go to the Sources tab, then in the column on the right expand Breakpoints and check the Pause on uncaught exceptions box, then reproduce the error? That should make the debugger kick into gear when the exception is thrown.
You should then be able to look at the scope and call stack to see what the invalid URL is.
Ok will do that
If you could share a screenshot of the scope and call stack sections when the error is triggered that would be really helpful.
Where i can see scope?
It's the sections right under the checkbox.
The two sections that say "Not paused" in them in the screenshot above.
Domexception i am getting
So a different error?
I will send you pic
In the console do you see the invalid URL error?
Yes
Can you expand a and some of the nested things in there and share a screenshot showing that info?
Sure
That seems unrelated, I think it paused on a different exception. Hit the small play button and see if it pauses again and shows different info.
Also curious if you can get the error to happen in other browsers? Or in an incognito window?
Yes getting this error in different browser and in incognito also
I clicked on that button but didnt pause anywhere
Let me debug again
I got that error in console but nothing i am getting in scope
Hm. Okay, uncheck the Pause on uncaught breakpoints checkbox. Back in the console you should be able to click on the link to the right of the error to be taken to the code that threw the error. If you do that what do you see?
Ah, okay, perfect. Click on the - on the left of that line to add a breakpoint there.
Then trigger the error again.
It should pause and give you the correct scope.
No, you can leave that unchecked.
When you click on the left to add a breakpoint, which should show up as a blue flag, that's enough to get it to pause there when it hits that code.
Give me 1 minute . Now it is redirecting to success page let me reproduce that issue
I need to step away for a few minutes, but I'll be back shortly.
Can you expand e and n?
There?
Yeah, above the error, can you expand out e and n?
Yes
What's under those?
Any specific field you want me to expand
No, those aren't what I was hoping they would be. Give me a few minutes to check on something internally.
Ok sure
That loop is normal; that's the page polling to see if the payment was approved yet or not.
Ok
We're looking at this internally now, will let you know what we find.
When did this start happening?
Yes for sure
Last week i integrate cashapp pay in my application and from that day i am getting this issue
Unfortunately we still can't reproduce on our end. Can you provide a link to where this is happening for you so we can try to reproduce there? Or can you provide a URL to a reduced test case that exhibits the error?
No i cant provide you url because of company policy
Okay, what about a link to a reduced test case somewhere?
How we can create that?
You can put something on a site like https://glitch.com for example.
Or any similar site.
Also, just to confirm, you're using the Payment Element for this, right?
Yes
One other question: are you using any polyfills or overriding built-in globals in your JavaScript or anything like that?
No
Have you hit this issue on desktop, mobile, or both?
Normally, without the error, the page gets a dark overlay and then a modal pops up with the QR code in it. When the error happens, do you get the dark overlay or the modal?
Like in this screenshot without the error, do you get the dark background and the white pop up on top when the error happens?
@lapis ledge Not sure if you're still here or not?
Hi @lapis ledge I've re-opened this thread
ok thanks
for the last message of rubeus, I am not able to get the modal, I am getting communication error instead of QR code
No, It should be redirect when we confirm the payment through authorize page but before that I was getting an error
can you please remove the URL
Sure I've removed it.
This is going to require a bit more investigation. Sorry to redirect you, but can you write in to https://support.stripe.com/contact/email with the information and example PaymentIntent ID, relevant source code. We'll respond via email/ticket after looking into it further.
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ok. I'll put some note there. Can you also provide the relevant code?
I have used only confirmPayment api,
https://stripe.com/docs/js/payment_intents/confirm_payment
Nothing special
Got it, thanks.
Can you please help me to speed up the process, I want to resolve this issue ASAP
If possible add this thread URL in the ticket itself I forgot to add
I've also put the thread URL in the note.
Already escalated it to the relevant team.
Just one question, In this paymentIntentId, we have one field hosted_instructions_url, I think for which we are getting an error Invalid URL, is it possible from confirmPayment function that we can redirect the user to this url?
or only stripe will do that, we dont have to modify our code (confirmPayment)
Thanks
You don't need to open hosted_instructions_url manually, you just need to call stripe.confirmPayment()