Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Realex Payment Script


Guest

Recommended Posts

Posted

Hi

New to this forum, I'm looking for some advice on a problem i have with realex payments, everything is up and running apart from the responce url, the guy in realex has come back to me sayin the following:

"I have uploaded the template. Its working fine.

 

I have also performed a test on your response URL. We have the correct URL, however, it appears as though you are trying to redirect to another script from your response page. If you want to redirect to another script, you have to create a form and use javascript (or something

similar) to automatically submit the form. Sample PHP code is below:

 

 

$form .= <<<EOD <form name="redirectform"

action="http://www.yourserver.com/test.php" method="POST">

 

<input type="hidden" name="orderid" value="$orderid"> <input type="hidden" name="custnumber" value="$custnumber"> <input type="submit" value="Submit"> EOD;

 

echo $form;

 

echo "<script>"; echo "document.completeprocess.submit()"; echo "</script>";

"

 

does anyone know where to put this script and has anyone had an issue like this. the responce url i gave them was

.../catalog/checkout_success.php. the error I get when i process a payment is: "Your transaction has been successful but there was a problem connecting back to the merchant's web site. Please contact the merchant and advise them that you received this error message. Thank you. "

 

 

Maybe i have giving them the wrong url?? any help??

Posted
Hi

New to this forum, I'm looking for some advice on a problem i have with realex payments, everything is up and running apart from the responce url, the guy in realex has come back to me sayin the following:

"I have uploaded the template. Its working fine.

 

I have also performed a test on your response URL. We have the correct URL, however, it appears as though you are trying to redirect to another script from your response page. If you want to redirect to another script, you have to create a form and use javascript (or something

similar) to automatically submit the form. Sample PHP code is below:

$form .= <<<EOD <form name="redirectform"

action="http://www.yourserver.com/test.php" method="POST">

 

<input type="hidden" name="orderid" value="$orderid"> <input type="hidden" name="custnumber" value="$custnumber"> <input type="submit" value="Submit"> EOD;

 

echo $form;

 

echo "<script>"; echo "document.completeprocess.submit()"; echo "</script>";

"

 

does anyone know where to put this script and has anyone had an issue like this. the responce url i gave them was

.../catalog/checkout_success.php. the error I get when i process a payment is: "Your transaction has been successful but there was a problem connecting back to the merchant's web site. Please contact the merchant and advise them that you received this error message. Thank you. "

Maybe i have giving them the wrong url?? any help??

 

 

Please can anyone help

Archived

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

×
×
  • Create New...