ReflectionException] Class PayPal\Api\PayoutSenderBatchHeader does not exist
error while running
php bin/magento setup:di:compile command
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
It happens when some class of other modules has been used in third modules and that module are not present in magento.
In your case
PayPal\Api\PayoutSenderBatchHeader class is used in somewhere in other module expect PayPal module.
You need to remove the use of PayPal class from other modules or install module of PayPal which contain
PayPal\Api\PayoutSenderBatchHeader Class in its file structure.
You can use
grep command to find the class
PayPal\Api\PayoutSenderBatchHeader in your module
grep -rr1 "PayPal\Api\PayoutSenderBatchHeader"
Hope it Helps.