IntuitDeveloper / OAuth2_PHP

PHP sample app for OAuth2
Apache License 2.0
37 stars 34 forks source link

I have Urgent problem, Can't get my access token at all!! #20

Open CactusTango opened 2 years ago

CactusTango commented 2 years ago

I'm implementing credit card charge of Quickbooks Payment API ok this's done but I get the access token through Curl manually, so I want to get it from authorization code to access token automatically with Curl PHP.

I replaced my credentials in the config.php but I still redirect to quickbooks api developer to sign in with my account which bothering the company so much!!!

Also I get this error when I try to get my access token I get this error and the image preview that the auth code in the url

Fatal error: Uncaught Exception: error setting certificate verify locations: CAfile: ./Certificate/cacert.pem CApath: none in C:\xampp\htdocs\roife_quickbooks\OAuth2_PHP-master\OAuth_2\Client.php:193 Stack trace: #0 C:\xampp\htdocs\roife_quickbooks\OAuth2_PHP-master\OAuth_2\Client.php(91): Client->executeRequest('https://oauth.p...', Array, Array, 'POST') #1 C:\xampp\htdocs\roife_quickbooks\OAuth2_PHP-master\OAuth_2\OAuth2PHPExample.php(39): Client->getAccessToken('https://oauth.p...', 'AB11662138803bz...', 'https://5917-41...', 'authorization_c...') #2 {main} thrown in C:\xampp\htdocs\roife_quickbooks\OAuth2_PHP-master\OAuth_2\Client.php on line 193

image