Gift wrapping charges during PayPal payment

If you want to add a gift wrapping option for your product and pay with PayPal, you will see in the payment tab that the subtotal price is different between Paypal and the PrestaShop cart:


This is an incompatibility issue between PayPal and PrestaShop, as PrestaShop does not take into account the wrapping costs in the subtotal price calculations while it is taken into account on the PayPal side.

Unfortunately, it is not possible to correct it at the code level, and in this case, the module must create a specific product for this use, which will be added to the cart automatically with the main product, and which will replace the price of gift wrapping.