Confirm order with Paypal not working with iframe
Posted: Fri Feb 08, 2013 4:52 pm
I have Opencart v1.5.5.1. I'm using Opencart in an iframe on my html website. When 'Confirm order' is pressed it doesn't forward to the Paypal website. I've searched for a solution but have only found this:
"PayPal will detect a framed re-direct and block responses as you cannot access any of the PayPal payment system in an iFrame.
An option would be to CNAME the shop. url to the main website, or just migrate the shop onto the correct domain so it works without an iFrame"
I have no idea how to do this. My best guess is that the confirm buttons code is in "catalog/view/theme/default/template/checkout/confirm.tpl" and i THINK this code at the end could be it...but i'm probably wrong.
<div class="payment"><?php echo $payment; ?></div>
<?php } else { ?>
<script type="text/javascript"><!--
location = '<?php echo $redirect; ?>';
//--></script>
<?php } ?>
Can someone please help me? This website's deadline is overdue so i need a fix asap. Thanks!
"PayPal will detect a framed re-direct and block responses as you cannot access any of the PayPal payment system in an iFrame.
An option would be to CNAME the shop. url to the main website, or just migrate the shop onto the correct domain so it works without an iFrame"
I have no idea how to do this. My best guess is that the confirm buttons code is in "catalog/view/theme/default/template/checkout/confirm.tpl" and i THINK this code at the end could be it...but i'm probably wrong.
<div class="payment"><?php echo $payment; ?></div>
<?php } else { ?>
<script type="text/javascript"><!--
location = '<?php echo $redirect; ?>';
//--></script>
<?php } ?>
Can someone please help me? This website's deadline is overdue so i need a fix asap. Thanks!