jundayw / laravel-payment
laravel payment provider
v0.1.0
2023-11-14 06:34 UTC
Requires
- php: >=7.2.0
- alipaysdk/easysdk: ^2.2
- wechatpay/wechatpay: ^1.4
README
命令行下, 执行 composer 命令安装:
composer require jundayw/laravel-render-provider
authentication package that is simple and enjoyable to use.
对象方法
$message = new PaymentRequest(); $message->setSubject('测试456'); $message->setAmount(0.01); $message->setOutTradeNo('' . time()); $message->setAttach([ 'id' => 1, ]); $message->setBuyerId('mhfhvf8808@sandbox.com'); $message->setBuyerId('2088722004475227'); $message->setAuthCode('130842561143513043'); return Payment::provider('wechat')->pay('wap', $message);