更新回调验证
This commit is contained in:
parent
153129b322
commit
11e23da50f
|
|
@ -62,16 +62,18 @@ class HfpayController extends PaymentController
|
||||||
$verify_result = $this->get_RSA_SignResult($josn['sign'],$josn);
|
$verify_result = $this->get_RSA_SignResult($josn['sign'],$josn);
|
||||||
if($verify_result){
|
if($verify_result){
|
||||||
$resp_data=$this->jsonData;
|
$resp_data=$this->jsonData;
|
||||||
$this->pay_type_id = BasePayType::where('code','=',$resp_data['trade_type'])->value('id');
|
if ($resp_data['trans_stat'] == 'S') {
|
||||||
$data = [
|
$this->pay_type_id = BasePayType::where('code','=',$resp_data['trade_type'])->value('id');
|
||||||
'total_fee' => $resp_data['trans_amt'],
|
$data = [
|
||||||
'out_trade_no' => $resp_data['req_seq_id'],
|
'total_fee' => $resp_data['trans_amt'],
|
||||||
'trade_no' => $resp_data['out_trans_id'],
|
'out_trade_no' => $resp_data['req_seq_id'],
|
||||||
'unit' => 'yuan',
|
'trade_no' => $resp_data['out_trans_id'],
|
||||||
'pay_type' => '汇付'.$this->payTpye[$resp_data['trade_type']],
|
'unit' => 'yuan',
|
||||||
'pay_type_id' => $this->pay_type_id
|
'pay_type' => '汇付'.$this->payTpye[$resp_data['trade_type']],
|
||||||
];
|
'pay_type_id' => $this->pay_type_id
|
||||||
$this->payResutl($data);
|
];
|
||||||
|
$this->payResutl($data);
|
||||||
|
}
|
||||||
echo "success";
|
echo "success";
|
||||||
}else{
|
}else{
|
||||||
echo "fail";
|
echo "fail";
|
||||||
|
|
@ -129,4 +131,4 @@ class HfpayController extends PaymentController
|
||||||
Pay::payResponseDataLog($post['batch_no'], $desc, json_encode($post));
|
Pay::payResponseDataLog($post['batch_no'], $desc, json_encode($post));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue