vvv / weixin-pay
weixinPay
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:1
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2025-05-19 12:22:20 UTC
README
微信App支付
运行环境
- php >= 7.0
- composer
安装
$ composer require vvv/weixin-pay
使用
$wexin = new WxPay($appid, $mch_id, $api_key);
$params = [
'total_fee' => 1, //单位分
'out_trade_no' => time(),
'body' => 'subject-测试',
'notify_url' => '回调地址',
];
return $wexin->wxpayandroid($params);
//异步回调
return $wexin->notify();
License
MIT