dev-master
9999999-devMakes paypal for yii2 much easier
The Requires
- php >=5.4.0
- yiisoft/yii2 >=2.0.4
- paypal/merchant-sdk-php 2.*
Makes paypal for yii2 much easier
Module for easy yii2 payments, (*1)
Features:
Express payment
Subscription (via express payment), (*2)
I hope it will be useful for you., (*3)
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
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;
Makes paypal for yii2 much easier