[英]When I click on connect to quickbooks, the resulting pop up window has a blank session. How can I fix this?
I'm using QuickBooks PHP DevKit from consolibyte. 我正在使用consolibyte的QuickBooks PHP DevKit。 I was unable to locate the version number, but it was a recent nightly build.
我无法找到版本号,但这是一个最近的夜间版本。 I am attempting to connect to a QuickBooks Online installation using the sample files in docs/partner_platform/example_app_ipp_v3/ as a base.
我正在尝试使用docs / partner_platform / example_app_ipp_v3 /中的示例文件连接到QuickBooks Online安装。
The tenant_id
for my application is stored in the session. 我的应用程序的
tenant_id
存储在会话中。 When I click on the 'Connect to Quickbooks' button, it brings up oauth.php
in a new window. 当我单击“连接到Quickbooks”按钮时,它将在新窗口中弹出
oauth.php
。 The tenant_id
is always blank because the entire session is missing, despite the session_start();
tenant_id
始终为空,因为尽管session_start();
整个会话丢失了session_start();
that I've added to oauth.php
. 我已经添加到
oauth.php
。
How can I get the session variable to show up? 如何获取会话变量? If the
tenant_id
needs to be added to the url, where do I add it? 如果
tenant_id
需要添加到URL,我应该在哪里添加它? I don't see any way to modify the behavior of clicking on the <ipp:connectToIntuit></ipp:connectToIntuit>
button. 我没有任何方法可以修改点击
<ipp:connectToIntuit></ipp:connectToIntuit>
按钮的行为。
I finally figured out what was going on. 我终于知道发生了什么事。 In the config file, I had
$quickbooks_oauth_url="https://myserver.com/oauth.php"
instead of "https://www.myserver.com/oauth.php"
. 在配置文件中,我有
$quickbooks_oauth_url="https://myserver.com/oauth.php"
而不是"https://www.myserver.com/oauth.php"
。
Since I was coming from https://www.myserver.com
, it was treating https://myserver.com/oauth.php
as a different website with a different session. 由于我来自
https://www.myserver.com
,因此将https://myserver.com/oauth.php
视为具有不同会话的其他网站。 Now that I've added the www
to the config file, it's working as expected. 现在,我已经将
www
添加到配置文件中,它可以按预期工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.