2017 © Pedro Peláez
 

yii2-extension yii2-paypal

The PayPal extension for the Yii2 framework based on marciocamello/yii2-paypal

image

kongoon/yii2-paypal

The PayPal extension for the Yii2 framework based on marciocamello/yii2-paypal

  • Monday, April 11, 2016
  • by kongoon
  • Repository
  • 1 Watchers
  • 2 Stars
  • 669 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 42 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

PayPal extension for the Yii2

PayPal payment extension for the Yii2., (*1)

Installation

Add to the composer.json file following section:, (*2)

php composer.phar require --prefer-dist kongoon/yii2-paypal "*"
"kongoon/yii2-paypal": "dev-master"

Add to to you Yii2 config file this part with component settings:, (*3)

'paypal'=> [
    'class'        => 'kongoon\yii2\paypal\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'                   => \kongoon\yii2\Paypal::MODE_SANDBOX,    // sandbox | live 
         'log.LogEnabled'         => YII_DEBUG ? 1 : 0,
         'log.FileName'           => '@runtime/logs/paypal.log',
         'log.LogLevel'           => \kongoon\yii2\Paypal::LOG_LEVEL_FINE,  // FINE | INFO | WARN | ERROR
    ]
],

How Use

private function pay() {
    Yii::$app->paypal->init();
    $apiContext = Yii::$app->paypal->getApiContext();

    // [..]

    $payment = new Payment();

    try {
        $payment->create($apiContext);
    } catch (Exception $ex) {
        echo PaypalError($e);
        exit(1);
    }
    $approvalUrl = $payment->getApprovalLink();
}

The Versions

11/04 2016

dev-master

9999999-dev

The PayPal extension for the Yii2 framework based on marciocamello/yii2-paypal

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 paypal

11/04 2016

v0.1.3

0.1.3.0

The PayPal extension for the Yii2 framework based on marciocamello/yii2-paypal

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 paypal

11/04 2016

v0.1.2

0.1.2.0

The PayPal extension for the Yii2 framework based on marciocamello/yii2-paypal

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 paypal

25/04 2015

dev-patch-2

dev-patch-2

The PayPal extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Marcio Camello

yii2 paypal

25/04 2015

dev-patch-1

dev-patch-1

The PayPal extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Marcio Camello

yii2 paypal

19/05 2014

dev-Development

dev-Development

The PayPal extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrey Klimenko

yii2 paypal

16/05 2014

v0.1.1

0.1.1.0

The PayPal extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrey Klimenko

yii2 paypal

16/05 2014

v0.1.0

0.1.0.0

The PayPal extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrey Klimenko

yii2 paypal