PayPal 10413 Error
-
I tried emailing this to [email protected] over 2 days ago but haven’t gotten a response so I’m trying here too. We have a license for the Pro version of the plugin.
We recently switched our payment gateway from Square to PayPal Pro PayFlow, and now any orders with a Gift Card applied fail with the error “Field format error: 10413-The totals of the cart item amounts do not match order amounts.” Orders with WooCommerce Coupons applied are processed successfully
I’ve turned on logging for the PayPal gateway, and have discovered that when an order with a Coupon is placed there is an item called “[DISCOUNT]” equal to the value of the coupon that is sent to PayPal, but this item is missing from Gift Card orders and I think that’s what is causing the error.
Here’s the transaction log for a Gift Card order:
08-07-2020 @ 14:21:56 – Processing order #19962
08-07-2020 @ 14:21:56 – Do payment request Array
(
[USER] => woocommerceapi
[VENDOR] => ShopAtMATTER
[PARTNER] => PayPal
[PWD] => Mystore.123
[TENDER] => C
[TRXTYPE] => S
[AMT] => 4.75
[CURRENCY] => USD
[CUSTIP] => ***.***.***.***
[EMAIL] => [email protected]
[INVNUM] => 19962
[BUTTONSOURCE] => WooThemes_Cart
[L_NAME0] => Don’t Be A Dick – Lapel Pin
[L_COST0] => 9.00
[L_QTY0] => 1
[L_SKU0] => CBDBAD-012020
[TAXAMT] => 0.75
[ITEMAMT] => 9.00
[ORDERDESC] => Order 19962 on Shop at Matter
[FIRSTNAME] => Jeff
[LASTNAME] => Daigle
[STREET] => ****
[CITY] => Denver
[STATE] => CO
[COUNTRY] => US
[ZIP] => 80205
[SHIPTOFIRSTNAME] => Jeff
[SHIPTOLASTNAME] => Daigle
[SHIPTOSTREET] => ****
[SHIPTOCITY] => Denver
[SHIPTOSTATE] => CO
[SHIPTOCOUNTRY] => US
[SHIPTOZIP] => 80205
[ACCT] => ****
[EXPDATE] => ****
[CVV2] => ****
)08-07-2020 @ 14:21:57 – Parsed Response Array
(
[RESULT] => 7
[PNREF] => BG0P4AC06933
[RESPMSG] => Field format error: 10413-The totals of the cart item amounts do not match order amounts.
)And here is the transaction log for a Coupon order:
08-07-2020 @ 14:28:10 – Processing order #19963
08-07-2020 @ 14:28:10 – Do payment request Array
(
[USER] => woocommerceapi
[VENDOR] => ShopAtMATTER
[PARTNER] => PayPal
[PWD] => Mystore.123
[TENDER] => C
[TRXTYPE] => S
[AMT] => 8.77
[CURRENCY] => USD
[CUSTIP] => ***.***.***.***
[EMAIL] => [email protected]
[INVNUM] => 19963
[BUTTONSOURCE] => WooThemes_Cart
[L_NAME0] => Don’t Be A Dick – Lapel Pin
[L_COST0] => 8.10
[L_QTY0] => 1
[L_SKU0] => CBDBAD-012020
[DISCOUNT] => 0.90
[TAXAMT] => 0.67
[ITEMAMT] => 8.10
[ORDERDESC] => Order 19963 on Shop at Matter
[FIRSTNAME] => Jeff
[LASTNAME] => Daigle
[STREET] => ****
[CITY] => Denver
[STATE] => CO
[COUNTRY] => US
[ZIP] => 80205
[SHIPTOFIRSTNAME] => Jeff
[SHIPTOLASTNAME] => Daigle
[SHIPTOSTREET] => ****
[SHIPTOCITY] => Denver
[SHIPTOSTATE] => CO
[SHIPTOCOUNTRY] => US
[SHIPTOZIP] => 80205
[ACCT] => ****
[EXPDATE] => ****
[CVV2] => ****
)08-07-2020 @ 14:28:13 – Parsed Response Array
(
[RESULT] => 0
[PNREF] => BG0P4AC06D70
[RESPMSG] => Approved
[AUTHCODE] => 111111
[AVSADDR] => Y
[AVSZIP] => Y
[CVV2MATCH] => Y
[PPREF] => 9W02430419445605V
[CORRELATIONID] => 436e38d9dc578
[IAVS] => N
)The page I need help with: [log in to see the link]
- The topic ‘PayPal 10413 Error’ is closed to new replies.