我如何使用quickbooks php-sdk在laravel中在线连接到quickbooks

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

我尝试使用示例应用程序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
1个回答
0
投票

composer require quickbooks/v3-php-sdk

composer update

然后,SDK中的类将可用于您的应用程序,就像其他任何编写器包一样。

更多信息可以在https://github.com/intuit/QuickBooks-V3-PHP-SDK找到

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