2017 © Pedro Peláez
 

library paypal-yii2

Makes paypal for yii2 much easier

image

achertovsky/paypal-yii2

Makes paypal for yii2 much easier

  • Thursday, October 12, 2017
  • by achertovsky
  • Repository
  • 1 Watchers
  • 5 Stars
  • 505 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Paypal-yii2

Description

Module for easy yii2 payments, (*1)

Features:
Express payment
Subscription (via express payment), (*2)

I hope it will be useful for you., (*3)

Installing

The preferred way to install this extension is through composer., (*4)

{
    "require": {
        "achertovsky/paypal-yii2": "@dev"
    }
}

or, (*5)

    composer require achertovsky/paypal-yii2 "@dev"

update your db schema, (*6)

php yii migrate/up --migrationPath=@vendor/achertovsky/paypal-yii2/migrations

Usage

Currently application is in sandbox. You can edit values in DB or using GUI in backend (if you have backend configured), (*7)

to start using it - please, add it to your modules section, (*8)

you can use your attribute names., (*9)

fox example:, (*10)

'payment' => [
    'class' => 'achertovsky\paypal\Module',
],

EXPRESS PAYMENT HOW TO
SUBSCRIPTION VIA EXPRESS PAYMENT HOW TO, (*11)

Configuration variables listing, (*12)

    //here is arrays like for Url::toRoute()
    public $ipnUrl = ['/payment/payment/payment-notification'];
    public $expressSuccessUrl = ['/payment/payment/express-payment'];
    public $subscriptionExpressSuccessUrl = ['/payment/payment/subscription-express-confirm'];
    public $cancelUrl = ['/', '#' => 'cancel'];
    //default currency
    public $currency = 'USD';
    //models for this module
    public $modelMap = [
        'PaypalExpressPayment' => 'achertovsky\paypal\models\PaypalExpressPayment',
        'PaypalSubscriptionExpress' => 'achertovsky\paypal\models\PaypalSubscriptionExpress',
    ];
    //paypal express checkout version
    public $ECVersion = '104.0';
    //boolean which indicates is express payment is enabled in app
    public $enableExpressPayment = true;
    //boolean which indicates is subscription flow is enabled in app
    public $enableSubscriptionExpress = true;

    //getter to receive users name. it must be assigned to your option
    public $subscriptionUsernameGetter = 'username';
    //defines if user receive notifications via email when subscription status changed
    public $subscriptionEmailNotification = false;

The Versions

12/10 2017

dev-master

9999999-dev

Makes paypal for yii2 much easier

  Sources   Download

The Requires