【发布时间】:2018-01-03 08:21:47
【问题描述】:
我尝试使用示例应用程序https://github.com/IntuitDeveloper/OAuth2_PHP 工作。但我必须将它集成到我的 laravel 应用程序中。我如何在我的控制器中包含 php 文件。如何将代码从 php 更改为 laravel 控制器?我对此很陌生,因此将不胜感激。以及如何在我的 laravel 中使用 php-SDK?
我无法在刀片中包含这些文件。我试过了,但它不起作用
<?php
$configs = include('./quickbooksconfig.php');
?>
<script
type="text/javascript"
src="https://appcenter.intuit.com/Content/IA/intuit.ipp.anywhere-1.3.3.js">
</script>
<script>
var redirectUrl = '/employees/directory'
intuit.ipp.anywhere.setup({
grantUrl: redirectUrl,
datasources: {
quickbooks : true,
payments : true
},
paymentOptions:{
intuitReferred : true
}
});
</script>
【问题讨论】:
标签: php laravel quickbooks-online