Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Call to undefined method InvalidArgumentException::getData() #472
The problem there is, that you catch generic exceptions, but the getData is only defined on PayPalConnectionException.
Maybe getMessage would be better in this case.