vvv/weixin-pay

weixinPay

Maintainers

Details

github.com/pudy520/wxpay

Source

Issues

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:1

pkg:composer/vvv/weixin-pay

v1.1 2021-11-19 05:07 UTC

This package is auto-updated.

Last update: 2025-11-19 13:18:25 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