Hi,
I’m using cardsave as the payment gateway and we’ve been having some errors, I spoke to cardsave support and they recommended contacting you.
To start the only code I have changed is the follow from:
$val = urlencode(stripslashes(str_replace("\n", "\r\n", $val)));
to this:
if ($key != ('TransactionDateTime' || 'ServerResultURL')) {
$val = urlencode(stripslashes(str_replace("\n", "\r\n", $val)));
} else {
$val = stripslashes(str_replace("\n", "\r\n", $val));
};
starting on line 152 in Cartthrob_cardsave_server.php
the reason for the change was that before the change I was getting the following error:
Passed variable TransactionDateTime [2012-06-08+09:14:51++01:00] is type invalid
Passed variable ServerResultURL [http://preview.logodesign.co.uk/carvier.local/themes/third_party/cartthrob/lib/extload.php/cardsave_server/result] is type invalid
With my change I don’t get this error anymore, and I can continue to go through without any trouble, however once the payment has been verified it doesn’t redirect and 20 or so minutes later I get the following email:
*** PLEASE READ THIS EMAIL *CAREFULLY* AND *COMPLETELY* - IT CONTAINS IMPORTANT INFORMATION FOR BOTH THE MERCHANT AND THE DEVELOPER ***
Hello,
You are receiving this email as an error occurred whilst processing a payment using our hosted payment form solution. We were unable to successfully deliver the transaction result to your system. This could have been caused by a network problem (e.g. a connection timeout), or an error occurring on your ServerResultURL page. Please see the end of this email for more details about this error.
As this error happened after the transaction was processed, we suppressed it from the customer, and displayed the transaction result to them on our system.
Here is the result of this transaction:
StatusCode: 0
Message: AuthCode: 771220
CrossReference: 120608074354455502198932
OrderID: 110
Amount : 250.00 GBPWe recommend that you log into the MMS (https://mms.cardsaveonlinepayments.com) and verify the result against our record of the transaction in the transaction history page.
Thank You,
CardSave———————————————————————————-
Additional detailed information relating to this error:Response from ServerResultURL:
——RECEIVED RESPONSE BEGIN——
StatusCode=30&Message=AuthCode: 771220
——RECEIVED RESPONSE END——
Any help is appreciated!
Thanks in advance,
Alex
