Hi,
I was wondering if you could possibly help me. I am currently using Chrono forms with realex and I have followed the forum posts here
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=22205
which is what i am trying to achieve.
My first form collects all the necessary personal information, name age, email etc....
I have OnSubmit Redirect url action and the target url (http://mysite.com/index.php/2nd-form)redirects the user to a second form. Just below that in the Params/Fields map box I have the following code
that adds the amount and the unique order id to the Redirect URL.
Under that I have a Redirect User action that redirects the user. Target url is http://mysite.com/index.php/2nd-form
In the second form i have 8 hidden box actions including Merchant ID, Oder ID etc..
in Events I have a custom code action with the following code;
And under that a redirect user action with the target url set to https://epage.payandshop.com/epage.cgi.
I get the following error when I try to redirect to it;
Please contact the merchant whose goods or services you are purchasing and give the error message below.
I would be very grateful if you could help me with this.
All the best,
C
I was wondering if you could possibly help me. I am currently using Chrono forms with realex and I have followed the forum posts here
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=22205
which is what i am trying to achieve.
My first form collects all the necessary personal information, name age, email etc....
I have OnSubmit Redirect url action and the target url (http://mysite.com/index.php/2nd-form)redirects the user to a second form. Just below that in the Params/Fields map box I have the following code
<?php
$amount = JRequest::getString('20', '', 'get');
$orderid = JRequest::getString('2100188402', '', 'get');
/**
that adds the amount and the unique order id to the Redirect URL.
Under that I have a Redirect User action that redirects the user. Target url is http://mysite.com/index.php/2nd-form
In the second form i have 8 hidden box actions including Merchant ID, Oder ID etc..
in Events I have a custom code action with the following code;
<?php
$amount = JRequest::getString('20', '', 'get');
$orderid = JRequest::getString('2100188402', '', 'get');
$secret = 'mysharedsecrethere';
$merchantid = 'mymerchantidhere';
$timestamp = strftime("%Y%m%d%H%M%S");
mt_srand((double)microtime()*1000000);
$curr = "EUR";
/**
Below is the code for creating the digital signature using the MD5 algorithm provided
by PHP. you can use the SHA1 algorithm alternatively.
*/
$md5hash = md5($timestamp.$merchantid.$orderid.$amount.$curr);
$md5hash = md5($md5hash.$secret);
?>
<input type=hidden name="MERCHANT_ID" value="<?php echo $merchantid; ?>" />
<input type=hidden name="ORDER_ID" value="<?php echo $orderid; ?>" />
<input type=hidden name="CURRENCY" value="<?php echo $curr; ?>" />
<input type=hidden name="AMOUNT" value="<?php echo $amount; ?>" />
<input type=hidden name="TIMESTAMP" value="<?php echo $timestamp; ?>
"And under that a redirect user action with the target url set to https://epage.payandshop.com/epage.cgi.
I get the following error when I try to redirect to it;
Please contact the merchant whose goods or services you are purchasing and give the error message below.
Error 508
Invalid data in MERCHANT_ID field.
I would be very grateful if you could help me with this.
All the best,
C