更新回调验证
This commit is contained in:
parent
153129b322
commit
11e23da50f
|
|
@ -62,6 +62,7 @@ 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;
|
||||||
|
if ($resp_data['trans_stat'] == 'S') {
|
||||||
$this->pay_type_id = BasePayType::where('code','=',$resp_data['trade_type'])->value('id');
|
$this->pay_type_id = BasePayType::where('code','=',$resp_data['trade_type'])->value('id');
|
||||||
$data = [
|
$data = [
|
||||||
'total_fee' => $resp_data['trans_amt'],
|
'total_fee' => $resp_data['trans_amt'],
|
||||||
|
|
@ -72,6 +73,7 @@ class HfpayController extends PaymentController
|
||||||
'pay_type_id' => $this->pay_type_id
|
'pay_type_id' => $this->pay_type_id
|
||||||
];
|
];
|
||||||
$this->payResutl($data);
|
$this->payResutl($data);
|
||||||
|
}
|
||||||
echo "success";
|
echo "success";
|
||||||
}else{
|
}else{
|
||||||
echo "fail";
|
echo "fail";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue