Square Checkout API - Using create payment link as a pop-up that closes on payment succes

Hi, we’re using Square’s checkout API to generate payment links that users can use for payment processing.

Our ideal flow is to have a native React app payment button that opens this up as a pop-up, and on payment success, having the user close the pop-up and having our original app page also display success. This is unlike the standard flow where instead of a pop-up it redirects to the square payments page, and allows users to redirect to your native app URL on success.

I’m wondering if anyone has been able to achieve such a flow? If so, how would you recommend doing so?

Hey @leeren! :wave: The Checkout API’s payment links should be loadable via an iframe. However, some payment methods (e.g. Apple Pay) are unavailable when loaded this way.