我尝试使用示例应用程序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>
composer require quickbooks/v3-php-sdk
composer update
然后,SDK中的类将可用于您的应用程序,就像其他任何编写器包一样。