public $data = null; /** * 退款 * @param int $orderid 商户订单号 * @param float $totalAmount 订单金额 * @return string */ public function doRefund($orderid, $totalAmount) { $mchid = '微信商户号'; $appid = 'APPID'; $apiKey = 'API密钥'; $orderNo = '商户订单号'; // 必填 $wxOrderNo = ''; //微信订单号 不填 $totalFee = $totalAmount; //订单金额,单位:元 $refundFee = $totalAmount; //退款金额,单位:元 $
SK
Devil in My Mind.