«PayPal gateway has rejected request. The totals of the cart item amounts do not match order amounts»

Hello,

When i am added custom discount to the total on cart i got below error.

PayPal gateway has rejected request. The totals of the cart item amounts do not match order amounts (#10413: Transaction refused because of an invalid argument. See additional error messages for details).

there is solution for same error in Magento1. any idea about Magento2. ?

See how is the «Transfer Cart Line Items» PayPal option implemented.
You can disable this option or change it behaviour.

any event in magento2 same as paypal_prepare_line_items ???

paypal_prepare_line_items is magento1 event.

disable the option is not solution.

i have disabled it but issue is still there.

same for me