Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

iframe checkout_success.php


Recommended Posts



Two problems:


1) If you open the checkout process in an iframe, you may lose the OSCID


2) iframes have always been vulnerable to iframe injection attacks and are very insecure.






Link to comment
Share on other sites

  • 2 weeks later...

HI - iFrame would do it but if you want to display it in checkout_success then you need to pass the information to that page via checkout_process probably using the payment module or a callback.


e.g. let's say your store sends the customer to PagSeguro where they enter their details, PagSeguro will then send them back to your store along with a link to the payment slip - whether you get them sent back to a callback page or checkout_process you'll need to grab that link - probably it'll come as a $_POST variable. I'd suggest you pop that into a session value e.g. $_SESSION['PagSeguro']


You then need to code up checkout_success.php to look for that session and seize the value - some pseudo code




if($_SESSION['PagSeguro'] exists and holds a value && it's a valid url){

echo'<iframe content = $_SESSION['PagSeguro']'>

tep_unregister ($_SESSION['PagSeguro']);





Now that will display the boleto for printing to the customer in you checkout_success page

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...