国通支付查询1级mcc
This commit is contained in:
parent
e954442a70
commit
f766e185b5
@ -79,6 +79,23 @@ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwRUsPpbQPhBWrxFhG00k9VBgnHc7dCZyTQYI
|
||||
$result = $this->curl_get($u);
|
||||
var_dump($result);
|
||||
}
|
||||
// 获取二级mcc
|
||||
public function checkSecondMcc(){
|
||||
$data = [
|
||||
'agetId'=>"FWH000015822",
|
||||
'busMccId'=>"",
|
||||
'version'=>"1.0.0"
|
||||
];
|
||||
$d =$this->ASCII($data);
|
||||
$sign = $this->sign($d,$this->publicKey);
|
||||
$b = $d."&sign=".$sign;
|
||||
var_dump($b);
|
||||
$url = "http://jghwucyshtgjcbrnxgwe.gtxygroup.com/yyfsevr/addCust/getSecondMcc";
|
||||
$u = $url."?".$b;
|
||||
var_dump($u);
|
||||
$result = $this->curl_get($u);
|
||||
var_dump($result);
|
||||
}
|
||||
// 异步支付回调
|
||||
public function payNotify(){
|
||||
|
||||
@ -148,7 +165,7 @@ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwRUsPpbQPhBWrxFhG00k9VBgnHc7dCZyTQYI
|
||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); // 使用自动跳转
|
||||
curl_setopt($curl, CURLOPT_AUTOREFERER, 1); // 自动设置Referer
|
||||
curl_setopt($curl, CURLOPT_HEADER, 0); // 显示返回的Header区域内容
|
||||
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
|
||||
// curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); // 获取的信息以文件流的形式返回
|
||||
//执行curl
|
||||
$output = curl_exec($curl);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user