View Issue Details

IDProjectCategoryView StatusLast Update
0005726module PayPalmodule PayPal - subpublic2014-09-16 15:22
ReporterSpritje Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.3 
Target Version3.2.0Fixed in Version3.2.0 
Summary0005726: PayPal Extension throws error message "The totals of the cart item amounts do not match order amounts"
DescriptionIf 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 ReproducePaypal log attached
Additional InformationIf 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'
TagsNo 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',
)

paypal_log.txt (5,076 bytes)   

Relationships

has duplicate 0005770 resolvedsvetlana Paypal Error 

Activities

martinwegele

2014-04-07 17:43

reporter   ~0009817

Last edited: 2014-04-07 17:44

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

martinwegele

2014-04-07 18:04

reporter   ~0009818

config parameter is evaluated here: https://github.com/OXID-eSales/paypal/blob/v3.0.2/source/modules/oe/oepaypal/models/paypalrequest/oepaypalsetexpresscheckoutrequestbuilder.php#L347

aurimas.gladutis

2014-09-16 15:22

reporter   ~0010161

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.