I am trying to set up permissions so that when clients want to use my PayPal integration service, I take them through the process of giving my software permission to make express checkout payments on their behalf.
So far, I have followed these steps (I am using the PayPal permissions SDK for .Net):
- Use requestPermissions to add the "EXPRESS_CHECKOUT" permission to return the access token.
- Use getAccessToken (passing the token and verification code) to obtain the token secret
- I then store the token and token secret for future payments.
- I attempt to test a payment using the sandbox environment using the ProfileFactory.createPermissionAPIProfile() and generating the signature using "com.paypal.sdk.core.OauthSignature.getAuthHeader". One thing I am not completely sure of here is what is passed as the API URL, I am passing "https://api.sandbox.paypal.com/2.0/"
Now, when I do this and call "SetExpressCheckout", I get an error message saying I don't have permission.
So, I wanted to debug this to test what permissions I have, so I call GetPermissions passing the token but the response object is null? This is really odd, I would expect an error if there was a problem, I cannot see any reason why a null value is returned?
Anyone can help point me in the right direction? Thanks in advance.