#manish-payment-cashapp

1 messages · Page 1 of 1 (latest)

storm mangoBOT
tired blade
#

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?

cosmic veldt
#

Yeah

tired blade
#

Are there any errors or warnings in the console on your website when this happens?

cosmic veldt
#

can you try on you mobile to scan this

tired blade
#

I don't have the CashApp app.

cosmic veldt
#

it require mobile camera to scan and approve

#

even I don't have cash app

tired blade
#

If you don't have it how have you been testing?

cosmic veldt
#

it says in documentation, in sandbox mode we can use the camera to scan the QR code, in live mode we need cash app

tired blade
#

Oh, this is in test mode, so this QR code points to a Stripe test page.

#

Yeah. Do you have a phone available?

cosmic veldt
#

Yeah

tired blade
#

What happens when you scan this QR code?

cosmic veldt
#

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

tired blade
#

That sounds like expected behavior to me.

cosmic veldt
#

ok

#

am I missing something?

tired blade
#

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?

cosmic veldt
#

nope I am using payment Intent

tired blade
#

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?

cosmic veldt
#

I think I will try that haven't tried that till now

tired blade
#

That should have the behavior you're expecting.

cosmic veldt
#

okay

#

Its still happening on my mobile device its still redirect to the return URL

#

and on desktop its closing the QR code

tired blade
#

Did the QR code appear in a modal?

cosmic veldt
#

Yeah

tired blade
#

Ah, okay, what happens after the QR code closes?

cosmic veldt
#

nothing

tired blade
#

What does your stripe.confirmCashappPayment code look like?

cosmic veldt
#

I see this error too

tired blade
#

That's a rate limit error. What code triggers that?

cosmic veldt
#
stripe.confirmCashappPayment(
    clientSecret,
    {
      payment_method: {
        type: 'cashapp',
      },
      return_url: 'http://localhost:3000/thankyou',
    },
  );
tired blade
#

That should work... can you try again and see if you get the same error?

cosmic veldt
#

it made 3 calls for the intent, 2 passed, 1 did the 429
this time its again remained on that page modal closed

tired blade
#

Does stripe.confirmCashappPayment return a Promise? If so, is it resolving after the modal closes?

cosmic veldt
#

let me check

#

yeah there is a promise

tired blade
#

Does it resolve after the payment succeeds and the modal goes away? If so you can use that to redirect.

cosmic veldt
#

hmm, let me try that

storm mangoBOT