New to the community? Welcome! Please read our Community Rules and Guidelines
If you want to report illegal content under the EU Digital Services Act, please do so here
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