bryglen/yii2-omnipay

thephpleague/omnipay for Yii 2

Installs: 6 614

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 1

Forks: 5

Open Issues: 0

Type:yii2-extension

1.0.0 2015-05-28 14:01 UTC

This package is not auto-updated.

Last update: 2024-12-11 10:33:02 UTC


README

Yii 2 use omni pay based on https://github.com/thephpleague/omnipay

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bryglen/yii2-omnipay "1.0.0"

or add

"bryglen/yii2-omnipay": "1.0.0"

to the require section of your composer.json file.

in your main.php your configuration would look like this

'components' => [
    'stripe' => [
        'class' => 'bryglen\omnipay\OmniPayComponent',
        'name' => 'Stripe',
        // optional parameters
        //'testMode' => true,
        //'currency' => 'your_currency'
        'parameters' => [
            'apiKey' => 'your_api_key'
        ]
    ]
]