简体   繁体   English

包括PayPal SDK PHP

[英]Include PayPal SDK PHP

I am trying to use the paypal php sdk that I downloaded from github at this link: https://github.com/paypal/PayPal-PHP-SDK . 我正在尝试使用从github上通过以下链接下载的paypal php sdk: https : //github.com/paypal/PayPal-PHP-SDK I saved the project in the correct directory on my web server. 我将项目保存在Web服务器上的正确目录中。 What file do I need to include so that I can use the libraries? 我需要包括什么文件才能使用这些库? Composer is not installed on my hosting, so I would prefer to just include the library with the require statement. Composer尚未安装在我的主机上,因此我宁愿仅在require语句中包含该库。 The API docs are located here: https://developer.paypal.com/docs/api/ API文档位于此处: https : //developer.paypal.com/docs/api/

Thanks in advance! 提前致谢!

There would be no setup files required. 不需要安装文件。 All the libararies are included in your downloaded SDK. 所有库都包含在您下载的SDK中。

Run the PayPal-PHP-SDK/paypal/rest-api-sdk-php/sample/index.php from your project root directory. 从项目根目录运行PayPal-PHP-SDK/paypal/rest-api-sdk-php/sample/index.php

https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/README.md https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/README.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM