发起支付:
$a = (new WeChatPay\Pay())->PayMicro(“设置商品或支付单简要描述”, “设置商品名称明细列表”, json_encode([‘aaa’ => 1, ‘bbb’ => 1]), time() . ‘1’, 1, ‘http://test.imoecg.com/Notify/WeChatPay’, ‘1212122’);
$objCode = new QRcode();
$objCode->png($a[‘code_url’]);
$strImgBase64 = imageToBase64(dirname(dirname(dirname(__DIR__))) . ‘/public’ . $objCode->getPath());
echo ‘<img src=”‘ . $strImgBase64 . ‘”/>’;
unlink(dirname(dirname(dirname(__DIR__))) . ‘/public’ . $objCode->getPath());
扩展库地址
https://gitee.com/secondar/we-chat-pay
声明:
本文采用
BY-NC-SA
协议进行授权,如无注明均为原创,转载请注明转自
一颗大萝北
本文地址: TP5X~6X微信支付
本文地址: TP5X~6X微信支付