Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

PAYPAL PRO SANDBOX TESTING Rate Topic   - - - - -

 
  • minitv
  • Newbie
  • Members
  • Join Date: 07-Aug 13
  • 3 posts

Posted 07 August 2013 - 11:45 PM #1

Can someone please help with the following error message I get at check out? "This transaction cannot be processed. Please enter a valid credit card number and type. I have set up my sandbox account, got my username, password and signature, placed them in my cs-cart payment method setting for paypal.

 
  • NairdaCart
  • Senior Member
  • Members
  • Join Date: 18-Jul 11
  • 306 posts

Posted 08 August 2013 - 08:25 AM #2

Are you using the credit card number and type that was created as part of the sandbox account?

 
  • minitv
  • Newbie
  • Members
  • Join Date: 07-Aug 13
  • 3 posts

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.

 
  • ThomH
  • Senior Member
  • Members
  • Join Date: 20-Nov 07
  • 1582 posts

Posted 20 August 2013 - 05:33 AM #4

Good to know, another bug introduced...
Will take in consideration when we will update our paypal multicurrency addons.

WebGraphiq offers a wide range of professionally developed, ready to use CS-Cart add-ons to provide additional functionality and boost your sales. The oldest active CS-Cart add-on development team. -- Since 2006 --


CS-CART ADD-ONS | FREE QUOTE | CS-CART DEVELOPMENT | @webgraphiq