Hello,
I make this changes but doesn't work. For this reason I writte again the original code waitting to find a solution. Now I'm sure that the problem aren't the taxes of shipping cost, because if I don't use discount couponts the amount in PayPal is right. Certainly the amount of shipping taxes don't appears in the PayPal receipt, but the total amount is correct and include it. Really the problem beguin when they are coupons in the order. (I have the same problem if the coupons are the standar coupons of VirtueMart.)
This is the error message that we received from PayPal:
During a paypal transaction on your site the received amount didn't match the order total.
Order ID: xxxx.
Order Number: 1xx_xxxxxxxxxx.
The amount received was: 49.92 EUR.
It should be: 52.85 EUR.
Thanks for your help one more time
I make this changes but doesn't work. For this reason I writte again the original code waitting to find a solution. Now I'm sure that the problem aren't the taxes of shipping cost, because if I don't use discount couponts the amount in PayPal is right. Certainly the amount of shipping taxes don't appears in the PayPal receipt, but the total amount is correct and include it. Really the problem beguin when they are coupons in the order. (I have the same problem if the coupons are the standar coupons of VirtueMart.)
This is the error message that we received from PayPal:
During a paypal transaction on your site the received amount didn't match the order total.
Order ID: xxxx.
Order Number: 1xx_xxxxxxxxxx.
The amount received was: 49.92 EUR.
It should be: 52.85 EUR.
Thanks for your help one more time