How is your experience with the OutSystems Community?
14
Views
1
Comments
Solved
What is the best practice to show the external payment gateway?
Question
Application Type
Reactive

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

2026-06-06 05-35-01
ABHIJITH G
Champion
Solution

Hi @IQ78

The 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.

Regards
Abhijith 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.