Migrated repository
Go to file
2017-08-11 16:02:25 +08:00
src 完成 支付宝 开发 2017-08-11 16:02:25 +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 完成 支付宝 开发 2017-08-11 14:48:17 +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' => '',
    ],
];
$config_biz = [
    'out_trade_no' => '',
    'total_amount' => '',
    'subject' => '',
];

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

LICENSE

MIT