ano*_*mys 1 javascript quickbooks intuit intuit-partner-platform
我们已根据以下链接实施了Intuit连接按钮功能:
它一直运行到最后但不是将控制权返回到父页面,而是在弹出窗口中打开应用程序.我真的不知道我在这里失踪了什么.以下是此功能的单元测试页面:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ipp="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<meta http-equiv="Cache-control" content="no-cache"/>
<title>Intuit Test Page</title>
<script src="https://js.appcenter.intuit.com/Content/IA/intuit.ipp.anywhere.js" type="text/javascript">
</script>
<script type="text/javascript">
intuit.ipp.anywhere.setup({
menuProxy: 'myserver.com/intuit/proxy',
grantUrl: 'myserver.com/intuit/connect'
});
</script></head><body>
<ipp:connectToIntuit></ipp:connectToIntuit>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
除服务器名称外,代码相同.如果你能提供一些意见,我真的很感激吗?
Intuit Anywhere的OAuth流程始终以弹出窗口打开.它是专门为此而设计的.
当他们点击按钮时弹出窗口将打开,他们将完成OAuth连接过程,并最终转发回您的应用程序.然后,您的应用程序应关闭弹出窗口,并刷新应用程序的父页面(以便在页面上显示蓝点菜单以显示它们已连接).