Forums / Bug Reports / [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

[Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

Locked

Started by xcooling on 3 Aug 2010, 11:16 PM · Views: 13,847

Results 1 to 20 of 33
This thread is locked. New replies are disabled.
3 Aug 2010, 11:16 PM
#1
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

[Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

1.3.9e
Payments enabled: paypal express
Order Total enabled: ot_shipping, ot_subtotal, ot_total

Response:
Array
(
[TIMESTAMP] => 2010-08-03T23:04:33Z
[CORRELATIONID] => 7b488010d7634
[ACK] => FailureWithWarning
[VERSION] => 60.0
[BUILD] => 1421734
[L_ERRORCODE0] => 10413
[L_ERRORCODE1] => 10417
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE1] => Transaction cannot complete.
[L_LONGMESSAGE0] => The totals of the cart item amounts do not match order amounts.
[L_LONGMESSAGE1] => The transaction cannot complete successfully. Instruct the customer to use an alternative payment method.
[L_SEVERITYCODE0] => Warning
[L_SEVERITYCODE1] => Error
[CURL_ERRORS] =>
)

DoExpressCheckoutPayment, Elapsed: 3053ms -- FailureWithWarning

[ updates | coding | maintenance | bug fixes | dedicated servers ]

3 Aug 2010, 11:18 PM
#2
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

Paypal_CURL_EC-3LF81779E4632524W_MDDw.log

2010-08-03 06:04:33

(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 45
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(tm) - PayPal/NVP
[4] => X-VPS-VIT-Integration-Version: 1.3.9e
)

Request Parameters: {DoExpressCheckoutPayment}
Array
(
[AMT] => 189.42
[ITEMAMT] => 154.02
[SHIPPINGAMT] => 35.40
[L_NUMBER0] =>
[L_NAME0] => BMW 3 Button Remote Key Blank HU58 for 5, 6 7 Z3 Series
[L_AMT0] => 2.02
[L_QTY0] => 1
[L_NUMBER1] =>
[L_NAME1] => BMW 3 Button Remote Key Blank HU92 for newer 3, 5, 6, X3, X5, Z4
[L_AMT1] => 2.02
[L_QTY1] => 1
[L_NUMBER2] =>
[L_NAME2] => Audi 3 Button Remote Shell with 2 Battery Space for old Models
[L_AMT2] => 3.17
[L_QTY2] => 1
[L_NUMBER3] =>
[L_NAME3] => Seat Remote Key Head without 48 Transponder
[L_AMT3] => 2.90
[L_QTY3] => 1
[L_NUMBER4] =>
[L_NAME4] => Renault New Kangoo 2 Button Remote Shell NE73
[L_AMT4] => 3.08
[L_QTY4] => 1
[L_NUMBER5] =>
[L_NAME5] => Peugeot 2 Button Remote Key Shell with SX9 Blade
[L_AMT5] => 2.55
[L_QTY5] => 1
[L_NUMBER6] =>
[L_NAME6] => Mitsubishi 2 Button Remote Shell for Lancer/Outlander/Eclipse...
[L_AMT6] => 1.94
[L_QTY6] => 1
[L_NUMBER7] =>
[L_NAME7] => Renault Kangoo Single Button Remote Key Shell
[L_AMT7] => 2.55
[L_QTY7] => 1
[L_NUMBER8] =>
[L_NAME8] => Remodeling Car Flip Key Shell_Hyundai Elantra 2 Button
[L_AMT8] => 4.50
[L_QTY8] => 1
[L_NUMBER9] =>
[L_NAME9] => Rubber Button for Chrysler Dodge Jeep 2 Button Remote Key
[L_AMT9] => 1.00
[L_QTY9] => 1
[L_NUMBER10] =>
[L_NAME10] => VW HU66 Flip Key Head (Round Back)
[L_AMT10] => 2.90
[L_QTY10] => 1
[L_NUMBER11] =>
[L_NAME11] => VW 3 Button Remote Shell DJ Type
[L_AMT11] => 3.08
[L_QTY11] => 1
[L_NUMBER12] =>
[L_NAME12] => Hyundai Elantra 2 Button Remote Shell with Rubber Button
[L_AMT12] => 1.58
[L_QTY12] => 1
[L_NUMBER13] =>
[L_NAME13] => Citroen Transponder Key Blank (Original Style)
[L_AMT13] => 1.50
[L_QTY13] => 1
[L_NUMBER14] =>
[L_NAME14] => Rubber Button for Chryysler Dodge Jeep 3 Button Remote Key
[L_AMT14] => 1.00
[L_QTY14] => 1
[L_NUMBER15] =>
[L_NAME15] => Rubber Button for Chrysler Dodge Jeep 4 Button Remote Key
[L_AMT15] => 1.00
[L_QTY15] => 1
[L_NUMBER16] =>
[L_NAME16] => Rubber Button for Chrysler Jeep Dodge 6 Button Remote Key
[L_AMT16] => 1.00
[L_QTY16] => 1
[L_NUMBER17] =>
[L_NAME17] => Rubber Button for Chrysler Dodge Jeep 3 1 Button Remote Key
[L_AMT17] => 1.00
[L_QTY17] => 1
[L_NUMBER18] =>
[L_NAME18] => Chrysler Remote Key Case_6 Button
[L_AMT18] => 1.76
[L_QTY18] => 1
[L_NUMBER19] =>
[L_NAME19] => Chrysler Remote Key Case_4 Button
[L_AMT19] => 1.76
[L_QTY19] => 1
[L_NUMBER20] =>
[L_NAME20] => Chrysler Remote Key Case_2 Button
[L_AMT20] => 1.76
[L_QTY20] => 1
[L_NUMBER21] =>
[L_NAME21] => VW 2 Button Remote Shell
[L_AMT21] => 3.08
[L_QTY21] => 1
[L_NUMBER22] =>
[L_NAME22] => Opel 3 Button Flip Key Shell
[L_AMT22] => 5.72
[L_QTY22] => 1
[L_NUMBER23] =>
[L_NAME23] => Toyota TOY47 3 Button Remote Key Blank
[L_AMT23] => 1.76
[L_QTY23] => 1
[L_NUMBER24] =>
[L_NAME24] => Chrysler Remote Key Case_3 Button Down
[L_AMT24] => 1.76
[L_QTY24] => 1
[L_NUMBER25] =>
[L_NAME25] => Chrysler Remote Key Case_1 3 Button
[L_AMT25] => 1.85
[L_QTY25] => 1
[L_NUMBER26] =>
[L_NAME26] => TOYOTA Corolla 2 Button Remote Key Blank
[L_AMT26] => 1.76
[L_QTY26] => 1
[L_NUMBER27] =>
[L_NAME27] => TOYOTA Camry Corolla 4 BUTTON REMOTE KEY SHELL
[L_AMT27] => 1.67
[L_QTY27] => 1
[L_NUMBER28] =>
[L_NAME28] => Ford Focus Flip Key Shell with sticker and clips
[L_AMT28] => 8.10
[L_QTY28] => 1
[L_NUMBER29] =>
[L_NAME29] => Ford C-Max Remote Shell
[L_AMT29] => 2.64
[L_QTY29] => 1
[L_NUMBER30] =>
[L_NAME30] => Fiat Single Button Remote Key Shell for New Models
[L_AMT30] => 3.80
[L_QTY30] => 2
[L_NUMBER31] =>
[L_NAME31] => Peugeot 307 2 Button Remote Key Blank VA2 without Groove
[L_AMT31] => 2.55
[L_QTY31] => 4
[L_NUMBER32] =>
[L_NAME32] => Honda 2 Button Remote Case with Rubber Button
[L_AMT32] => 1.58
[L_QTY32] => 3
[L_NUMBER33] =>
[L_NAME33] => Honda 3 Button Remote Case with Rubber Button
[L_AMT33] => 1.58
[L_QTY33] => 2
[L_NUMBER34] =>
[L_NAME34] => Opel Corsa 2 Button Remote Shell
[L_AMT34] => 2.55
[L_QTY34] => 4
[L_NUMBER35] =>
[L_NAME35] => Opel Vauxhall Astra Zafira 2 Button Remote Shell
[L_AMT35] => 3.43
[L_QTY35] => 2
[L_NUMBER36] =>
[L_NAME36] => Opel Vauxhall Vectra 3 Button Remote Shell
[L_AMT36] => 3.17
[L_QTY36] => 2
[L_NUMBER37] =>
[L_NAME37] => Peugeot 206 2 Button Remote Key Blank
[L_AMT37] => 2.55
[L_QTY37] => 3
[L_NUMBER38] =>
[L_NAME38] => Audi 2 Button Remote Shell with 2 Battery Space for old Models
[L_AMT38] => 3.17
[L_QTY38] => 2
[L_NUMBER39] =>
[L_NAME39] => Old BMW 3 Button Remote Key Blank HU58 for 3, 5, 6, 7, 8 Series
[L_AMT39] => 3.96
[L_QTY39] => 2
[L_NUMBER40] =>
[L_NAME40] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Key Shell
[L_AMT40] => 3.08
[L_QTY40] => 2
[L_NUMBER41] =>
[L_NAME41] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Shell
[L_AMT41] => 2.20
[L_QTY41] => 2
[SHIPTONAME] => XXXXX
[SHIPTOSTREET] => XXXXX
[SHIPTOCITY] => XXXXX
[SHIPTOSTATE] => XXXXX
[SHIPTOZIP] => XXXXX
[SHIPTOCOUNTRYCODE] => XXXXX
[BUTTONSOURCE] => ZenCart-EC_us
[RETURNFMFDETAILS] => 0
[CUSTOM] => XXXXX
[INVNUM] => XXXXX
[TOKEN] => XXXXX
[PAYERID] => XXXXX
[PAYMENTACTION] => Sale
[NOTIFYURL] => XXXXXX/ipn_main_handler.php
[METHOD] => DoExpressCheckoutPayment
[CURRENCYCODE] => USD
[USER] => XXXXX
[PWD] => ****************
[VERSION] => 60.0
[SIGNATURE] => ****************************************************bwj1
)

Response:
Array
(
[TIMESTAMP] => 2010-08-03T23:04:33Z
[CORRELATIONID] => 7b488010d7634
[ACK] => FailureWithWarning
[VERSION] => 60.0
[BUILD] => 1421734
[L_ERRORCODE0] => 10413
[L_ERRORCODE1] => 10417
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE1] => Transaction cannot complete.
[L_LONGMESSAGE0] => The totals of the cart item amounts do not match order amounts.
[L_LONGMESSAGE1] => The transaction cannot complete successfully. Instruct the customer to use an alternative payment method.
[L_SEVERITYCODE0] => Warning
[L_SEVERITYCODE1] => Error
[CURL_ERRORS] =>
)

DoExpressCheckoutPayment, Elapsed: 3053ms -- FailureWithWarning

TIMESTAMP=2010%2d08%2d03T23%3a04%3a33Z&CORRELATIONID=7b488010d7634&ACK=FailureWithWarning&VERSION=60%2e0&BUILD=1421734&L_ERRORCODE0=10413&L_ERRORCODE1=10417&L_SHORTMESSAGE0=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e&L_SHORTMESSAGE1=Transaction%20cannot%20complete%2e&L_LONGMESSAGE0=The%20totals%20of%20the%20cart%20item%20amounts%20do%20not%20match%20order%20amounts%2e&L_LONGMESSAGE1=The%20transaction%20cannot%20complete%20successfully%2e%20%20Instruct%20the%20customer%20to%20use%20an%20alternative%20payment%20method%2e&L_SEVERITYCODE0=Warning&L_SEVERITYCODE1=Error&CURL_ERRORS=

[ updates | coding | maintenance | bug fixes | dedicated servers ]

3 Aug 2010, 11:22 PM
#3
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

paypalwpp_Paypal_Action_EC-3LF81779E4632524W_Ihu2.log

Aug-03-2010 18:04:30 (1280876670)
getLineItemDetails 7 - subtotal comparisons
BEFORE line-item calcs: Array
(
[AMT] => 189.42
[ITEMAMT] => 154.02
[TAXAMT] => 0
[SHIPPINGAMT] => 35.4
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)

  • AFTER doing line-item calcs: Array
    (
    [AMT] => 189.42
    [ITEMAMT] => 154.02
    [TAXAMT] => 0
    [SHIPPINGAMT] => 35.4
    [SHIPDISCAMT] => 0
    [HANDLINGAMT] => 0
    [INSURANCEAMT] => 0
    [L_NUMBER0] =>
    [L_NAME0] => BMW 3 Button Remote Key Blank HU58 for 5, 6 7 Z3 Series
    [L_AMT0] => 2.024
    [L_QTY0] => 1
    [L_NUMBER1] =>
    [L_NAME1] => BMW 3 Button Remote Key Blank HU92 for newer 3, 5, 6, X3, X5, Z4
    [L_AMT1] => 2.024
    [L_QTY1] => 1
    [L_NUMBER2] =>
    [L_NAME2] => Audi 3 Button Remote Shell with 2 Battery Space for old Models
    [L_AMT2] => 3.168
    [L_QTY2] => 1
    [L_NUMBER3] =>
    [L_NAME3] => Seat Remote Key Head without 48 Transponder
    [L_AMT3] => 2.9
    [L_QTY3] => 1
    [L_NUMBER4] =>
    [L_NAME4] => Renault New Kangoo 2 Button Remote Shell NE73
    [L_AMT4] => 3.08
    [L_QTY4] => 1
    [L_NUMBER5] =>
    [L_NAME5] => Peugeot 2 Button Remote Key Shell with SX9 Blade
    [L_AMT5] => 2.552
    [L_QTY5] => 1
    [L_NUMBER6] =>
    [L_NAME6] => Mitsubishi 2 Button Remote Shell for Lancer/Outlander/Eclipse...
    [L_AMT6] => 1.936
    [L_QTY6] => 1
    [L_NUMBER7] =>
    [L_NAME7] => Renault Kangoo Single Button Remote Key Shell
    [L_AMT7] => 2.552
    [L_QTY7] => 1
    [L_NUMBER8] =>
    [L_NAME8] => Remodeling Car Flip Key Shell_Hyundai Elantra 2 Button
    [L_AMT8] => 4.5
    [L_QTY8] => 1
    [L_NUMBER9] =>
    [L_NAME9] => Rubber Button for Chrysler Dodge Jeep 2 Button Remote Key
    [L_AMT9] => 1
    [L_QTY9] => 1
    [L_NUMBER10] =>
    [L_NAME10] => VW HU66 Flip Key Head (Round Back)
    [L_AMT10] => 2.9
    [L_QTY10] => 1
    [L_NUMBER11] =>
    [L_NAME11] => VW 3 Button Remote Shell DJ Type
    [L_AMT11] => 3.08
    [L_QTY11] => 1
    [L_NUMBER12] =>
    [L_NAME12] => Hyundai Elantra 2 Button Remote Shell with Rubber Button
    [L_AMT12] => 1.584
    [L_QTY12] => 1
    [L_NUMBER13] =>
    [L_NAME13] => Citroen Transponder Key Blank (Original Style)
    [L_AMT13] => 1.5
    [L_QTY13] => 1
    [L_NUMBER14] =>
    [L_NAME14] => Rubber Button for Chryysler Dodge Jeep 3 Button Remote Key
    [L_AMT14] => 1
    [L_QTY14] => 1
    [L_NUMBER15] =>
    [L_NAME15] => Rubber Button for Chrysler Dodge Jeep 4 Button Remote Key
    [L_AMT15] => 1
    [L_QTY15] => 1
    [L_NUMBER16] =>
    [L_NAME16] => Rubber Button for Chrysler Jeep Dodge 6 Button Remote Key
    [L_AMT16] => 1
    [L_QTY16] => 1
    [L_NUMBER17] =>
    [L_NAME17] => Rubber Button for Chrysler Dodge Jeep 3+1 Button Remote Key
    [L_AMT17] => 1
    [L_QTY17] => 1
    [L_NUMBER18] =>
    [L_NAME18] => Chrysler Remote Key Case_6 Button
    [L_AMT18] => 1.76
    [L_QTY18] => 1
    [L_NUMBER19] =>
    [L_NAME19] => Chrysler Remote Key Case_4 Button
    [L_AMT19] => 1.76
    [L_QTY19] => 1
    [L_NUMBER20] =>
    [L_NAME20] => Chrysler Remote Key Case_2 Button
    [L_AMT20] => 1.76
    [L_QTY20] => 1
    [L_NUMBER21] =>
    [L_NAME21] => VW 2 Button Remote Shell
    [L_AMT21] => 3.08
    [L_QTY21] => 1
    [L_NUMBER22] =>
    [L_NAME22] => Opel 3 Button Flip Key Shell
    [L_AMT22] => 5.72
    [L_QTY22] => 1
    [L_NUMBER23] =>
    [L_NAME23] => Toyota TOY47 3 Button Remote Key Blank
    [L_AMT23] => 1.76
    [L_QTY23] => 1
    [L_NUMBER24] =>
    [L_NAME24] => Chrysler Remote Key Case_3 Button Down
    [L_AMT24] => 1.76
    [L_QTY24] => 1
    [L_NUMBER25] =>
    [L_NAME25] => Chrysler Remote Key Case_1+ 3 Button
    [L_AMT25] => 1.848
    [L_QTY25] => 1
    [L_NUMBER26] =>
    [L_NAME26] => TOYOTA Corolla 2 Button Remote Key Blank
    [L_AMT26] => 1.76
    [L_QTY26] => 1
    [L_NUMBER27] =>
    [L_NAME27] => TOYOTA Camry Corolla 4 BUTTON REMOTE KEY SHELL
    [L_AMT27] => 1.672
    [L_QTY27] => 1
    [L_NUMBER28] =>
    [L_NAME28] => Ford Focus Flip Key Shell with sticker and clips
    [L_AMT28] => 8.096
    [L_QTY28] => 1
    [L_NUMBER29] =>
    [L_NAME29] => Ford C-Max Remote Shell
    [L_AMT29] => 2.64
    [L_QTY29] => 1
    [L_NUMBER30] =>
    [L_NAME30] => Fiat Single Button Remote Key Shell for New Models
    [L_AMT30] => 3.8
    [L_QTY30] => 2
    [L_NUMBER31] =>
    [L_NAME31] => Peugeot 307 2 Button Remote Key Blank VA2 without Groove
    [L_AMT31] => 2.552
    [L_QTY31] => 4
    [L_NUMBER32] =>
    [L_NAME32] => Honda 2 Button Remote Case with Rubber Button
    [L_AMT32] => 1.584
    [L_QTY32] => 3
    [L_NUMBER33] =>
    [L_NAME33] => Honda 3 Button Remote Case with Rubber Button
    [L_AMT33] => 1.584
    [L_QTY33] => 2
    [L_NUMBER34] =>
    [L_NAME34] => Opel Corsa 2 Button Remote Shell
    [L_AMT34] => 2.552
    [L_QTY34] => 4
    [L_NUMBER35] =>
    [L_NAME35] => Opel Vauxhall Astra Zafira 2 Button Remote Shell
    [L_AMT35] => 3.432
    [L_QTY35] => 2
    [L_NUMBER36] =>
    [L_NAME36] => Opel Vauxhall Vectra 3 Button Remote Shell
    [L_AMT36] => 3.168
    [L_QTY36] => 2
    [L_NUMBER37] =>
    [L_NAME37] => Peugeot 206 2 Button Remote Key Blank
    [L_AMT37] => 2.552
    [L_QTY37] => 3
    [L_NUMBER38] =>
    [L_NAME38] => Audi 2 Button Remote Shell with 2 Battery Space for old Models
    [L_AMT38] => 3.168
    [L_QTY38] => 2
    [L_NUMBER39] =>
    [L_NAME39] => Old BMW 3 Button Remote Key Blank HU58 for 3, 5, 6, 7, 8 Series
    [L_AMT39] => 3.96
    [L_QTY39] => 2
    [L_NUMBER40] =>
    [L_NAME40] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Key Shell
    [L_AMT40] => 3.08
    [L_QTY40] => 2
    [L_NUMBER41] =>
    [L_NAME41] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Shell
    [L_AMT41] => 2.2
    [L_QTY41] => 2
    )

=================================

Aug-03-2010 18:04:30 (1280876670)
getLineItemDetails 8
checking subtotals...
Array
(
[calculated total] => 189.42
[AMT] => 189.42
[ITEMAMT] => 154.02
[SHIPPINGAMT] => 35.40
)


difference: 0 (abs+rounded: 0)

Aug-03-2010 18:04:30 (1280876670)
getLineItemDetails 10
subtotals balance - okay

Aug-03-2010 18:04:30 (1280876670)
before_process - EC-1
Beginning EC mode

Aug-03-2010 18:04:30 (1280876670)
before_process - EC-2
address overrides added:
Array
(
[AMT] => 189.42
[ITEMAMT] => 154.02
[SHIPPINGAMT] => 35.40
[L_NUMBER0] =>
[L_NAME0] => BMW 3 Button Remote Key Blank HU58 for 5, 6 7 Z3 Series
[L_AMT0] => 2.02
[L_QTY0] => 1
[L_NUMBER1] =>
[L_NAME1] => BMW 3 Button Remote Key Blank HU92 for newer 3, 5, 6, X3, X5, Z4
[L_AMT1] => 2.02
[L_QTY1] => 1
[L_NUMBER2] =>
[L_NAME2] => Audi 3 Button Remote Shell with 2 Battery Space for old Models
[L_AMT2] => 3.17
[L_QTY2] => 1
[L_NUMBER3] =>
[L_NAME3] => Seat Remote Key Head without 48 Transponder
[L_AMT3] => 2.90
[L_QTY3] => 1
[L_NUMBER4] =>
[L_NAME4] => Renault New Kangoo 2 Button Remote Shell NE73
[L_AMT4] => 3.08
[L_QTY4] => 1
[L_NUMBER5] =>
[L_NAME5] => Peugeot 2 Button Remote Key Shell with SX9 Blade
[L_AMT5] => 2.55
[L_QTY5] => 1
[L_NUMBER6] =>
[L_NAME6] => Mitsubishi 2 Button Remote Shell for Lancer/Outlander/Eclipse...
[L_AMT6] => 1.94
[L_QTY6] => 1
[L_NUMBER7] =>
[L_NAME7] => Renault Kangoo Single Button Remote Key Shell
[L_AMT7] => 2.55
[L_QTY7] => 1
[L_NUMBER8] =>
[L_NAME8] => Remodeling Car Flip Key Shell_Hyundai Elantra 2 Button
[L_AMT8] => 4.50
[L_QTY8] => 1
[L_NUMBER9] =>
[L_NAME9] => Rubber Button for Chrysler Dodge Jeep 2 Button Remote Key
[L_AMT9] => 1.00
[L_QTY9] => 1
[L_NUMBER10] =>
[L_NAME10] => VW HU66 Flip Key Head (Round Back)
[L_AMT10] => 2.90
[L_QTY10] => 1
[L_NUMBER11] =>
[L_NAME11] => VW 3 Button Remote Shell DJ Type
[L_AMT11] => 3.08
[L_QTY11] => 1
[L_NUMBER12] =>
[L_NAME12] => Hyundai Elantra 2 Button Remote Shell with Rubber Button
[L_AMT12] => 1.58
[L_QTY12] => 1
[L_NUMBER13] =>
[L_NAME13] => Citroen Transponder Key Blank (Original Style)
[L_AMT13] => 1.50
[L_QTY13] => 1
[L_NUMBER14] =>
[L_NAME14] => Rubber Button for Chryysler Dodge Jeep 3 Button Remote Key
[L_AMT14] => 1.00
[L_QTY14] => 1
[L_NUMBER15] =>
[L_NAME15] => Rubber Button for Chrysler Dodge Jeep 4 Button Remote Key
[L_AMT15] => 1.00
[L_QTY15] => 1
[L_NUMBER16] =>
[L_NAME16] => Rubber Button for Chrysler Jeep Dodge 6 Button Remote Key
[L_AMT16] => 1.00
[L_QTY16] => 1
[L_NUMBER17] =>
[L_NAME17] => Rubber Button for Chrysler Dodge Jeep 3+1 Button Remote Key
[L_AMT17] => 1.00
[L_QTY17] => 1
[L_NUMBER18] =>
[L_NAME18] => Chrysler Remote Key Case_6 Button
[L_AMT18] => 1.76
[L_QTY18] => 1
[L_NUMBER19] =>
[L_NAME19] => Chrysler Remote Key Case_4 Button
[L_AMT19] => 1.76
[L_QTY19] => 1
[L_NUMBER20] =>
[L_NAME20] => Chrysler Remote Key Case_2 Button
[L_AMT20] => 1.76
[L_QTY20] => 1
[L_NUMBER21] =>
[L_NAME21] => VW 2 Button Remote Shell
[L_AMT21] => 3.08
[L_QTY21] => 1
[L_NUMBER22] =>
[L_NAME22] => Opel 3 Button Flip Key Shell
[L_AMT22] => 5.72
[L_QTY22] => 1
[L_NUMBER23] =>
[L_NAME23] => Toyota TOY47 3 Button Remote Key Blank
[L_AMT23] => 1.76
[L_QTY23] => 1
[L_NUMBER24] =>
[L_NAME24] => Chrysler Remote Key Case_3 Button Down
[L_AMT24] => 1.76
[L_QTY24] => 1
[L_NUMBER25] =>
[L_NAME25] => Chrysler Remote Key Case_1+ 3 Button
[L_AMT25] => 1.85
[L_QTY25] => 1
[L_NUMBER26] =>
[L_NAME26] => TOYOTA Corolla 2 Button Remote Key Blank
[L_AMT26] => 1.76
[L_QTY26] => 1
[L_NUMBER27] =>
[L_NAME27] => TOYOTA Camry Corolla 4 BUTTON REMOTE KEY SHELL
[L_AMT27] => 1.67
[L_QTY27] => 1
[L_NUMBER28] =>
[L_NAME28] => Ford Focus Flip Key Shell with sticker and clips
[L_AMT28] => 8.10
[L_QTY28] => 1
[L_NUMBER29] =>
[L_NAME29] => Ford C-Max Remote Shell
[L_AMT29] => 2.64
[L_QTY29] => 1
[L_NUMBER30] =>
[L_NAME30] => Fiat Single Button Remote Key Shell for New Models
[L_AMT30] => 3.80
[L_QTY30] => 2
[L_NUMBER31] =>
[L_NAME31] => Peugeot 307 2 Button Remote Key Blank VA2 without Groove
[L_AMT31] => 2.55
[L_QTY31] => 4
[L_NUMBER32] =>
[L_NAME32] => Honda 2 Button Remote Case with Rubber Button
[L_AMT32] => 1.58
[L_QTY32] => 3
[L_NUMBER33] =>
[L_NAME33] => Honda 3 Button Remote Case with Rubber Button
[L_AMT33] => 1.58
[L_QTY33] => 2
[L_NUMBER34] =>
[L_NAME34] => Opel Corsa 2 Button Remote Shell
[L_AMT34] => 2.55
[L_QTY34] => 4
[L_NUMBER35] =>
[L_NAME35] => Opel Vauxhall Astra Zafira 2 Button Remote Shell
[L_AMT35] => 3.43
[L_QTY35] => 2
[L_NUMBER36] =>
[L_NAME36] => Opel Vauxhall Vectra 3 Button Remote Shell
[L_AMT36] => 3.17
[L_QTY36] => 2
[L_NUMBER37] =>
[L_NAME37] => Peugeot 206 2 Button Remote Key Blank
[L_AMT37] => 2.55
[L_QTY37] => 3
[L_NUMBER38] =>
[L_NAME38] => Audi 2 Button Remote Shell with 2 Battery Space for old Models
[L_AMT38] => 3.17
[L_QTY38] => 2
[L_NUMBER39] =>
[L_NAME39] => Old BMW 3 Button Remote Key Blank HU58 for 3, 5, 6, 7, 8 Series
[L_AMT39] => 3.96
[L_QTY39] => 2
[L_NUMBER40] =>
[L_NAME40] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Key Shell
[L_AMT40] => 3.08
[L_QTY40] => 2
[L_NUMBER41] =>
[L_NAME41] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Shell
[L_AMT41] => 2.20
[L_QTY41] => 2
[DESC] =>
[SHIPTONAME] => XXXXX
[SHIPTOSTREET] => XXXXX
[SHIPTOSTREET2] =>
[SHIPTOCITY] => XXXX
[SHIPTOSTATE] => XXXX
[SHIPTOZIP] => XXXX
[SHIPTOCOUNTRYCODE] =>XXXX
)

=================================

[ updates | coding | maintenance | bug fixes | dedicated servers ]

3 Aug 2010, 11:23 PM
#4
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

continued

Aug-03-2010 18:04:30 (1280876670)
before_process - EC-3
address info added:
Array
(
[AMT] => 189.42
[ITEMAMT] => 154.02
[SHIPPINGAMT] => 35.40
[L_NUMBER0] =>
[L_NAME0] => BMW 3 Button Remote Key Blank HU58 for 5, 6 7 Z3 Series
[L_AMT0] => 2.02
[L_QTY0] => 1
[L_NUMBER1] =>
[L_NAME1] => BMW 3 Button Remote Key Blank HU92 for newer 3, 5, 6, X3, X5, Z4
[L_AMT1] => 2.02
[L_QTY1] => 1
[L_NUMBER2] =>
[L_NAME2] => Audi 3 Button Remote Shell with 2 Battery Space for old Models
[L_AMT2] => 3.17
[L_QTY2] => 1
[L_NUMBER3] =>
[L_NAME3] => Seat Remote Key Head without 48 Transponder
[L_AMT3] => 2.90
[L_QTY3] => 1
[L_NUMBER4] =>
[L_NAME4] => Renault New Kangoo 2 Button Remote Shell NE73
[L_AMT4] => 3.08
[L_QTY4] => 1
[L_NUMBER5] =>
[L_NAME5] => Peugeot 2 Button Remote Key Shell with SX9 Blade
[L_AMT5] => 2.55
[L_QTY5] => 1
[L_NUMBER6] =>
[L_NAME6] => Mitsubishi 2 Button Remote Shell for Lancer/Outlander/Eclipse...
[L_AMT6] => 1.94
[L_QTY6] => 1
[L_NUMBER7] =>
[L_NAME7] => Renault Kangoo Single Button Remote Key Shell
[L_AMT7] => 2.55
[L_QTY7] => 1
[L_NUMBER8] =>
[L_NAME8] => Remodeling Car Flip Key Shell_Hyundai Elantra 2 Button
[L_AMT8] => 4.50
[L_QTY8] => 1
[L_NUMBER9] =>
[L_NAME9] => Rubber Button for Chrysler Dodge Jeep 2 Button Remote Key
[L_AMT9] => 1.00
[L_QTY9] => 1
[L_NUMBER10] =>
[L_NAME10] => VW HU66 Flip Key Head (Round Back)
[L_AMT10] => 2.90
[L_QTY10] => 1
[L_NUMBER11] =>
[L_NAME11] => VW 3 Button Remote Shell DJ Type
[L_AMT11] => 3.08
[L_QTY11] => 1
[L_NUMBER12] =>
[L_NAME12] => Hyundai Elantra 2 Button Remote Shell with Rubber Button
[L_AMT12] => 1.58
[L_QTY12] => 1
[L_NUMBER13] =>
[L_NAME13] => Citroen Transponder Key Blank (Original Style)
[L_AMT13] => 1.50
[L_QTY13] => 1
[L_NUMBER14] =>
[L_NAME14] => Rubber Button for Chryysler Dodge Jeep 3 Button Remote Key
[L_AMT14] => 1.00
[L_QTY14] => 1
[L_NUMBER15] =>
[L_NAME15] => Rubber Button for Chrysler Dodge Jeep 4 Button Remote Key
[L_AMT15] => 1.00
[L_QTY15] => 1
[L_NUMBER16] =>
[L_NAME16] => Rubber Button for Chrysler Jeep Dodge 6 Button Remote Key
[L_AMT16] => 1.00
[L_QTY16] => 1
[L_NUMBER17] =>
[L_NAME17] => Rubber Button for Chrysler Dodge Jeep 3+1 Button Remote Key
[L_AMT17] => 1.00
[L_QTY17] => 1
[L_NUMBER18] =>
[L_NAME18] => Chrysler Remote Key Case_6 Button
[L_AMT18] => 1.76
[L_QTY18] => 1
[L_NUMBER19] =>
[L_NAME19] => Chrysler Remote Key Case_4 Button
[L_AMT19] => 1.76
[L_QTY19] => 1
[L_NUMBER20] =>
[L_NAME20] => Chrysler Remote Key Case_2 Button
[L_AMT20] => 1.76
[L_QTY20] => 1
[L_NUMBER21] =>
[L_NAME21] => VW 2 Button Remote Shell
[L_AMT21] => 3.08
[L_QTY21] => 1
[L_NUMBER22] =>
[L_NAME22] => Opel 3 Button Flip Key Shell
[L_AMT22] => 5.72
[L_QTY22] => 1
[L_NUMBER23] =>
[L_NAME23] => Toyota TOY47 3 Button Remote Key Blank
[L_AMT23] => 1.76
[L_QTY23] => 1
[L_NUMBER24] =>
[L_NAME24] => Chrysler Remote Key Case_3 Button Down
[L_AMT24] => 1.76
[L_QTY24] => 1
[L_NUMBER25] =>
[L_NAME25] => Chrysler Remote Key Case_1+ 3 Button
[L_AMT25] => 1.85
[L_QTY25] => 1
[L_NUMBER26] =>
[L_NAME26] => TOYOTA Corolla 2 Button Remote Key Blank
[L_AMT26] => 1.76
[L_QTY26] => 1
[L_NUMBER27] =>
[L_NAME27] => TOYOTA Camry Corolla 4 BUTTON REMOTE KEY SHELL
[L_AMT27] => 1.67
[L_QTY27] => 1
[L_NUMBER28] =>
[L_NAME28] => Ford Focus Flip Key Shell with sticker and clips
[L_AMT28] => 8.10
[L_QTY28] => 1
[L_NUMBER29] =>
[L_NAME29] => Ford C-Max Remote Shell
[L_AMT29] => 2.64
[L_QTY29] => 1
[L_NUMBER30] =>
[L_NAME30] => Fiat Single Button Remote Key Shell for New Models
[L_AMT30] => 3.80
[L_QTY30] => 2
[L_NUMBER31] =>
[L_NAME31] => Peugeot 307 2 Button Remote Key Blank VA2 without Groove
[L_AMT31] => 2.55
[L_QTY31] => 4
[L_NUMBER32] =>
[L_NAME32] => Honda 2 Button Remote Case with Rubber Button
[L_AMT32] => 1.58
[L_QTY32] => 3
[L_NUMBER33] =>
[L_NAME33] => Honda 3 Button Remote Case with Rubber Button
[L_AMT33] => 1.58
[L_QTY33] => 2
[L_NUMBER34] =>
[L_NAME34] => Opel Corsa 2 Button Remote Shell
[L_AMT34] => 2.55
[L_QTY34] => 4
[L_NUMBER35] =>
[L_NAME35] => Opel Vauxhall Astra Zafira 2 Button Remote Shell
[L_AMT35] => 3.43
[L_QTY35] => 2
[L_NUMBER36] =>
[L_NAME36] => Opel Vauxhall Vectra 3 Button Remote Shell
[L_AMT36] => 3.17
[L_QTY36] => 2
[L_NUMBER37] =>
[L_NAME37] => Peugeot 206 2 Button Remote Key Blank
[L_AMT37] => 2.55
[L_QTY37] => 3
[L_NUMBER38] =>
[L_NAME38] => Audi 2 Button Remote Shell with 2 Battery Space for old Models
[L_AMT38] => 3.17
[L_QTY38] => 2
[L_NUMBER39] =>
[L_NAME39] => Old BMW 3 Button Remote Key Blank HU58 for 3, 5, 6, 7, 8 Series
[L_AMT39] => 3.96
[L_QTY39] => 2
[L_NUMBER40] =>
[L_NAME40] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Key Shell
[L_AMT40] => 3.08
[L_QTY40] => 2
[L_NUMBER41] =>
[L_NAME41] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Shell
[L_AMT41] => 2.20
[L_QTY41] => 2
[DESC] =>
[SHIPTONAME] => XXXXX
[SHIPTOSTREET] => XXXXX
[SHIPTOSTREET2] =>
[SHIPTOCITY] => XXXX
[SHIPTOSTATE] => XXXXX
[SHIPTOZIP] => XXXXX
[SHIPTOCOUNTRYCODE] => XXXXX
)

=================================

Aug-03-2010 18:04:30 (1280876670)
before_process - EC-4
info being submitted:
EC-3LF81779E4632524W D6UMVNBK2PLPE 189.42
Array
(
[AMT] => 189.42
[ITEMAMT] => 154.02
[SHIPPINGAMT] => 35.40
[L_NUMBER0] =>
[L_NAME0] => BMW 3 Button Remote Key Blank HU58 for 5, 6 7 Z3 Series
[L_AMT0] => 2.02
[L_QTY0] => 1
[L_NUMBER1] =>
[L_NAME1] => BMW 3 Button Remote Key Blank HU92 for newer 3, 5, 6, X3, X5, Z4
[L_AMT1] => 2.02
[L_QTY1] => 1
[L_NUMBER2] =>
[L_NAME2] => Audi 3 Button Remote Shell with 2 Battery Space for old Models
[L_AMT2] => 3.17
[L_QTY2] => 1
[L_NUMBER3] =>
[L_NAME3] => Seat Remote Key Head without 48 Transponder
[L_AMT3] => 2.90
[L_QTY3] => 1
[L_NUMBER4] =>
[L_NAME4] => Renault New Kangoo 2 Button Remote Shell NE73
[L_AMT4] => 3.08
[L_QTY4] => 1
[L_NUMBER5] =>
[L_NAME5] => Peugeot 2 Button Remote Key Shell with SX9 Blade
[L_AMT5] => 2.55
[L_QTY5] => 1
[L_NUMBER6] =>
[L_NAME6] => Mitsubishi 2 Button Remote Shell for Lancer/Outlander/Eclipse...
[L_AMT6] => 1.94
[L_QTY6] => 1
[L_NUMBER7] =>
[L_NAME7] => Renault Kangoo Single Button Remote Key Shell
[L_AMT7] => 2.55
[L_QTY7] => 1
[L_NUMBER8] =>
[L_NAME8] => Remodeling Car Flip Key Shell_Hyundai Elantra 2 Button
[L_AMT8] => 4.50
[L_QTY8] => 1
[L_NUMBER9] =>
[L_NAME9] => Rubber Button for Chrysler Dodge Jeep 2 Button Remote Key
[L_AMT9] => 1.00
[L_QTY9] => 1
[L_NUMBER10] =>
[L_NAME10] => VW HU66 Flip Key Head (Round Back)
[L_AMT10] => 2.90
[L_QTY10] => 1
[L_NUMBER11] =>
[L_NAME11] => VW 3 Button Remote Shell DJ Type
[L_AMT11] => 3.08
[L_QTY11] => 1
[L_NUMBER12] =>
[L_NAME12] => Hyundai Elantra 2 Button Remote Shell with Rubber Button
[L_AMT12] => 1.58
[L_QTY12] => 1
[L_NUMBER13] =>
[L_NAME13] => Citroen Transponder Key Blank (Original Style)
[L_AMT13] => 1.50
[L_QTY13] => 1
[L_NUMBER14] =>
[L_NAME14] => Rubber Button for Chryysler Dodge Jeep 3 Button Remote Key
[L_AMT14] => 1.00
[L_QTY14] => 1
[L_NUMBER15] =>
[L_NAME15] => Rubber Button for Chrysler Dodge Jeep 4 Button Remote Key
[L_AMT15] => 1.00
[L_QTY15] => 1
[L_NUMBER16] =>
[L_NAME16] => Rubber Button for Chrysler Jeep Dodge 6 Button Remote Key
[L_AMT16] => 1.00
[L_QTY16] => 1
[L_NUMBER17] =>
[L_NAME17] => Rubber Button for Chrysler Dodge Jeep 3+1 Button Remote Key
[L_AMT17] => 1.00
[L_QTY17] => 1
[L_NUMBER18] =>
[L_NAME18] => Chrysler Remote Key Case_6 Button
[L_AMT18] => 1.76
[L_QTY18] => 1
[L_NUMBER19] =>
[L_NAME19] => Chrysler Remote Key Case_4 Button
[L_AMT19] => 1.76
[L_QTY19] => 1
[L_NUMBER20] =>
[L_NAME20] => Chrysler Remote Key Case_2 Button
[L_AMT20] => 1.76
[L_QTY20] => 1
[L_NUMBER21] =>
[L_NAME21] => VW 2 Button Remote Shell
[L_AMT21] => 3.08
[L_QTY21] => 1
[L_NUMBER22] =>
[L_NAME22] => Opel 3 Button Flip Key Shell
[L_AMT22] => 5.72
[L_QTY22] => 1
[L_NUMBER23] =>
[L_NAME23] => Toyota TOY47 3 Button Remote Key Blank
[L_AMT23] => 1.76
[L_QTY23] => 1
[L_NUMBER24] =>
[L_NAME24] => Chrysler Remote Key Case_3 Button Down
[L_AMT24] => 1.76
[L_QTY24] => 1
[L_NUMBER25] =>
[L_NAME25] => Chrysler Remote Key Case_1+ 3 Button
[L_AMT25] => 1.85
[L_QTY25] => 1
[L_NUMBER26] =>
[L_NAME26] => TOYOTA Corolla 2 Button Remote Key Blank
[L_AMT26] => 1.76
[L_QTY26] => 1
[L_NUMBER27] =>
[L_NAME27] => TOYOTA Camry Corolla 4 BUTTON REMOTE KEY SHELL
[L_AMT27] => 1.67
[L_QTY27] => 1
[L_NUMBER28] =>
[L_NAME28] => Ford Focus Flip Key Shell with sticker and clips
[L_AMT28] => 8.10
[L_QTY28] => 1
[L_NUMBER29] =>
[L_NAME29] => Ford C-Max Remote Shell
[L_AMT29] => 2.64
[L_QTY29] => 1
[L_NUMBER30] =>
[L_NAME30] => Fiat Single Button Remote Key Shell for New Models
[L_AMT30] => 3.80
[L_QTY30] => 2
[L_NUMBER31] =>
[L_NAME31] => Peugeot 307 2 Button Remote Key Blank VA2 without Groove
[L_AMT31] => 2.55
[L_QTY31] => 4
[L_NUMBER32] =>
[L_NAME32] => Honda 2 Button Remote Case with Rubber Button
[L_AMT32] => 1.58
[L_QTY32] => 3
[L_NUMBER33] =>
[L_NAME33] => Honda 3 Button Remote Case with Rubber Button
[L_AMT33] => 1.58
[L_QTY33] => 2
[L_NUMBER34] =>
[L_NAME34] => Opel Corsa 2 Button Remote Shell
[L_AMT34] => 2.55
[L_QTY34] => 4
[L_NUMBER35] =>
[L_NAME35] => Opel Vauxhall Astra Zafira 2 Button Remote Shell
[L_AMT35] => 3.43
[L_QTY35] => 2
[L_NUMBER36] =>
[L_NAME36] => Opel Vauxhall Vectra 3 Button Remote Shell
[L_AMT36] => 3.17
[L_QTY36] => 2
[L_NUMBER37] =>
[L_NAME37] => Peugeot 206 2 Button Remote Key Blank
[L_AMT37] => 2.55
[L_QTY37] => 3
[L_NUMBER38] =>
[L_NAME38] => Audi 2 Button Remote Shell with 2 Battery Space for old Models
[L_AMT38] => 3.17
[L_QTY38] => 2
[L_NUMBER39] =>
[L_NAME39] => Old BMW 3 Button Remote Key Blank HU58 for 3, 5, 6, 7, 8 Series
[L_AMT39] => 3.96
[L_QTY39] => 2
[L_NUMBER40] =>
[L_NAME40] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Key Shell
[L_AMT40] => 3.08
[L_QTY40] => 2
[L_NUMBER41] =>
[L_NAME41] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Shell
[L_AMT41] => 2.20
[L_QTY41] => 2
[DESC] =>
[SHIPTONAME] => XXXXX
[SHIPTOSTREET] => XXXXX
[SHIPTOCITY] => XXXX
[SHIPTOSTATE] => XXXXX
[SHIPTOZIP] =>XXXXX
[SHIPTOCOUNTRYCODE] => TR
[BUTTONSOURCE] => ZenCart-EC_us
[RETURNFMFDETAILS] => 0
[CUSTOM] => XXXXX
[INVNUM] => XXXXX
[CURRENCY] => USD
)

=================================

Aug-03-2010 18:04:33 (1280876673)
before_process - EC-5
resultset:
Array
(
[TIMESTAMP] => 2010-08-03T23:04:33Z
[CORRELATIONID] => 7b488010d7634
[ACK] => FailureWithWarning
[VERSION] => 60.0
[BUILD] => 1421734
[L_ERRORCODE0] => 10413
[L_ERRORCODE1] => 10417
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_SHORTMESSAGE1] => Transaction cannot complete.
[L_LONGMESSAGE0] => The totals of the cart item amounts do not match order amounts.
[L_LONGMESSAGE1] => The transaction cannot complete successfully. Instruct the customer to use an alternative payment method.
[L_SEVERITYCODE0] => Warning
[L_SEVERITYCODE1] => Error
[CURL_ERRORS] =>
)

