View Single Post
  #8  
Old 12-08-2014, 05:24 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Huge payment bugs in 5.1.9

As a quick fix, you can apply the following solution to your store.
Edit the classes/XLite/Module/CDev/Paypal/Model/Payment/Processor/PaypalWPS.php file and add this line:

PHP Code:
$orderNumber $this->getSetting('prefix') . $order->getOrderNumber(); 

after this one:

PHP Code:
$orderTotal $currency->roundValue($order->getTotal()); 

Then, replace this line:
PHP Code:
'invoice'       => $orderTotal

with the next one around line number 409:
PHP Code:
'invoice'       => $orderNumber

After that re-deploy the store and the problem will be fixed.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote