The error is displayed as follows:
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).
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Go to Admin Panel > Store > Configuration > Sales Payment Method > Choose PayPal (existing PayPal method which enable in fronted for example Payments Standard)
Note: All above filed should be valid credentials.