Migrated repository
Go to file
yansongda 3ab13fa19f i
2017-08-11 11:36:16 +08:00
src i 2017-08-11 11:36:16 +08:00
.gitignore i 2017-08-10 09:06:42 +08:00
composer.json i 2017-08-10 09:06:42 +08:00
composer.lock i 2017-08-10 09:06:42 +08:00
LICENSE i 2017-08-10 09:06:42 +08:00
README.md i 2017-08-10 12:18:55 +08:00

Pay

使用方法

1、通过 composer 加载

composer required yansongda/pay

2、在代码中使用

use Yansongda\Pay\Pay;

$config = [
    'alipay' => [
        'app_id' => '',
        'notify' => '',
        'return' => '',
        'ali_public_key' => '',
        'private_key' => '',
    ],
];
$biz = [
    'out_trade_no' => '',
    'total_amount' => '',
    'subject' => '',
];

$pay = new Pay($config);
return $pay->dirver('alipay')->gateway('web')->pay($biz);

LICENSE

MIT