fastadmin 微信支付宝整合插件1.3.6 微信退款

$payData = [
            'out_trade_no' => $order->order_sn,
            'out_refund_no' => time(),
            'total_fee' => $order->pay_price * 100,
            'refund_fee' => $order->pay_price * 100,
            'refund_desc' => $remark,
        ];
$config = Service::getConfig();
$result = Pay::wechat($config)->refund($payData);

 引入

use addons\epay\library\Service;
use Yansongda\Pay\Pay;

 

posted @ 2024-08-22 16:32  张志健  阅读(114)  评论(0编辑  收藏  举报