douli6605 2014-11-27 18:41 采纳率: 100%
浏览 83
已采纳

在Paypal上使用Merchant SDK for Express Checkout API的作曲家问题

I want to integrate a method from which a guest also can do payments on my site. So, i am implementing this SDK of paypal. It is required to install the compser and run it for dependencies. So, i ran this command to install composer.phar file inside samples folder

curl -sS https://getcomposer.org/installer | php -- --install-dir=/var/www/html/app/paypaltest/samples

then to install composer i ran this command:

php composer.phar install

But it is showing error as

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.

Not sure why i am getting error of version 1.0.0 when i explicitly defining the version number i.e v3.8.107 This is the composer.json file which i am using. Can anyone help me know what is the issue and why can't i install the composer correctly. Am i missing any thing?

{
"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/"
    }
}
}
  • 写回答

1条回答 默认 最新

  • dongzhizhai4070 2014-11-27 18:53
    关注

    Try just the following in your composer.json:

    {
        "require": {
            "paypal/merchant-sdk-php": "v3.8.107"
        }
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型