试图以沙盒模式在线授权Quickbooks的致命错误(Consolibyte PHP框架)

时间:2019-09-13 14:31:06

标签: php oauth-2.0 quickbooks quickbooks-online

我正在尝试使用位于

的consolibyte授权按钮,通过Oauthv2.0在线授权的Quickbooks上与我的应用程序手动连接
https://www.example.com/quickbooks-php/partner_platform/example_app_ipp_v3/quickbooks-php/partner_platform/example_app_ipp_v3/index.php

当我尝试使用安全域上的consolibyte quickbooks php框架以沙盒模式在线授权Quickbook时,在oauth.php中收到以下致命错误消息。

我确保我使用的开发ID /密码正确,并且Oauth 2.0已打开并保存在我的应用程序的Intuit开发人员设置中,但看不到导致此错误的原因。

错误消息:

Fatal error: Uncaught Error: Call to undefined function mcrypt_module_open() in ---quickbooks-php/QuickBooks/Encryption/Aes.php:34 
Stack trace: #0 ---quickbooks-php/QuickBooks/Driver.php
(1433): QuickBooks_Encryption_AES::encrypt('XXXXXXXX', 'a:2:{i:0;s:778:...')

\#1 ---quickbooks-php/QuickBooks/IPP/IntuitAnywhere.php
(489): QuickBooks_Driver->oauthAccessWriteV2('XXXXXXXX', 'XXXXXXXXXXXXX...', 'XXXXXXXXXXXX...', XXXXXXXXXXXX...', '2019-09-12 16:1...', '2019-12-22 15:1...', 'XXXXXXXXXXX') 

\#2 ---quickbooks-php/docs/partner_platform/example_app_ipp_v3/oauth.php
(25): QuickBooks_IPP_IntuitAnywhere->handle(XXXXX) 

\#3 {main} thrown in ---quickbooks-php/QuickBooks/Encryption/Aes.php on line 34

配置文件的顶部:

error_reporting(E_ALL);
ini_set('display_errors', 1);

// Require the library code
require_once dirname(__FILE__) . '/../../../QuickBooks.php';

//development id and secret
$oauth_client_id = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$oauth_client_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';

$sandbox = true;     // When you're using development tokens

$quickbooks_oauth_url = 'https://www.example.com/quickbooks-php/docs/partner_platform/example_app_ipp_v3/oauth.php';

$quickbooks_success_url = 'https://www.example.com/quickbooks-php/partner_platform/example_app_ipp_v3/success.php';

$quickbooks_menu_url = 'https://www.example.com/quickbooks-php/partner_platform/example_app_ipp_v3/example_app_ipp_v3/menu.php';  

$dsn = 'mysqli://db_username:XXXXXXXXXX@ipaddress/db_name';    

// You should set this to an encryption key specific to your app
$encryption_key = 'xxxxxxxx';  //default value used here 

// Scope required
$scope = 'com.intuit.quickbooks.accounting ';

0 个答案:

没有答案