Iframe and SagePay
I'm using SagePay's VSP server solution with eCart5 and just need to clarify setting up the iframe on our website so it appears the customer doesn't leave the original site. Note: When it's all working properly we'll be copying the files to a secure folder with a SSL cert and moving from "test" to "live", meanwhile:
SagePay support have helped identify where to put the code required as Profile=LOW.
It's on the page: Protx_VSPServer_PHP.php
The code to be added under "Currency" on line 78 is:
$postVals .= "&Profile=" . "LOW";
The iFrame should then be in the page checkout_notify.php and look like this:
<iframe src ="NextURL" width="770" height="550">
<p>Msg displayed if iFrame not supported</p>
</iframe>sit on the page:
but it's not working as some code is causing it to go to a failure page BUT SagePay are seeing a successful transaction.
So the question is what do I need to change on the checkout_notify.php or Protx_VSPServer_PHP.php that allows the iframe to be seen as the NextURL.
Lastly, how do I change the email notification to be sent after payment is confirmed?