Consolibyte Quickbooks连接问题

问题描述 投票:0回答:1

我正在尝试从Consolibyte“ docs / partner_platform / example_app_ipp_v3 / index.php”文件将我的网站(在开发人员模式下,所以是Sandbox True,非https)连接到Intuit,但是我一直收到以下错误消息:

嗯,连接有问题。抱歉,该应用没有连接。请稍后重试,或与客户支持联系以寻求帮助。

查看错误详细信息(适用于开发人员)redirect_uri查询参数值无效。确保它在“重定向URI”部分中列出在您应用的“键”标签上并完全匹配。点击这里学习有关redirect_uri查询参数的更多信息。

我已在此应用程序的开发人员帐户中将重定向Uri设置为Consolibyte config.php(docs / partner_platform / example_app_ipp_v3 / success.php)中的相同返回URL,但仍无法正常工作。

我做错什么了吗?我正确地遵循了快速入门指南中的所有内容。

config.php代码:

$oauth_client_id = '***';
$oauth_client_secret = '***';

// If you're using DEVELOPMENT TOKENS, you MUST USE SANDBOX MODE!!!  If you're in PRODUCTION, then DO NOT use sandbox.
$sandbox = true;     // When you're using development tokens
//$sandbox = false;    // When you're using production tokens

// This is the URL of your OAuth auth handler page
$quickbooks_oauth_url = 'http://www.***.com/quickbooks/docs/partner_platform/example_app_ipp_v3/oauth.php';

// This is the URL to forward the user to after they have connected to IPP/IDS via OAuth
$quickbooks_success_url = 'http://www.***.com/quickbooks/docs/partner_platform/example_app_ipp_v3/success.php';

// This is the menu URL script
$quickbooks_menu_url = 'http://www.***.com/quickbooks/docs/partner_platform/example_app_ipp_v3/menu.php';

// This is a database connection string that will be used to store the OAuth credentials
// $dsn = 'pgsql://username:password@hostname/database';
// $dsn = 'mysql://username:password@hostname/database';
$dsn = 'mysqli://***_intuit:***@localhost/***_quickbooks';

// You should set this to an encryption key specific to your app
$encryption_key = '***';

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

// The tenant that user is accessing within your own app
$the_tenant = 12345;
php quickbooks
1个回答
0
投票

您的重定向URL不匹配。

  • 在Intuit的控制面板中,它以success.php结尾。
  • 在您的配置中,它以oauth.php结尾。

两个URL 必须完全匹配

[另外,请确保您正在使用https://github.com/consolibyte/quickbooks-php中的最新代码-如果您正在使用最新的代码,则应具有config_oauthv2.php文件,而不仅仅是config.php

© www.soinside.com 2019 - 2024. All rights reserved.