Realex wont return to website after payment
Hi all
I have spent the last 2 weeks trying to get the Realex payment module to work via redirect method. I have got to the stage where you put your card details in on the secure Realex site, hit "Pay" which turns to "Processing" but then you get the error message "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."
Now the money is taken from the card account but no order is registered, nor any emails sent.
Realex sent the following error log to me:(mainrealexaccount=the main acc with realex, subrealexaccount= the sub account for this website
04.07.2011 12:13:15 mainrealexaccount $VAR1 = bless( {
''_protocol'' => ''HTTP/1.1'',
''_content'' => '''',
''_rc'' => ''302'',
''_headers'' => bless( {
''connection'' => ''close'',
''client-response-num'' => 1,
''location'' => ''http://www.mystore.co.uk/index.php?main_page=time_out'',
''date'' => ''Mon, 04 Jul 2011 11:13:15 GMT'',
''client-peer'' => ''109.74.245.4:80'',
''content-length'' => ''0'',
''client-date'' => ''Mon, 04 Jul 2011 11:13:15 GMT'',
''content-type'' => ''text/html; charset=iso-8859-1'',
''server'' => ''Apache''
}, ''HTTP::Headers'' ),
''_msg'' => ''Moved Temporarily'',
''_request'' => bless( {
''_content'' => ''MERCHANT_ID=mainrealexaccount&ACCOUNT=subrealexaccount&ORDER_ID=20110704121233-638&AMOUNT=49&TIMESTAMP=20110704121233&MD5HASH=240d1b2a91c2ab82052cd0198732874e& RESULT=00&AUTHCODE=610241&MESSAGE=AUTH+CODE%3A610241&PASREF=130977799411848&AVSP OSTCODERESULT=U&AVSADDRESSRESULT=U&CVNRESULT=M&BATCHID=629280&TSS=0&osCsid=822c7 ed449d0293a5b09d5803b83e62f&COMMENT=Richard+McClung&pas_uuid=ac8f8e866cdd4d1a9e9 4ada6ff1b5767'',
''_uri'' => bless( do{\(my $o = ''http://www.mystore.co.uk/index.php?main_page=checkout_success'')}, ''URI::http'' ),
''_headers'' => bless( {
''user-agent'' => ''epage.cgi, getMerchantContent libwww-perl/5.805'',
''content-type'' => ''application/x-www-form-urlencoded'',
04.07.2011 12:13:15 mainrealexaccount Error connecting to client site:Moved Temporarily
04.07.2011 12:13:15 mainrealexaccount Exiting...
The response page has been set to http://www.mystore.co.uk/index.php?m...eckout_process as per another thread where DrByte says “checkout_process IS the correct URL to return to, since that's what causes the order to be saved and emails sent, before redirecting the visitor to the checkout_success screen to indicate that all the saving and emailing has completed.”
ZenCart 1.3.9h with a template added to the templates folder.
I renamed all the htaccess files to htaccessbak temporarily but no difference.
Any ideas??
Re: Realex RealDirect Payment Module.
Hi Cian (or anyone!)
Did you ever find out what the problem was cos I'm getting it too!
if I put through a transaction with the test Visa number, I get a message:
"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. "
Using 1.3.9h see my own post http://www.zen-cart.com/forum/showthread.php?t=182676
Re: Realex wont return to website after payment
For anyone else having a similar problem with the Realex redirect payment module the response URL should be:
http://www.mystore.co.uk/before_process.php
This is what works for us.
Dont forget that if you installed to a folder you should include the folder name in the address eg http://www.mystore.co.uk/myfolder/before_process.php
Now just to get rid of the non-secure page warning when you are returning to our website and all will be well with the world! :clap:
Re: Realex RealDirect Payment Module.
Re: Creating a custom payment page for Realex
Hi
First of all thanks for the module, works fine in testing, am yet to go live but fingers crossed in the next couple of days!
In the meantime I would like to create a custom payment page which mimics the zencart style so although being redirected to a different site (realex) for the payment it doesn't look like the site has taken you to a dodgy looking white space with 'Enter your details here' box!
Now usually I'm pretty good at figuring this sort of thing out but appear to have a mental block on this one and wondered if anyone could lend a hand in pointing me in the right direction.
Realex have sent me there guidlines but as usual the tech terms have me all of a baffle!
The website in question is w w w . a s - i r e l a n d . c o m.
Many thanks
Derek:smile:
Re: Realex RealDirect Payment Module.
Hi,
Just to re-cap I got the above sorted, made a template file for them and in the meantime taught myself a little HTML stuff so happy days.
Since installing the module it has worked well up until a few days ago when all of a sudden I am unable to view the payment boxes (realex payment template) in firefox.
This only happens in firefox and doesn't happen to everyone seems to be related to the newer versions of firefox.
Basically I am getting the error 505 cannot use this service from the URL specified (or something to that effect).
The URL that Realex have is the saem as the one being sent but somehow it seems as if Firefox is blocking or not sending the URL, if this is possible?
Any help would be appreciated as I have spoken to Realex numerous times to no avail..
Cheers
Re: Realex RealDirect Payment Module.
looking around for a while for the solution for this, cannt seam to find one?
the payment module works grand, but it just displays a blank page when ever an error is made like forgetting to select card type for example, a blank page with this a url like this:
the error message has been defined in includes/languages/english/modules/payment/realex_remote.php as
Quote:
define('MODULE_PAYMENT_REALEX_REMOTE_ERROR_CARD_TYPE', '<p class="ErrorInfo">You must select the type of credit/debit card you are using.</p>');
and where is should be used is in includes/modules/payment/realex_remote.php
Quote:
} else {
$error_message = MODULE_PAYMENT_REALEX_REMOTE_ERROR_INVALID_MESSAGE;
no idea why its not showing up with an error page or message
running on v1.3.9h. Any clues, fixes or pointers????
Re: Realex RealDirect Payment Module.
Hi All
I too am just setting up a site or two with the Realex module.
The new version 1.02 required me to hard code the account ID, shared secret and account name into the realex.php file as the module would not work if I did this in the interface.
SO. My problem is like a lot of others.
I've got the credit card test page OK and this works fine (I'll worry later about making it look better) but I get the dreaded message:-
[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. ]
In the readme.txt file Andrew Morre says: [You will need to supply Realex with the "Callback URL". This will be the URL of your ZenCart page
and the before_process.php file. i.e. If your store is located at "http://www.mywebsite.com/store"
then your callback URL will be "http://www.mywebsite.com/store/before_process.php"]
I understand what he means etc. but does he mean that this page has to be advised to Realex verbally or by email as there is nothing on the payment app/module to add this in.....
Can anyone advise please.
Thanks
Steve B
Re: Realex RealDirect Payment Module.
Please note that Nis Jørgensen has taken over the support of this mod.
Re: Realex RealDirect Payment Module.
Interestingly Nis has not responded to this thread.
I've waited a few days to see if he would, but no luck!
I have spoken with Realex, they have put the Callback URL into our test account and NOW what we get is an error stating:-
[QUOTE]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. [QUOTE]
So I spoke to Realex again and from the errors they get their end they can see that the Callback page (http://www.flsuk.co.uk/flsstore/before_process.php) is carrying out a re-direct, so they say, which is not allowed in their scripts.
If I enter the http://www.flsuk.co.uk/flsstore/before_process.php url direct into a web browser I get this following message in the URL line:
http://flsuk.co.uk/flsstore/index.ph..._error=realex& error=Hashes%20don%27t%20match%20-%20response%20not%20authenticated!
SO I switched of the requirement to have the user logged in to buy (Option 2 in the customer details section in Zen) and the re-direct works OK.
Then after this I get a white page which shows this:-
SSL') . "' method='post' name='completeprocess'>"; echo $process_button_string; echo ""; ?>
Then the re-direct works OK.
However this line above:-
SSL') . "' method='post' name='completeprocess'>"; echo $process_button_string; echo ""; ?>
Look rubbish on the screen.
Does any one know how I can get rid of this or hide it?
I would also like to switch back on the requirement to login before using the store but then the Realex payment does not work. Does anyone know how this can be achieved??
Cheers
Steve B