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
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