intuit / oauth-jsclient

Intuit's NodeJS OAuth client provides a set of methods to make it easier to work with OAuth2.0 and Open ID
https://developer.intuit.com/
Apache License 2.0
120 stars 154 forks source link

Payment scope #96

Closed cwil423 closed 3 years ago

cwil423 commented 3 years ago

Why does this cause an error but if I remove the third scope it does not? const authURI = oauthClient.authorizeUri({ scope: [OAuthClient.scopes.Accounting, OAuthClient.scopes.OpenId, OAuthClient.scopes.Payment], state: 'testState', });

abisalehalliprasan commented 3 years ago

@cwil423 : Is the production QBO company that you are trying to connect Payments enabled?If so, you would need to have a Production QBO company with Payments enabled

However, If you are testing using a sandbox QBO company, Payments are enabled by default as described here