($body));
return $this->curl_post($this->getPayUrl('h5'),json_encode($body),$headers);
}...($body));
return $this->curl_post($this->refundApi,json_encode($body),$headers);
}
/**...($ch, CURLOPT_POST, 1);
// 把post的变量加上
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);...$output = curl_exec($ch);
curl_close($ch);
return $output;
}
//get请求
public...简单的写了个支付类,没有接通业务,其余的请自行补充
未经允许不得转载:肥猫博客 » php+微信支付V3(api形式直接对接)