Hi,
All is working fine now - minor technical hitch at the start!
I also updated your before_process.php to display a friendly error message if the card processing failed from Realex. You can use it on your sites if you like. Let me know what you think.
thanks.
<html>
<body>
<?php
$result = $_POST['RESULT'];
if ($result == "00") {
include('includes/application_top.php');
//$orderid = $_POST['ORDER_ID'];
$process_button_string =
zen_draw_hidden_field('MERCHANT_ID', $_POST['MODULE_PAYMENT_REALEX_ID']) .
zen_draw_hidden_field('ORDER_ID', $_POST['ORDER_ID']) .
zen_draw_hidden_field('TIMESTAMP', $_POST['TIMESTAMP']) .
zen_draw_hidden_field('AUTHCODE', $_POST['AUTHCODE']) .
zen_draw_hidden_field('MESSAGE', $_POST['MESSAGE']) .
zen_draw_hidden_field('RESULT', $_POST['RESULT']) .
zen_draw_hidden_field('PASREF', $_POST['PASREF']) .
zen_draw_hidden_field('MD5HASH', $_POST['MD5HASH']);
echo "<form action='" . zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL') . "' method='post' name='completeprocess'>";
echo $process_button_string;
echo "</form>";
?>
Your order payment was processed successfully.
<script>
document.completeprocess.submit();
</script>
<?php
} else {
?>
<p>
<strong>We encountered a problem processing your order payment.</strong> <i> <?php echo $_POST['MESSAGE'] ?> </i><br />
To try again please <a href="http://www.equestriangifts.ie/index.php?main_page=shopping_cart"><strong>click here</strong></a><br />
If you would like to discuss your order contact us at <a href="mailto:[email protected]">[email protected]</a>
or call us on +353 (0)51 644388
</p>
<?php
}
?>
</body>
</html>


Reply With Quote


