#rohan_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1343979365242900540
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
confirmCashappPayment only redirects mobile browsers to your return_url, it doesn’t redirect desktop browsers. You can manually redirect customers using desktop browsers to your return URL after the returned promise resolves.
From: https://docs.stripe.com/payments/cash-app-pay/accept-a-payment?web-or-mobile=web&payment-ui=direct-api#handle-redirect
Hm, okay. If I'm manually handling the QR code, do I just poll in the background?
(for the webhook)
What do you mean by poll
Like, if I'm manually showing the QR code, how do I know when the payment has been made? I was saying that I'm guessing I'd need to poll my server until it receives the payment_intent.succeeded webhook
Ah yeah
Dang, okay. Would it be possible to submit a feature request to have the hosted instructions page redirect back to return_url on success?
After calling confirmCashappPayment, a QR code displays on the webpage. Your customers can scan the QR code using either their mobile device’s camera or the Cash App mobile application and authenticate the payment. A few seconds after customers authenticate the payment successfully, the QR code modal closes automatically and you can fulfill the order.
It should close automatically
Also per above link
For desktop
So if confirming clientside is an option for you I recommend that
Yeah. I'd assume they have a reason for not supporting this on desktop though. Likely a cashapp pay restriction
gotcha, okay. alright, thank you