Paypal Formatting Error - sandbox

01.08.2013 13:27
#1
jciconsult
Joomshopping forum user no avatar
Name: Paul Jacobson
03.05.2011
Posts: 16
Quote
Paypal Functional Error - sandbox

I am trying to set up the live shop. Everything is fine but a test through the paypal sandbox. I am using the same settings that I successfully used in the my old church site using joomshopping 3.1.1. They do not work in the new version. I have included the settings from the old shop in a zip.
The issue is that the new shop causes the paypal sandbox to trip out with a message about incorrectly formatted item amount. What is going on?
Paypal Functional Error - sandbox
paypal.zip


Joomla: 3.1.4
JoomShopping: 4.3.0.1
PHP: 5.3.27
Website Url: http://www.metunited.org

Letzte Änderung: 01.08.2013 17:21
 
02.08.2013 07:52
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16513
Quote
Aw: Paypal Formatting Error - sandbox

Try chnage file

components\com_jshopping\payments\pm_paypal\pm_paypal.php


chnage function fixOrderTotal

to

function fixOrderTotal($order){
$total = $order->order_total;
if ($order->currency_code_iso=='HUF'){
$total = round($total);
}else{
$total = number_format($total, 2, '.', '');
}
return $total;
}


Letzte Änderung: 05.08.2013 16:32
 
Copyrights MAXXmarketing GmbH. All Rights Reserved