=================================[/QUOTE]

[ updates | coding | maintenance | bug fixes | dedicated servers ]

3 Aug 2010, 11:27 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

Should there be any tax?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Aug 2010, 11:28 PM
#6
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

ZERO tax, we dont use it

double checked: all tax classes and rates are empty.

Order total tax module is disabled.

[ updates | coding | maintenance | bug fixes | dedicated servers ]

3 Aug 2010, 11:34 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

I did a very quick adding up of all the amounts shown in the log, and it looks like there's 5.75 more in the amount being submitted. (I could be wrong if I did the adding too quickly.)
Any idea where that could come from?
Handling charges maybe?
Was it an item added to the cart that didn't show up on the list?
Can you recreate this problem on-demand repeatedly? Have you tried?

What addons do you have installed on your site?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Aug 2010, 11:42 PM
#8
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

+30% of all the orders fail

Addons:
Advanced Shipper v3.8.3
If i disabled it , it makes no difference.

Paypal_CURL_1280865723_2Pia.log

2010-08-03 03:02:03

(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 45
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(tm) - PayPal/NVP
[4] => X-VPS-VIT-Integration-Version: 1.3.9e
)

Request Parameters: {SetExpressCheckout}
Array
(
[AMT] => 125.90
[ITEMAMT] => 83.74
[SHIPPINGAMT] => 42.16
[L_NUMBER0] =>
[L_NAME0] => Audi 2 PANIC Button Flip Key Shell with sticker and battery clip
[L_AMT0] => 5.98
[L_QTY0] => 5
[L_NUMBER1] =>
[L_NAME1] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Key Shell
[L_AMT1] => 3.08
[L_QTY1] => 4
[L_NUMBER2] =>
[L_NAME2] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Shell
[L_AMT2] => 2.20
[L_QTY2] => 3
[L_NUMBER3] =>
[L_NAME3] => Honda HON66 3 1PANIC Button Remote Key Shell Genuine
[L_AMT3] => 2.90
[L_QTY3] => 11
[L_NUMBER4] =>
[L_NAME4] => Nissan Almera Micra X-Trail Cargo NSN14 2B Remote Key Head
[L_AMT4] => 1.50
[L_QTY4] => 2
[LOCALECODE] => US
[PAYMENTACTION] => Sale
[ALLOWNOTE] => 1
[LANDINGPAGE] => Billing
[ADDROVERRIDE] => 1
[SHIPTONAME] => XXXX
[SHIPTOSTREET] => XXXXX
[SHIPTOCITY] => XXXX
[SHIPTOZIP] => XXXX
[SHIPTOSTATE] => XXX
[SHIPTOCOUNTRYCODE] => ZA
[REQCONFIRMSHIPPING] => 1
[EMAIL] => XXXX
[PHONENUM] => 12312312312312
[RETURNURL] => XXXX
[CANCELURL] => XXXX
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => USD
[USER] => XXXX
[PWD] => ****************
[VERSION] => 60.0
[SIGNATURE] => ****************************************************bwj1
)

