Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2016
    Location
    Singapore
    Posts
    2
    Plugin Contributions
    0

    help question PayPal Express Checkout Error (10413)

    Hi,

    I'm using paypalExpresscheckout(debug), and I've encountered express checkout error and attached are the info that I've abstracted from the log files. Can anyone kindly help me with this? Thanks!

    From the CURL log files, I discovered that in DoExpressCheckoutPayment module, the amount is $324,
    whereas in the GetExpressCheckoutDetails module, the amount is $325


    =-=-=-=-=-=-=-=-=-=-=-=-=-=-= DoExpressCheckoutPayment =-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    2016-09-07 02:13:15
    -------------------
    (live transaction) --> https://api-3t.paypal.com/nvp
    Request Headers:
    Array
    (
    [0] => Content-Type: text/namevalue
    [1] => X-VPS-Timeout: 90
    [2] => X-VPS-VIT-Client-Type: PHP/cURL
    [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
    [4] => X-VPS-VIT-Integration-Version: 1.5.1
    )


    Request Parameters: {DoExpressCheckoutPayment}
    Array
    (
    [AMT] => 324
    [ITEMAMT] => 248
    [TAXAMT] => -0
    [SHIPPINGAMT] => 77
    ...
    [METHOD] => DoExpressCheckoutPayment
    [CURRENCYCODE] => USD
    ...
    [VERSION] => 61.0
    [SIGNATURE] => ****************************************************4HGI
    )


    Response:
    Array
    (
    [TOKEN] => EC-2A113509RF904461Y
    [SUCCESSPAGEREDIRECTREQUESTED] => false
    [TIMESTAMP] => 2016-09-07T09:13:15Z
    [CORRELATIONID] => 8fab46de3c54f
    [ACK] => Failure
    [VERSION] => 61.0
    [BUILD] => 24765677
    [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] =>
    )


    DoExpressCheckoutPayment, Elapsed: 1240ms -- Failure

    TOKEN=EC%2d2A113509RF904461Y&SUCCESSPAGEREDIRECTREQUESTED=false&TIMESTAMP=2016%2 d09%2d07T09%3a13%3a15Z&CORRELATIONID=8fab46de3c54f&ACK=Failure&VERSION=61%2e0&BU ILD=24765677&L_ERRORCODE0=10413&L_SHORTMESSAGE0=Transaction%20refused%20because% 20of%20an%20invalid%20argument%2e%20See%20additional%20error%20messages%20for%20 details%2e&L_LONGMESSAGE0=The%20totals%20of%20the%20cart%20item%20amounts%20do%2 0not%20match%20order%20amounts%2e&L_SEVERITYCODE0=Error&CURL_ERRORS=

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-= End of DoExpressCheckoutPayment =-=-=-=-=-=-=-=-=-=-=-=-=-=-=



    =-=-=-=-=-=-=-=-=-=-=-=-=-=-= GetExpressCheckoutDetails =-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    2016-09-07 02:13:14
    -------------------
    (live transaction) --> https://api-3t.paypal.com/nvp
    Request Headers:
    Array
    (
    [0] => Content-Type: text/namevalue
    [1] => X-VPS-Timeout: 90
    [2] => X-VPS-VIT-Client-Type: PHP/cURL
    [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(R) - PayPal/NVP
    [4] => X-VPS-VIT-Integration-Version: 1.5.1
    )


    Request Parameters: {GetExpressCheckoutDetails}
    Array
    (
    [TOKEN] => EC-2A113509RF904461Y
    [METHOD] => GetExpressCheckoutDetails
    ...
    [VERSION] => 61.0
    [SIGNATURE] => ****************************************************4HGI
    )


    Response:
    Array
    (
    [TOKEN] => EC-2A113509RF904461Y
    [BILLINGAGREEMENTACCEPTEDSTATUS] => 0
    [CHECKOUTSTATUS] => PaymentActionNotInitiated
    [TIMESTAMP] => 2016-09-07T09:13:13Z
    [CORRELATIONID] => ca70fd7f77932
    [ACK] => Success
    [VERSION] => 61.0
    [BUILD] => 24765677
    ...
    [ADDRESSSTATUS] => Confirmed
    [CURRENCYCODE] => USD
    [AMT] => 325.00
    [ITEMAMT] => 248.00
    [SHIPPINGAMT] => 77.00
    [HANDLINGAMT] => 0.00
    [TAXAMT] => 0.00
    ...
    [INSURANCEAMT] => 0.00
    [SHIPDISCAMT] => 0.00
    [INSURANCEOPTIONOFFERED] => false
    ...
    [CURL_ERRORS] =>
    )


    GetExpressCheckoutDetails, Elapsed: 1108ms -- Success

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-= End of GetExpressCheckoutDetails =-=-=-=-=-=-=-=-=-=-=-=-=-=-=


    =-=-=-=-=-=-=-=-=-=-=-=-=-=-= Paypal Action file =-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    Sep-07-2016 02:13:14 (1473239594)
    getLineItemDetails 7 - subtotal comparisons
    BEFORE line-item calcs: Array
    (
    [AMT] => 324.38
    [ITEMAMT] => 248
    [TAXAMT] => 7.57
    [SHIPPINGAMT] => 68.81
    [SHIPDISCAMT] => 0
    [HANDLINGAMT] => 0
    [INSURANCEAMT] => 0
    )
    AFTER doing line-item calcs: Array
    (
    [AMT] => 324.38
    [ITEMAMT] => 248
    [TAXAMT] => -0.43
    [SHIPPINGAMT] => 76.81
    ...
    )

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

    Sep-07-2016 02:13:14 (1473239594)
    getLineItemDetails 8
    checking subtotals...
    Array
    (
    [calculated total] => 324
    [AMT] => 324
    [ITEMAMT] => 248
    [TAXAMT] => -0
    [SHIPPINGAMT] => 77
    )

    -------------------
    difference: 0 (abs+rounded: 0)
    =================================

    Sep-07-2016 02:13:14 (1473239594)
    getLineItemDetails 10
    subtotals balance - okay
    =================================

    Sep-07-2016 02:13:14 (1473239594)
    before_process - EC-1
    Beginning EC mode
    =================================

    Sep-07-2016 02:13:14 (1473239594)
    before_process - EC-2
    address overrides added:
    Array
    (
    [AMT] => 324
    [ITEMAMT] => 248
    [TAXAMT] => -0
    [SHIPPINGAMT] => 77
    ...

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-= End of Paypal Action file =-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  2. #2
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: PayPal Express Checkout Error (10413)

    Under localization, currencies, what do you have set for the number of decimals for USD?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2016
    Location
    Singapore
    Posts
    2
    Plugin Contributions
    0

    Default Re: PayPal Express Checkout Error (10413)

    Hi!

    I see that it is 0 now. What shall I change it to?

    Thanks
    Dickson

  4. #4
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: PayPal Express Checkout Error (10413)

    Quote Originally Posted by dicksontan View Post
    Hi!

    I see that it is 0 now. What shall I change it to?

    Thanks
    Dickson
    Unless all of your prices are to be rounded to the nearest whole dollar, I would say that it should be set to at least 2 decimal places for the currency.

    There may also be benefit of upgrading to the latest ZC.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. PayPal Express/Pro 10413 bugfix
    By Techiant in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 16 Jan 2011, 10:05 PM
  2. Replies: 32
    Last Post: 2 Oct 2010, 10:23 PM
  3. PayPal Express Checkout Error (10413)‏
    By Easyp in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 14 Feb 2010, 06:12 AM
  4. 10413 Transaction refused because of an invalid argument - with Paypal express
    By Darkpatate in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 17 Jul 2009, 04:20 PM
  5. Replies: 11
    Last Post: 16 May 2009, 04:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR