nlsoft / yii2_paypal
The PayPal extension for the Yii2 framework
dev-master
2016-09-26 08:45 UTC
Requires
- php: >=5.3.0
- ext-curl: *
- ext-json: *
- paypal/rest-api-sdk-php: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-15 03:34:03 UTC
README
PayPal extension for the Yii2 PayPal payment extension for the Yii2.
Installation Add to the composer.json file following section:
php composer.phar require --prefer-dist nlsoft/yii2-paypal "*" "nlsoft/yii2_paypal": "dev-master" Add to to you Yii2 config file this part with component settings:
'paypal'=> [
'class' => 'nlsoft\Paypal',
'clientId' => 'you_client_id',
'clientSecret' => 'you_client_secret',
'isProduction' => false,
// This is config file for the PayPal system
'config' => [
'http.ConnectionTimeOut' => 30,
'http.Retry' => 1,
'mode' => \nlsoft\Paypal::MODE_SANDBOX, // development (sandbox) or production (live) mode
'log.LogEnabled' => YII_DEBUG ? 1 : 0,
'log.FileName' => '@runtime/logs/paypal.log',
'log.LogLevel' => \nlsoft\Paypal::LOG_LEVEL_FINE,
]
],