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"
        }
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。
  • ¥20 CST怎么把天线放在座椅环境中并仿真
  • ¥15 任务A:大数据平台搭建(容器环境)怎么做呢?
  • ¥15 YOLOv8obb获取边框坐标时报错AttributeError: 'NoneType' object has no attribute 'xywhr'