in my case, I removed some of the initialOptions parameters, and then it worked. I think that PayPal docs and example project is not the updated one anymore