hi there,
i am wondering, i have a page and the call a payment gateway and the payment gateway return a payment URL. My question is what is the best practice to show the external payment URL on my Outsystems page? This below is the demo from the payment gateway:
Is it using iframe, popup, or else?
regards and thanks
Hi @IQ78The recommended approach in OutSystems is to redirect the user to the payment gateway URL rather than embedding it in an iframe. Most payment providers have security restrictions (such as CSP and X-Frame-Options) and additional authentication steps (3D Secure, OTP, etc.) that may not work reliably inside an iframe.
Once the payment URL is received from the gateway, you can use RedirectToURL or ExternalURL to navigate the user to the payment page. After the transaction is completed, the gateway can redirect the user back to a configured return URL in your OutSystems application. Additionally, it's a good practice to implement and validate the gateway's server-side callback/webhook to confirm the actual payment status instead of relying solely on the browser redirect.RegardsAbhijith