I just upgrade from 1.8, where this used to work. Now when a cart discount is applied to an order, Magento 22.214.171.124 shows the right prices, taxes and discount in the order, but it passes different values to Paypal which results in a different payment and an IPN of suspected fraud.
This is a shop with VAT=22%.
The tax configuration:
Order with right amounts but Paypal charges a different amount 76.32€ vs 79.92€ and Magento reports a suspected fraud
and this are the values that were passed by Magento (omitting the non relevant ones):
[url] => https://api-3t.paypal.com/nvp [BMCreateButton] => Array ( [METHOD] => BMCreateButton [BUTTONCODE] => TOKEN [BUTTONTYPE] => PAYMENT [L_BUTTONVAR0] => subtotal=81.89 [L_BUTTONVAR1] => tax=14.41 [L_BUTTONVAR2] => shipping=0.00 [L_BUTTONVAR7] => discount=19.98 [VERSION] => 72.0 [BUTTONSOURCE] => Magento_Cart_Community )
Can you please help to fix this?