Skip to content

bootell/Yii2-payment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Payment

Yii2 alipay & wxpay

支付宝即时到账,微信扫码支付在Yii2下的封装

Configuration

return [
    'components' => [
        'payment' => [
            'class' => 'bootell\Payment',
            'alipay' => [
                // 支付宝认证
                'app_id' => '',
                'auth_redirect' => '',
            
                // 支付宝支付
                'partner' => '',
                'seller_id' => '',
                'seller_email' => '',
                'key' => '',
                'notify_url' => '',
                'return_url' => '',
                'private_key_path' => '',
                'alipay_pubic_key' => '',
            ],
            'wxpay' => [
                'appid' => '',
                'mch_id' => '',
                'key' => '',
                'secret' => '',
            ]
        ],
    ],
];

Usage

$alipay = Yii::$app->payment->alipay()->createPayment($order);
$wxpay = Yii::$app->payment->wxpay()->createPayment($order);

About

Yii2 alipay & wxpay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages