#harshitbhargava

1 messages · Page 1 of 1 (latest)

glass rockBOT
exotic jetty
#

Hello! Can you share an example PaymentIntent ID?

lapis ledge
#

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

forest crystal
#

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?

lapis ledge
#

Yes

#

No that page become blanks

#

Yes is for it leads to that error

#

And no for ui page change at all

forest crystal
#

So the QR code is never displayed, correct?

lapis ledge
#

Yes sometimes it display and sometimes not

forest crystal
#

When this error is thrown what's the URL of the page? Is it still your page or is it a Stripe-hosted URL?

lapis ledge
#

Its stripe hosted url

#

To authorize test payment

forest crystal
#

Does the URL start with https://payments.stripe.com/cashapp/?

lapis ledge
#

I have to check

#

In which scenario you are asking when I am getting this error or when it js succeded

forest crystal
#

When you get the error.

lapis ledge
#

Give me 1 minute

#

Sorry its my hosted url at that time

forest crystal
#

What return_url are you setting?

#

Or, better question, does a particular return_url cause the error?

lapis ledge
#

No it is not causing any error

forest crystal
#

You said it only happens sometimes. Is it random? Or are there specific steps you can take to make it happen every time?

lapis ledge
#

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

forest crystal
#

How often does it happen? Half the time? 1 in 10? 9 in 10? Looking for a ballpark frequency/percentage.

lapis ledge
#

You can assume 7/10

forest crystal
#

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?

lapis ledge
#

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

forest crystal
#

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?

lapis ledge
#

No

forest crystal
#

What browser are you using to reproduce the error?

lapis ledge
#

Chrome

glass rockBOT
lapis ledge
#

When i click on back i am getting this error

forest crystal
#

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.

lapis ledge
#

Ok will do that

forest crystal
#

If you could share a screenshot of the scope and call stack sections when the error is triggered that would be really helpful.

lapis ledge
#

Where i can see scope?

forest crystal
#

It's the sections right under the checkbox.

#

The two sections that say "Not paused" in them in the screenshot above.

lapis ledge
#

Domexception i am getting

forest crystal
#

So a different error?

lapis ledge
#

I will send you pic

forest crystal
#

In the console do you see the invalid URL error?

lapis ledge
#

Yes

forest crystal
#

Can you expand a and some of the nested things in there and share a screenshot showing that info?

lapis ledge
#

Sure

forest crystal
#

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?

lapis ledge
#

Yes getting this error in different browser and in incognito also

lapis ledge
#

Let me debug again

#

I got that error in console but nothing i am getting in scope

forest crystal
#

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.

lapis ledge
#

I have to check the box again “pause on uncaught exceptions”

#

Or run it notmally

forest crystal
#

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.

lapis ledge
#

Give me 1 minute . Now it is redirecting to success page let me reproduce that issue

forest crystal
#

I need to step away for a few minutes, but I'll be back shortly.

lapis ledge
#

Ok

#

Now where i have to go

forest crystal
#

Can you expand e and n?

lapis ledge
#

There?

forest crystal
#

Yeah, above the error, can you expand out e and n?

lapis ledge
#

Yes

forest crystal
#

What's under those?

lapis ledge
#

Any specific field you want me to expand

forest crystal
#

No, those aren't what I was hoping they would be. Give me a few minutes to check on something internally.

lapis ledge
#

Ok sure

forest crystal
#

That loop is normal; that's the page polling to see if the payment was approved yet or not.

glass rockBOT
lapis ledge
#

Ok

forest crystal
#

We're looking at this internally now, will let you know what we find.

#

When did this start happening?

lapis ledge
#

Yes for sure

#

Last week i integrate cashapp pay in my application and from that day i am getting this issue

forest crystal
#

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?

lapis ledge
#

No i cant provide you url because of company policy

forest crystal
#

Okay, what about a link to a reduced test case somewhere?

lapis ledge
#

How we can create that?

forest crystal
#

Or any similar site.

#

Also, just to confirm, you're using the Payment Element for this, right?

lapis ledge
#

Yes

forest crystal
#

One other question: are you using any polyfills or overriding built-in globals in your JavaScript or anything like that?

lapis ledge
#

No

forest crystal
#

Have you hit this issue on desktop, mobile, or both?

lapis ledge
#

Both mobile and desktop

#

Getting same ussue

forest crystal
#

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?

glass oxide
#

Hi @lapis ledge I've re-opened this thread

lapis ledge
#

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

glass oxide
#

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.

lapis ledge
#

sure

#

@glass oxide I have raised the ticket

glass oxide
#

Ok. I'll put some note there. Can you also provide the relevant code?

lapis ledge
glass oxide
#

Got it, thanks.

lapis ledge
#

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

glass oxide
#

I've also put the thread URL in the note.

#

Already escalated it to the relevant team.

lapis ledge
#

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)

lapis ledge
glass oxide
#

You don't need to open hosted_instructions_url manually, you just need to call stripe.confirmPayment()