#harshitbhargava

1 messages · Page 1 of 1 (latest)

royal yachtBOT
kind glacier
#

Hi! Let me help you with this.

#

Are you sure this is coming from Stripe?
Could you please share a screenshot?

sour sparrow
#

yes

#

sometimes it is coming or sometimes not

kind glacier
#

I will need more context to be able to help.

sour sparrow
#

I have enabled cash app in my stripe account and I am using paymentIntent and in payment intent I am using confirmPayment to confirm the payment, so when I click on pay in cash app it is giving me above error in console

#

screenshot for reference

kind glacier
#

Could you please share the PaymentIntent ID pi_xxx?

sour sparrow
#

pi_3NEWJ4Inbsls4Aao245yO5Ms

#

Deleting above pic

kind glacier
#

This payment went through without errors

#

The error message you're referring to is not related to Stripe.

sour sparrow
#

but in console I am able to see error, and I am not able to proceed further because the stripe call is in lopp

#

stripe is redirecting me to Test authorize page

kind glacier
kind glacier
sour sparrow
#

It is causing when I am confirming the payment through confirmPayment function

#

and then some stripe internal api runs and then that causing the issue

sour sparrow
kind glacier
#

I don't see anything in this error message that refers to Stripe.
Could you please share the code responsible for this.

sour sparrow
#

How can i send you stripe code?

#

await stripe.confirmPayment({
elements,
confirmParams: {
return_url: <Any Return Url>,
},
});

#

this is the only code which I have written

#

to confirm cash App

kind glacier
#

What return_url are you supplying?

sour sparrow
#

confirmation Page url, which we have created in my code

kind glacier
#

Maybe it's not correct, can you print it out before sending?

sour sparrow
#

Sometime it works and sometimes not

kind glacier
#

Can you print it out to console?

sour sparrow
#

yes

kind glacier
#

Please print out the URLs when it fails and share it with me.

#

It might be that you're missing a protocol: https://...

sour sparrow
#

While we are confirming cashApp we have to sent any URL?

#

for qr code?

kind glacier
#

I am talking about this:

        return_url: <Any Return Url>,
sour sparrow
#

ok

#

this return_url is something when payment is succeded it is redirecting me to my confirmation page which I ahve build in my project

#

and URL in console is:
https://www.******.com/confirmPayment

kind glacier
#

This doesn't look like a valid URL

sour sparrow
#

I cant share the URL after www.

#

That is something confidential

kind glacier
#

Okay, does it work if you visit the URL?

kind glacier
sour sparrow
#

surrounding code means?

kind glacier
#

The complete code

#

The code of the component that calls the Stripe API. I am trying to understand where the error happens

sour sparrow
#

you can refer this I am referring this only

kind glacier
#

I need to see your code to understand why your code fails.

sour sparrow
#

That is little bit difficult
can you please look into this file
hosted-qr-code-instructions.js, when we will get Invalid URL

kind glacier
#

How can I look at the file if I don't have it? 😅

sour sparrow
#

I also dont have this file

kind glacier
#

I don't understand

sour sparrow
#

then this is strange how I am getting this error

kind glacier
#

Okay. Could you please record the screen with the payment flow and also the console. This way I will be able to see when the error happens.

#

Are you with me?