![](/img/trans.png)
[英]installing Merchant SDK for Express Checkout API on Paypal
[英]composer issue with Merchant SDK for Express Checkout API on Paypal
我想集成一種方法,訪客也可以從該方法在我的網站上付款。 因此,我正在實現這個貝寶SDK。 需要安裝編譯器並運行它的依賴關系。 因此,我運行了此命令以在示例文件夾中安裝composer.phar文件
curl -sS https://getcomposer.org/installer | php -- --install-dir=/var/www/html/app/paypaltest/samples
然后要安裝作曲家,我運行了以下命令:
php composer.phar install
但是它顯示錯誤為
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package paypal/merchant-sdk-php 1.0.0 could not be found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
不知道為什么當我明確定義版本號即v3.8.107
時會出現版本1.0.0的錯誤,這是我正在使用的composer.json
文件。 誰能幫助我知道問題出在哪里,為什么我不能正確安裝作曲家。 我有什么想念的嗎?
{
"name": "paypal/merchant-sdk-php",
"description": "PayPal Merchant SDK for PHP",
"keywords": ["paypal", "php", "sdk"],
"homepage": "https://developer.paypal.com",
"license": "Apache2",
"authors": [
{
"name": "PayPal",
"homepage": "https://github.com/paypal/merchant-sdk-php/contributors"
}
],
"require": {
"paypal/merchant-sdk-php":"v3.8.107"
},
"autoload": {
"psr-0": {
"PayPal\\Service": "lib/",
"PayPal\\CoreComponentTypes": "lib/",
"PayPal\\EBLBaseComponents": "lib/",
"PayPal\\EnhancedDataTypes": "lib/",
"PayPal\\PayPalAPI": "lib/"
}
}
}
在您的composer.json
嘗試以下操作:
{
"require": {
"paypal/merchant-sdk-php": "v3.8.107"
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.