Third party permissions

henz
New Community Member

Hello, this is my first time posting.

 

Im currently playing around in the sandbox, i have managed to request tokens properly and i have also made a login button according to the following:

 

https://developer.paypal.com/docs/integration/direct/identity/button-js-builder/ (based on my client id)

 

set the scope to the following: 

scope='openid https://uri.paypal.com/services/invoicing'

 

When i push the button, i login with a third party account, grant access.

 

All this works. But after this, the instructions end. When i try to create a draft on behalf of the third party email i get 401.:

{"name":"AUTHORIZATION_ERROR","message":"Authorization error occurred.","information_link":"https://developer.paypal.com/docs/api/invoicing/#errors","debug_id":"32fd46ef4ecf6"}

 

what am i missing here? do i need to provide other information rather than my bearer token? When i try to create a draft but with my client_id affiliated email address it works.

 

All help appriciated. Thanks

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.