So the error you are getting is :
Security errorSecurity header is not valid10002Error2.201093451
This error is returned from paypal for a few reasons:
1) you have not excepted the Billing Agreement after requesting API credentials
2) You requested live API Credentials, but are using the sand box for testing.
3) You requested Sandbox credentials but are using the live server.