overlu/mini-pay

Mini Payment Package

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

v1.1.1 2022-01-05 08:08 UTC

This package is auto-updated.

Last update: 2022-06-05 09:12:50 UTC


README

$ composer require overlu/mini-pay

添加 service provider

MiniPay\PayServiceProvider::class

配置文件

$ php bin/artisan vendor:publish --provider="MiniPay\PayServiceProvider"

使用方法

支付宝

use MiniPay\Facades\Pay;

$order = [
    'out_trade_no' => time(),
    'total_amount' => '1',
    'subject' => 'test subject - 测试',
];

return Pay::alipay()->web($order);/???

微信

use Pay;

$order = [
    'out_trade_no' => time(),
    'body' => 'subject-测试',
    'total_fee'      => '1',
    'openid' => 'onkVf1FjWS5SBIixxxxxxxxx',
];

$result = Pay::wechat()->mp($order);

License

MIT

感谢 yansongda/pay 提供了优秀的支付扩展 具体使用说明请传送至 https://github.com/yansongda/pay