Response:
Array
(
[TIMESTAMP] => 2010-08-03T20:02:03Z
[CORRELATIONID] => 1015410f605b9
[ACK] => Failure
[VERSION] => 60.0
[BUILD] => 1421734
[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
[CURL_ERRORS] =>
)

SetExpressCheckout, Elapsed: 534ms -- Failure

TIMESTAMP=2010%2d08%2d03T20%3a02%3a03Z&CORRELATIONID=1015410f605b9&ACK=Failure&VERSION=60%2e0&BUILD=1421734&L_ERRORCODE0=10413&L_SHORTMESSAGE0=Transaction%20refused%20because%20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20details%2e&L_LONGMESSAGE0=The%20totals%20of%20the%20cart%20item%20amounts%20do%20not%20match%20order%20amounts%2e&L_SEVERITYCODE0=Error&CURL_ERRORS=

[ updates | coding | maintenance | bug fixes | dedicated servers ]

4 Aug 2010, 12:01 AM
#9
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

all items in the above log were on sale (original price Less 12%)

Could it be doing the qty multiplication first and then rounding off ?

and then first rounding off and then doing the qty multiplication ?

That could explain why it is a few cents out ?

just thinking out aloud

[ updates | coding | maintenance | bug fixes | dedicated servers ]

4 Aug 2010, 9:52 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

I'm guessing that if you turn off the 12% sale temporarily, that the problem goes away?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Aug 2010, 10:17 PM
#11
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

yes, removedthe sale
and its fine.

seems its caused by the rounding of the totals.

in the shopping cart, im assuming you first multiple amount by qty then round off.

in paypal, it firsts rounds off then multiplies by the qty.

also i noticed in paypalwpp.php, your check

    // check subtotals
    if (strval($subTotalLI) - strval($sumOfLineItems) > 0.02) {
      $this->zcLog('getLineItemDetails 5', 'Line-item subtotals do not add up properly. Line-item-details skipped.' . "\n" . (float)$sumOfLineItems . ' ' . (float)$subTotalTax . print_r(array_merge($optionsST, $optionsLI), true));
      $optionsLI = array();
    }
	

should this be changed to

    // check subtotals
    if (strval($optionsST['ITEMAMT']) - strval($sumOfLineItems) > 0) {
      $this->zcLog('getLineItemDetails 5', 'Line-item subtotals do not add up properly. Line-item-details skipped.' . "\n" . (float)$sumOfLineItems . ' ' . (float)$subTotalTax . print_r(array_merge($optionsST, $optionsLI), true));
      $optionsLI = array();
    }
	

[ updates | coding | maintenance | bug fixes | dedicated servers ]

10 Aug 2010, 5:19 PM
#12
dazana avatar

dazana

New Zenner

Join Date:
Apr 2009
Posts:
45
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

Does this code change fix the problem with those errors?

12 Aug 2010, 9:28 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

Dazmode:

Does this code change fix the problem with those errors?
Dazmode, are you asking that question because you have a SALE on AND you're getting those errors ONLY when the sale is on?
If not, then your issue might well be different, and thus the suggested change may not be relevant.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Aug 2010, 3:38 AM
#14
dazana avatar

dazana

New Zenner

Join Date:
Apr 2009
Posts:
45
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

I just disabled sale that was based on % discount and I will wait few days to see if errors will stop.

Thank you for double checking on cause.

22 Aug 2010, 7:41 PM
#15
dazana avatar

dazana

New Zenner

Join Date:
Apr 2009
Posts:
45
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

Got same the error on items that are not on sale. I guess I have something else.

23 Aug 2010, 6:01 PM
#16
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

you can try my work around posted above, it will remove all the line items when the totals do not add up (bug work around)

Ive rewritten large parts of paypalwpp.php , in order to fix this and a few other paypal quirks.

[ updates | coding | maintenance | bug fixes | dedicated servers ]

24 Aug 2010, 1:01 PM
#17
dazana avatar

dazana

New Zenner

Join Date:
Apr 2009
Posts:
45
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

It seems this error shows mostly for item with .99c price ending. When price rounded up, customers can check out ok.

16 Sep 2010, 5:16 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

Here's a possible solution. Unfortunately I can't test it with your exact configuration, since I don't have those details.

Perhaps you can test it and see what happens for you, and report back.

/includes/modules/payment/paypalwpp.php
Around line 1171 you'll see this block of code:// PayPal can't handle partial-quantity values, so fudge it here if ($order->products[$i]['qty'] != (int)$order->products[$i]['qty']) { $optionsLI["L_NAME$k"] = '('.$order->products[$i]['qty'].' x ) ' . $optionsLI["L_NAME$k"]; $optionsLI["L_AMT$k"] = ($order->products[$i]['qty'] * $order->products[$i]['final_price']); $optionsLI["L_TAXAMT$k"] = zen_calculate_tax($order->products[$i]['qty'] * $order->products[$i]['final_price'], $order->products[$i]['tax']); $optionsLI["L_QTY$k"] = 1; } else { $optionsLI["L_AMT$k"] = $order->products[$i]['final_price']; $optionsLI["L_QTY$k"] = $order->products[$i]['qty']; $optionsLI["L_TAXAMT$k"] = zen_calculate_tax(1 * $order->products[$i]['final_price'], $order->products[$i]['tax']); }Replace it with the following block of code:```
// check for rounding problems with taxes
$m1 = zen_round($order->products[$i]['qty'] * $order->products[$i]['final_price'], $currencies->currencies[$_SESSION['currency']]['decimal_places']);
$m2 = ($order->products[$i]['qty'] * zen_round($order->products[$i]['final_price'], $currencies->currencies[$_SESSION['currency']]['decimal_places']));
$n1 = $order->products[$i]['qty'] * zen_calculate_tax($order->products[$i]['final_price'], $order->products[$i]['tax']);
$n2 = zen_calculate_tax($order->products[$i]['qty'] * $order->products[$i]['final_price'], $order->products[$i]['tax']);
if ($m1 != $m2 || zen_round($n1, $currencies->currencies[$_SESSION['currency']]['decimal_places']) != zen_round($n2, $currencies->currencies[$_SESSION['currency']]['decimal_places'])) $flag_treat_as_partial = true;

  // PayPal can't handle partial-quantity values, so fudge it here
  if ($flag_treat_as_partial || $order->products[$i]['qty'] != (int)$order->products[$i]['qty']) {
    $optionsLI["L_NAME$k"] = '('.$order->products[$i]['qty'].' x ) ' . $optionsLI["L_NAME$k"];
    $optionsLI["L_AMT$k"] = zen_round($order->products[$i]['qty'] * $order->products[$i]['final_price'], $currencies->currencies[$_SESSION['currency']]['decimal_places']);
    $optionsLI["L_TAXAMT$k"] = zen_calculate_tax(zen_round($order->products[$i]['qty'] * $order->products[$i]['final_price'], $currencies->currencies[$_SESSION['currency']]['decimal_places']), $order->products[$i]['tax']);
    $optionsLI["L_QTY$k"] = 1;
  } else {
    $optionsLI["L_AMT$k"] = $order->products[$i]['final_price'];
    $optionsLI["L_QTY$k"] = $order->products[$i]['qty'];
    $optionsLI["L_TAXAMT$k"] = zen_calculate_tax(1 * $order->products[$i]['final_price'], $order->products[$i]['tax']);
  }

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Sep 2010, 2:21 AM
#19
dazana avatar

dazana

New Zenner

Join Date:
Apr 2009
Posts:
45
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

Seems it helped. Thank you.

28 Sep 2010, 1:48 PM
#20
xcooling avatar

xcooling

New Zenner

Join Date:
Apr 2008
Location:
internet
Posts:
41
Plugin Contributions:
0

Re: [Done v1.3.9g] PayPal Express Checkout :: error 10413 & 10417 :: totals do not match

After extensive testing, your solution does not fix all the rounding errors.

You need to add the following code as well as yours, to solve all the issues. (tested on +/-500 PAYPAL orders)

/includes/modules/payment/paypalwpp.php

Find the following, around line 1320

// check subtotals
    if (strval($subTotalLI) - strval($sumOfLineItems) > 0.02) {
      $this->zcLog('getLineItemDetails 5', 'Line-item subtotals do not add up properly. Line-item-details skipped.' . "\n" . (float)$sumOfLineItems . ' ' . (float)$subTotalTax . print_r(array_merge($optionsST, $optionsLI), true));
      $optionsLI = array();
    }

After the code, Add the following

/****** BOF BUG FIX ******/
	// By Adrian kriel : root-at-extremecooling-dot-org
    // Do extra sanity check on item amount and line item totals (bug fix to prevent fail with error code 10413)
	//(caused by item being on sale, price is rounded off before the qty multiplication, hence why totals will be out by a few cents)
	// this will add an extra line item that will appear on the paypal invoice.
	
$this->zcLog('getLineItemDetails 6', 'PayPal Correction Info:(sumOfLineItems: '.$sumOfLineItems.', ITEMAMT: '.$optionsST['ITEMAMT'].')'."\n");

	if(strval($optionsST['ITEMAMT'])!= strval($sumOfLineItems)){ //$optionsST['ITEMAMT'] seems to be a more correct varible, than using $subTotalLI
		
		$numberOfLineItemsProcessed++;
        $k = $numberOfLineItemsProcessed;
				
		//check to make sure we have more than 1 line option
		if($k >= 1){
			//calculate the correction value required.
			$lineItemCorrection = strval($optionsST['ITEMAMT']) - strval($sumOfLineItems);
	
			$this->zcLog('getLineItemDetails 6', 'PayPal Correction Fixed: Line-item subtotals do not add up properly (sumOfLineItems: '.$sumOfLineItems.', ITEMAMT: '.$optionsST['ITEMAMT'].'). Adding Bugfix line item with ammount: '. $lineItemCorrection .'\n');
			
			//you could reset the array instead of assigning an extra line item
			//$optionsLI = array();
			$optionsLI["L_NUMBER$k"] = "";
			$optionsLI["L_NAME$k"] = "PayPal Correction";
			$optionsLI["L_AMT$k"] = strval($lineItemCorrection);
			$optionsLI["L_QTY$k"] = 1;	  
			
			$sumOfLineItems += strval($lineItemCorrection); //update the $sumOfLineItems Total
		}
    }
/****** EOF BUG FIX ******/		

[ updates | coding | maintenance | bug fixes | dedicated servers ]