#harshitbhargava
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Are you sure this is coming from Stripe?
Could you please share a screenshot?
I will need more context to be able to help.
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
Could you please share the PaymentIntent ID pi_xxx?
This payment went through without errors
The error message you're referring to is not related to Stripe.
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
Could you indentify the place in your code that causes the error?
That means it goes through.
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
No it is giving me error
I don't see anything in this error message that refers to Stripe.
Could you please share the code responsible for this.
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
What return_url are you supplying?
confirmation Page url, which we have created in my code
Maybe it's not correct, can you print it out before sending?
Can you print it out to console?
yes
Please print out the URLs when it fails and share it with me.
It might be that you're missing a protocol: https://...
I am talking about this:
return_url: <Any Return Url>,
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
This doesn't look like a valid URL
Okay, does it work if you visit the URL?
Could you please share the surrounding code as well?
The complete code
The code of the component that calls the Stripe API. I am trying to understand where the error happens
I need to see your code to understand why your code fails.
That is little bit difficult
can you please look into this file
hosted-qr-code-instructions.js, when we will get Invalid URL
How can I look at the file if I don't have it? 😅
I also dont have this file
I don't understand
then this is strange how I am getting this error