Payum / PayumYiiExtension

Rich payment solutions for Yii framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
https://payum.forma-pro.com/
MIT License
12 stars 16 forks source link

composer install doesn't install Yii Extension itself #8

Closed alexandernst closed 10 years ago

alexandernst commented 10 years ago

I just realised that following this guide: http://payum.org/doc/0.10/PayumYiiExtension/installation I should end up with this content in the vendor folder:

composer
kriswallsmith
payum
    \core
    \paypal-<whatever I wrote in the composer.json file>
    \payum-yii-extension

Anyways, that last folder (payum-yii-extension) doesn't get downloaded. I tried changing the version of yii-extension in the composer.json file to 0.9.*@dev, but the result is the same.

This is the output:

[alexandernst@stupidbox 0s PayumYiiExtension]$ composer update payum/payum-yii-extension payum/paypal-express-checkout-nvp payum/paypal-ipn 
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing kriswallsmith/buzz (v0.10)
    Loading from cache

  - Installing payum/core (0.9.2)
    Loading from cache

  - Installing payum/paypal-express-checkout-nvp (0.9.0)
    Loading from cache

  - Installing payum/paypal-ipn (0.9.0)
    Loading from cache

payum/core suggests installing payum/paypal-pro-checkout-nvp (If you want to use paypal pro checkout)
payum/core suggests installing payum/paypal-rest (If you want to use paypal rest gateway)
payum/core suggests installing payum/authorize-net-aim (If you want to use Authorize.Net AIM payment gateway)
payum/core suggests installing payum/be2bill (If you want to use be2bill payment gateway)
payum/core suggests installing payum/payex (If you want to use payex payment gateway)
payum/core suggests installing payum/omnipay-bridge (If you want to use omnipay's gateways)
payum/core suggests installing doctrine/orm (If you want to store models to database using doctrin2 ORM)
payum/core suggests installing doctrine/mongodb-odm (If you want to store models to mongo doctrin2 ODM)
payum/core suggests installing zendframework/zend-db (If you want to store models to Zend Db ORM)
payum/core suggests installing symfony/routing (If you want to use TokenFactory from symfony's bridge)
payum/core suggests installing symfony/http-kernel (If you want to use HttpRequestVerifier from symfony's bridge)
payum/core suggests installing symfony/http-foundation (If you want to use HttpRequestVerifier or ResponseInteractiveRequest from symfony's bridge)
payum/core suggests installing monolog/monolog (In case you want to use logger)
Writing lock file
Generating autoload files

Any ideas?

makasim commented 10 years ago

could you post your composer.json file, I believe you dont added the extension there

alexandernst commented 10 years ago

Sorry for not posting this before, was AFK.

{
    "name": "payum/payum-yii-extension",
    "type": "yii-extension",
    "description": "Rich payment solutions for Yii framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more",
    "keywords": [
        "payment", 
        "paypal", 
        "be2bill", 
        "authorize.net", 
        "omnipay", 
        "paypal express checkout", 
        "paypal pro checkout", 
        "recurring payment", 
        "payex",
        "offline",
        "instant notification"
    ],
    "homepage": "http://payum.forma-dev.com",
    "license": "MIT",
    "authors": [
        {
            "name": "Lagoda Pavel",
            "email": "plagoda@webdevs.com"
        },
        {
            "name": "Kotlyar Maksim",
            "email": "kotlyar.maksim@gmail.com"
        },
        {
            "name":     "Payum project",
            "homepage": "http://payum.forma-dev.com/"
        },
        {
            "name":     "Community contributions",
            "homepage": "https://github.com/Payum/Payum/contributors"
        }
    ],
    "require": {
        "php": ">=5.3.2",
        "payum/core": "~0.9.0",
        "payum/payum-yii-extension": "0.9.*@dev",
        "payum/paypal-express-checkout-nvp": "@stable",
        "payum/paypal-ipn": "@stable"
    },
    "suggest": {
        "yiisoft/yii": "If you plan to use this extension outside of a Yii project",
        "payum/paypal-express-checkout-nvp": "If you want to use paypal express checkout nvp gateway",
        "payum/paypal-pro-checkout-nvp": "If you want to use paypal pro checkout nvp gateway",
        "payum/authorize-net-aim": "If you want to use authorize.net gateway",
        "payum/be2bill": "If you want to use be2bill gateway",
        "payum/payex": "If you want to use payex gateway",
        "payum/omnipay-bridge": "If you want to use omnipay provided gateways"
    },
    "autoload": {
        "psr-0": { "Payum\\YiiExtension": "" }
    },
    "extra": {
        "branch-alias": {
            "dev-master": "0.9-dev"
        }
    },
    "config": {
        "bin-dir": "bin"
    }
}
makasim commented 10 years ago

@alexandernst As far as I can see you posted the composer.json of the extension but I am talking about the one from your project root folder.

alexandernst commented 10 years ago

@makasim Oh... Now I see where was my error. I was trying to make the Yii extension itself install the PayPal extensions as it's own require libs, but I should have created a new composer.json file. Sorry, missread the instructions. Now it's working :+1: