News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Paypal Error - TAX_TOTAL_MISMATCH

Started by audiorock, May 13, 2024, 19:49:15 PM

Previous topic - Next topic

audiorock

Hi,

Joomla 4.4.4, VirtueMart 4.2.10 11010, PHP 8.1.27


I'm having a problem with PayPal payment. Confirming the payment the following error is released in FRONTEND (this active debugging on the front-end side is terrible for the customer who purchases!!!)
1 vmdebug createOrder no OrderId Var0:
stdClass Object
(
    [name] => UNPROCESSABLE_ENTITY
    [details] => Array
        (
            [0] => stdClass Object
                (
                    [field] => /purchase_units/@reference_id=='default'/amount/breakdown/tax_total/value
                    [value] => 69.78
                    [issue] => TAX_TOTAL_MISMATCH
                    [description] => Should equal sum of (tax * quantity) across all items for a given purchase_unit
                )

        )

    [message] => The requested action could not be performed, semantically incorrect, or failed business validation.
    [debug_id] => a2cd68df1e418
    [links] => Array
        (
            [0] => stdClass Object
                (
                    [href] => https://developer.paypal.com/docs/api/orders/v2/#error-TAX_TOTAL_MISMATCH
                    [rel] => information_link
                    [method] => GET
                )

        )

)
2 vmdebug Created order here
4 vmdebug vmInfo: Checkout blocked by Payment plugin
5 vmdebug Confirmed order returned false
7 vmdebug findCorrectItemidBySQL use as like en-GB `link` like "index.php?option=com_virtuemart&view=cart%"

Incorrect data has been entered


Can you help me, please?

audiorock


AH

Get the latest version of VM and the plugins - released a few days ago
Regards
A

Joomla 4.4.5
php 8.1

audiorock

#3
I have already installed the latest version of the VM plugin (4.2.10 11010) and the problem persists!

the problem only occurs when I add multiples of the same item to my cart.



Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

audiorock

Hi,

we use VAT set at 22% (operator VATtax +%) and discounts in some products (operator DBTax -%)


audiorock

Hi,
if it can be useful, with parameter "with Breakdown" in OFF, the problem not appears!