M
M
Maxim Chernykh2021-05-05 17:59:03
MODX
Maxim Chernykh, 2021-05-05 17:59:03

How to solve the problem with paypal payment?

I set up minishop2 and PayPal payment, everything is ok, then I installed the dcDiscounts plugin and made a discount - now the error is "The totals of the cart item amounts do not match order amounts"

[2021-04-07 06:01:12] (ERROR @ /home/u212443042/domains/maisondentremets.com/public_html/core/components/minishop2/custom/payment/paypal.class.php : 84) [miniShop2] Payment error while request. Request: Array
(
    [METHOD] => SetExpressCheckout
    [PAYMENTREQUEST_0_CURRENCYCODE] => GBP
    [PAYMENTREQUEST_0_ITEMAMT] => 37.34
    [PAYMENTREQUEST_0_SHIPPINGAMT] => 0
    [PAYMENTREQUEST_0_AMT] => 37.34
    [RETURNURL] => https://maisondentremets.com/assets/components/minishop2/payment/paypal.php?action=success
    [CANCELURL] => https://maisondentremets.com/assets/components/minishop2/payment/paypal.php?action=cancel
    [PAYMENTREQUEST_0_INVNUM] => 41
    [L_PAYMENTREQUEST_0_NAME0] => Avocado Guacamole
    [L_PAYMENTREQUEST_0_AMT0] => 4.96
    [L_PAYMENTREQUEST_0_QTY0] => 1
    [L_PAYMENTREQUEST_0_NAME1] => Marscarpone Cheese Spread
    [L_PAYMENTREQUEST_0_AMT1] => 8
    [L_PAYMENTREQUEST_0_QTY1] => 1
    [L_PAYMENTREQUEST_0_NAME2] => Peanut Cream
    [L_PAYMENTREQUEST_0_AMT2] => 4.19
    [L_PAYMENTREQUEST_0_QTY2] => 1
    [L_PAYMENTREQUEST_0_NAME3] => Smoked Salmon pâté
    [L_PAYMENTREQUEST_0_AMT3] => 5.21
    [L_PAYMENTREQUEST_0_QTY3] => 1
    [L_PAYMENTREQUEST_0_NAME4] => Sourdough Baguettes
    [L_PAYMENTREQUEST_0_AMT4] => 2.99
    [L_PAYMENTREQUEST_0_QTY4] => 1
    [L_PAYMENTREQUEST_0_NAME5] => Chicken Liver Pâté
    [L_PAYMENTREQUEST_0_AMT5] => 4.45
    [L_PAYMENTREQUEST_0_QTY5] => 1
    [L_PAYMENTREQUEST_0_NAME6] => Ricotta Cheese Mousse
    [L_PAYMENTREQUEST_0_AMT6] => 3.99
    [L_PAYMENTREQUEST_0_QTY6] => 1
    [L_PAYMENTREQUEST_0_NAME7] => Duck liver pâté
    [L_PAYMENTREQUEST_0_AMT7] => 5.51
    [L_PAYMENTREQUEST_0_QTY7] => 1
)
, response: Array
(
    [TIMESTAMP] => 2021-04-07T06:01:12Z
    [CORRELATIONID] => 8bf76d88da2b0
    [ACK] => Failure
    [VERSION] => 74.0
    [BUILD] => 55475691
    [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
)


Does anyone know how to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bochkarev, 2021-05-13
@bochkarev

Here is the solution to your question: PR

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question