View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005726 | module PayPal | module PayPal - sub | public | 2014-04-07 13:52 | 2014-09-16 15:22 |
Reporter | Spritje | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.0.3 | ||||
Target Version | 3.2.0 | Fixed in Version | 3.2.0 | ||
Summary | 0005726: PayPal Extension throws error message "The totals of the cart item amounts do not match order amounts" | ||||
Description | If in OXID eFire PayPal extension in shop admin Extension -> Modules -> Settings -> Show shopping cart on PayPal site is enabled and also Master Settings -> Core Settings -> Settings -> Order -> Allow fraction Quantities (e.g. 1.5) is enabled and customer wants to order 0.25 pieces of an article customer will get the error message "The totals of the cart item amounts do not match order amounts." when paying via PayPal Express Checkout. If option Extension -> Modules -> Settings -> Show shopping cart on PayPal site is disabled everything works fine. | ||||
Steps To Reproduce | Paypal log attached | ||||
Additional Information | If Extension -> Modules -> Settings -> Show shopping cart on PayPal site is enabled in PayPal Request the parameter L_PAYMENTREQUEST_0_QTY1' => '0.25' -> Response 'ACK' => 'Failure' If Extension -> Modules -> Settings -> Show shopping cart on PayPal site is disabled in PayPal Request the parametet is set to L_PAYMENTREQUEST_0_QTY0' => '1' -> Response 'ACK' => 'Success' | ||||
Tags | No tags attached. | ||||
Attached Files | paypal_log.txt (5,076 bytes)
======================= Request to PayPal [2014-04-07 12:04:35] ======================= # SESS ID: f37bbd6fc26105f33dedd2ca5758ac03 array ( 'VERSION' => '84.0', 'PWD' => '1392901695', 'USER' => 'support_mer_api1.oxid-esales.com', 'SIGNATURE' => 'A0H-4-qCsbqt9j5SHuY0P3K9xA8yAxR5VrkNKl7ff2M5qhslrCNqjH5t', 'CALLBACKVERSION' => '84.0', 'LOCALECODE' => 'de_DE', 'SOLUTIONTYPE' => 'Mark', 'BRANDNAME' => 'PayPal Testshop', 'CARTBORDERCOLOR' => '2b8da4', 'RETURNURL' => 'http://support.oxid-esales.com/development/eike/index.php?lang=0&sid=f37bbd6fc26105f33dedd2ca5758ac03&rtoken=84d691ac&shp=1&cl=oePayPalExpressCheckoutDispatcher&fnc=getExpressCheckoutDetails', 'CANCELURL' => 'http://support.oxid-esales.com/development/eike/index.php?lang=0&sid=f37bbd6fc26105f33dedd2ca5758ac03&rtoken=84d691ac&shp=1&cl=basket', 'PAYMENTREQUEST_0_PAYMENTACTION' => 'Sale', 'CALLBACK' => 'http://support.oxid-esales.com/development/eike/index.php?lang=0&sid=f37bbd6fc26105f33dedd2ca5758ac03&rtoken=84d691ac&shp=1&cl=oePayPalExpressCheckoutDispatcher&fnc=processCallBack', 'CALLBACKTIMEOUT' => '6', 'NOSHIPPING' => '2', 'PAYMENTREQUEST_0_AMT' => '10.51', 'PAYMENTREQUEST_0_CURRENCYCODE' => 'EUR', 'PAYMENTREQUEST_0_ITEMAMT' => '10.51', 'PAYMENTREQUEST_0_SHIPPINGAMT' => '0.00', 'PAYMENTREQUEST_0_SHIPDISCAMT' => '0.00', 'L_SHIPPINGOPTIONISDEFAULT0' => 'true', 'L_SHIPPINGOPTIONNAME0' => 'Standard', 'L_SHIPPINGOPTIONAMOUNT0' => '0.00', 'PAYMENTREQUEST_0_DESC' => 'Ihre Bestellung bei PayPal Testshop in H�he von 10,51 EUR', 'PAYMENTREQUEST_0_CUSTOM' => 'Ihre Bestellung bei PayPal Testshop in H�he von 10,51 EUR', 'MAXAMT' => '41.51', 'L_PAYMENTREQUEST_0_NAME0' => 'Trapez ION SOL KITE 2011', 'L_PAYMENTREQUEST_0_AMT0' => '16.90', 'L_PAYMENTREQUEST_0_QTY0' => '.25', 'L_PAYMENTREQUEST_0_ITEMURL0' => 'http://support.oxid-esales.com/development/eike/Kiteboarding/Trapeze/Trapez-ION-SOL-KITE-2011.html', 'L_PAYMENTREQUEST_0_NUMBER0' => '1401', 'L_PAYMENTREQUEST_0_NAME1' => 'Transportcontainer THE BARREL', 'L_PAYMENTREQUEST_0_AMT1' => '25.11', 'L_PAYMENTREQUEST_0_QTY1' => '0.25', 'L_PAYMENTREQUEST_0_ITEMURL1' => 'http://support.oxid-esales.com/development/eike/Angebote/Transportcontainer-THE-BARREL-Eike.html', 'L_PAYMENTREQUEST_0_NUMBER1' => '3788', 'METHOD' => 'SetExpressCheckout', ) ======================= Response from PayPal [2014-04-07 12:04:36] ======================= # SESS ID: f37bbd6fc26105f33dedd2ca5758ac03 array ( 'TIMESTAMP' => '2014-04-07T10:04:36Z', 'CORRELATIONID' => '9cf18b258f9ca', 'ACK' => 'Failure', 'VERSION' => '84.0', 'BUILD' => '10463669', 'L_ERRORCODE0' => '10413', 'L_SHORTMESSAGE0' => 'Transaction refused because of an invalid argument. See additional error messages for details.', 'L_LONGMESSAGE0' => 'The totals of the cart item amounts do not match order amounts.', 'L_SEVERITYCODE0' => 'Error', ) ======================= Request to PayPal [2014-04-07 12:04:46] ======================= # SESS ID: f37bbd6fc26105f33dedd2ca5758ac03 array ( 'VERSION' => '84.0', 'PWD' => '1392901695', 'USER' => 'support_mer_api1.oxid-esales.com', 'SIGNATURE' => 'A0H-4-qCsbqt9j5SHuY0P3K9xA8yAxR5VrkNKl7ff2M5qhslrCNqjH5t', 'CALLBACKVERSION' => '84.0', 'LOCALECODE' => 'de_DE', 'SOLUTIONTYPE' => 'Mark', 'BRANDNAME' => 'PayPal Testshop', 'CARTBORDERCOLOR' => '2b8da4', 'RETURNURL' => 'http://support.oxid-esales.com/development/eike/index.php?lang=0&sid=f37bbd6fc26105f33dedd2ca5758ac03&rtoken=84d691ac&shp=1&cl=oePayPalExpressCheckoutDispatcher&fnc=getExpressCheckoutDetails', 'CANCELURL' => 'http://support.oxid-esales.com/development/eike/index.php?lang=0&sid=f37bbd6fc26105f33dedd2ca5758ac03&rtoken=84d691ac&shp=1&cl=basket', 'PAYMENTREQUEST_0_PAYMENTACTION' => 'Sale', 'CALLBACK' => 'http://support.oxid-esales.com/development/eike/index.php?lang=0&sid=f37bbd6fc26105f33dedd2ca5758ac03&rtoken=84d691ac&shp=1&cl=oePayPalExpressCheckoutDispatcher&fnc=processCallBack', 'CALLBACKTIMEOUT' => '6', 'NOSHIPPING' => '2', 'PAYMENTREQUEST_0_AMT' => '10.51', 'PAYMENTREQUEST_0_CURRENCYCODE' => 'EUR', 'PAYMENTREQUEST_0_ITEMAMT' => '10.51', 'PAYMENTREQUEST_0_SHIPPINGAMT' => '0.00', 'PAYMENTREQUEST_0_SHIPDISCAMT' => '0.00', 'L_SHIPPINGOPTIONISDEFAULT0' => 'true', 'L_SHIPPINGOPTIONNAME0' => 'Standard', 'L_SHIPPINGOPTIONAMOUNT0' => '0.00', 'PAYMENTREQUEST_0_DESC' => 'Ihre Bestellung bei PayPal Testshop in H�he von 10,51 EUR', 'PAYMENTREQUEST_0_CUSTOM' => 'Ihre Bestellung bei PayPal Testshop in H�he von 10,51 EUR', 'MAXAMT' => '41.51', 'L_PAYMENTREQUEST_0_NAME0' => 'Gesamtsumme:', 'L_PAYMENTREQUEST_0_AMT0' => '10.51', 'L_PAYMENTREQUEST_0_QTY0' => '1', 'METHOD' => 'SetExpressCheckout', ) ======================= Response from PayPal [2014-04-07 12:04:47] ======================= # SESS ID: f37bbd6fc26105f33dedd2ca5758ac03 array ( 'TOKEN' => 'EC-3T742086BW340924K', 'TIMESTAMP' => '2014-04-07T10:04:47Z', 'CORRELATIONID' => '1e5dc692873cb', 'ACK' => 'Success', 'VERSION' => '84.0', 'BUILD' => '10463669', ) | ||||
|
Maybe that's because PayPal only allows positive integers? https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/#id09BHCI005L7__N50362 |
|
config parameter is evaluated here: https://github.com/OXID-eSales/paypal/blob/v3.0.2/source/modules/oe/oepaypal/models/paypalrequest/oepaypalsetexpresscheckoutrequestbuilder.php#L347 |
|
If there are items with fraction quantities in basket, option for sending basket items will not be shown to the user despite config option and only grand total will be sent. Currently PayPal is not able to handle fraction quantities. |