Posted 08 August 2013 - 05:33 PM
#3
NairdaCart thanks for the reply, I am using the latest version of CS-Cart (Ver. 4). It turns out the problem was caused by a bug in the current CS-Cart version. Its been fixed on our server by doing the following. (1) removed the following part of code:
// Remove unallowed chars from cc number
if (!empty($cart['payment_info']['card_number'])) {
$cart['payment_info']['card_number'] = str_replace(array(' ', '-'), '', $cart['payment_info']['card_number']);
}
below this one:
// Save payment information
if (isset($cart['payment_info'])) {
and added the following part of code:
// Remove unallowed chars from cc number
if (!empty($cart['payment_info']['card_number'])) {
$cart['payment_info']['card_number'] = str_replace(array(' ', '-'), '', $cart['payment_info']['card_number']);
}
below this one:
$cart['parent_order_id'] = $parent_order_id;
in the fn.cart.php file located in the app/functions directory of CS-Cart installation.