定制 achertovsky/paypal-yii2 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

achertovsky/paypal-yii2

Composer 安装命令:

composer require achertovsky/paypal-yii2

包简介

Makes paypal for yii2 much easier

README 文档

README

Description

Module for easy yii2 payments

Features:
Express payment
Subscription (via express payment)

I hope it will be useful for you.

Installing

The preferred way to install this extension is through composer.

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

or

	composer require achertovsky/paypal-yii2 "@dev"

update your db schema

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)

to start using it - please, add it to your modules section

you can use your attribute names.

fox example:

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

EXPRESS PAYMENT HOW TO
SUBSCRIPTION VIA EXPRESS PAYMENT HOW TO

Configuration variables listing

	//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;

统计信息

  • 总下载量: 1.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-10-16