I need to integrate PayPal with my Android application. Payment tests using ENVIRONMENT_NO_NETWORK work fine. However, when I use \"production\" I get \"Login Faile
Apparently there is a bug in PayPal login window. When a password field in the PayPal login contains "&" character, INTERNAL_SERVER_ERROR message is shown (does not matter if credentials are correct or not):
02-09 14:34:01.171: E/RequestError(6618): 500 http response received. Response not parsable.
02-09 14:34:01.171: E/PayPalService(6618): INTERNAL_SERVER_ERROR
02-09 14:34:01.341: E/LoginActivity(6618): login error: INTERNAL_SERVER_ERROR
If there is no "&" character in password and credentials are not correct, a valid error message is shown in the log:
02-09 14:33:48.741: E/RequestError(6618): , Mobile Login failed.
02-09 14:33:48.746: E/PayPalService(6618): 10803
02-09 14:33:49.206: E/LoginActivity(6618): login error: 10803
My password contained "&" character. When I changed my password not to contain it, I was able to login.
Follow full story on PayPal Android SDK GitHub page.