• Resolved creocoding

    (@creocoding)


    I have a customer that is trying to use coupons and store credit and the customers are receiving:

    PayPal error (10413): Transaction refused because of an invalid argument. See additional error messages for details. – The totals of the cart item amounts do not match order amounts.

    Here is the out put log

    02-09-2022 @ 12:17:47 - YITH_PayPal_EC_Request Object
    (
        [request_fields:protected] => Array
            (
                [USER] => XXX
                [PWD] => XXX
                [SIGNATURE] => XXX
                [VERSION] => 204
                [SUBJECT] => XXX
                [METHOD] => SetExpressCheckout
                [RETURNURL] => https://www.XXX.com/wc-api/yith_paypal_ec/?yith_paypal_ec_back=1
                [CANCELURL] => https://www.XXX.com/cart/?cancel_order=true&order=wc_order_Ymo9upn3VYyLt&order_id=26912&redirect&_wpnonce=8c9dc6526e
                [NOTIFYURL] => https://www.XXX.com/wc-api/yith_paypal_ec/
                [PAGESTYLE] => 
                [BRANDNAME] => 
                [HDRIMG] => 
                [LOGOIMG] => 
                [LANDINGPAGE] => Billing
                [NOSHIPPING] => 1
                [SOLUTIONTYPE] => Sole
                [SHIPTOSTREET] => XX Street
                [SHIPTOSTREET2] => 
                [SHIPTOCITY] => XXXX
                [SHIPTOSTATE] => XX
                [SHIPTOZIP] => XXXXX
                [SHIPTOCOUNTRYCODE] => US
                [REQCONFIRMSHIPPING] => 1
                [ADDROVERRIDE] => 1
                [CUSTOM] => {"order_id":26912,"order_key":"wc_order_Ymo9upn3VYyLt","url":"https:\/\/www.XXX.com"}
                [SHIPTONAME] =>  
                [L_PAYMENTREQUEST_0_NAME0] => Item Name
                [L_PAYMENTREQUEST_0_DESC0] => Item Description
                [L_PAYMENTREQUEST_0_AMT0] => 380
                [L_PAYMENTREQUEST_0_QTY0] => 1
                [L_PAYMENTREQUEST_0_ITEMURL0] => https://www.XXX.com/product/61f04e811ebe3/
                [PAYMENTREQUEST_0_AMT] => 330
                [PAYMENTREQUEST_0_CURRENCYCODE] => USD
                [PAYMENTREQUEST_0_ITEMAMT] => 380
                [PAYMENTREQUEST_0_SHIPPINGAMT] => 0
                [PAYMENTREQUEST_0_TAXAMT] => 0
                [PAYMENTREQUEST_0_INVNUM] => YITH-26912
                [PAYMENTREQUEST_0_PAYMENTACTION] => sale
                [PAYMENTREQUEST_0_NOTIFYURL] => https://www.XXX.com/wc-api/yith_paypal_ec/
                [PAYMENTREQUEST_0_PAYMENTREQUESTID] => 26912
                [PAYMENTREQUEST_0_CUSTOM] => {"order_id":26912,"order_key":"wc_order_Ymo9upn3VYyLt","url":"https:\/\/www.XXX.com"}
            )
    
        [default_args:protected] => Array
            (
                [billing_type] => MerchantInitiatedBillingSingleAgreement
                [billing_description] => Orders with XXX
                [no_shipping] => 0
                [page_style] => 
                [brand_name] => 
                [landing_page] => Billing
                [logo] => 
                [header] => 
                [payment_action] => sale
                [billing_agreement_custom] => 
                [return_url] => 
                [cancel_url] => 
                [currency] => USD
                [addoverride] => 1
                [solution_type] => Sole
                [payment_type] => Any
                [return_fraud_filters] => 1
            )
    
    )
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Salvatore Strano

    (@salvostrano)

    Hi @creocoding
    What do you mean with “store credit”?
    Could you try to make a test with only WooCommerce coupons ?

    Thread Starter creocoding

    (@creocoding)

    Store Credit is a feature of Smart Coupons. I was able to get this to work with Woocommerce Paypal plugin which is basically the same thing. So it’s specific to Yith. I could try the regular coupon feature at another time but this client requires the store credit feature.

    Plugin Support Salvatore Strano

    (@salvostrano)

    Hi @creocoding
    We will check about this issue and as soon as possible i’ll let you know

    Plugin Support Emanuela Castorina

    (@kreamweb)

    Hello there,
    I’ve tried to use a store credit with Smart Coupons inside my local installation and I don’t have any issue.
    Can you send more information about the settings of Smart Coupons plugins?

    Thank you

    Hello,

    Same issue for me, all it’s ok but if i add a woocommerce coupon code, an error 10431 is displayed.

    Thanks in advance.

    Plugin Support Carlos M

    (@cjmora)

    Hi @damiend1,

    Do you have the same problem when using store credits from Smart Coupons?
    If so, what is the developer of the Smart Coupons plugin you are using? Just to be sure we were testing the same plugin. Thank you.

    Hello,

    In fact i don’t use any plugin for the coupon, this is just the embed coupon feature of Woocommerce, no plugin… I saw in your log that you have already solve a similar problem in the past. If y try another paypal checkout plugin it’s work fine, so … but i prefere use yith plugin… 😉 hope that help.

    Thanks in advance
    Damien

    Plugin Support Alberto Ruggiero

    (@witcher83)

    Hello @damiend1,
    would you mind opening a new support topic so we can manage your issue on a different path? Please also provide as much information as possible to debug this issue.

    @creocoding Since we have not received a reply on your side, we will proceed to set this topic as resolved. However, for further assistance, do not hesitate to open a new topic.

    It’s ok for me too !
    Thank you for the reactivity of the Yith support.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error 10413 with discounts’ is closed to new replies.