#manish-payment-cashapp
1 messages · Page 1 of 1 (latest)
Hello! To clarify, the QR code is displayed on your website, someone scans it with their phone, goes through the CashApp payment process, then they get redirected on their phone and nothing happens on your website? It still displays the QR code?
Yeah
Are there any errors or warnings in the console on your website when this happens?
can you try on you mobile to scan this
I don't have the CashApp app.
If you don't have it how have you been testing?
it says in documentation, in sandbox mode we can use the camera to scan the QR code, in live mode we need cash app
Oh, this is in test mode, so this QR code points to a Stripe test page.
Yeah. Do you have a phone available?
Yeah
What happens when you scan this QR code?
it opens the stripe authorize or fail page and then if I authorize the payment it redirects to the return URL on mobile device rather than desktop redirecting back
That sounds like expected behavior to me.
I don't think so... but let me test something, hang on...
Actually, wait, how did you get that URL? Are you using the Payment Element?
nope I am using payment Intent
Yeah, this seems like expected behavior to me then. If you were using the Payment Element you would see the behavior I think you're expecting, but with the direct URL approach you're using you would need to handle the redirect on your end.
You can also use stripe.confirmCashappPayment in Stripe.js too, have you tried that approach?
I think I will try that haven't tried that till now
That should have the behavior you're expecting.
okay
Its still happening on my mobile device its still redirect to the return URL
and on desktop its closing the QR code
Did the QR code appear in a modal?
Yeah
Ah, okay, what happens after the QR code closes?
nothing
What does your stripe.confirmCashappPayment code look like?
I see this error too
That's a rate limit error. What code triggers that?
stripe.confirmCashappPayment(
clientSecret,
{
payment_method: {
type: 'cashapp',
},
return_url: 'http://localhost:3000/thankyou',
},
);
That should work... can you try again and see if you get the same error?
it made 3 calls for the intent, 2 passed, 1 did the 429
this time its again remained on that page modal closed
Does stripe.confirmCashappPayment return a Promise? If so, is it resolving after the modal closes?
Does it resolve after the payment succeeds and the modal goes away? If so you can use that to redirect.
hmm, let me try that