|
|
@ -43,7 +43,7 @@ class Baofu
|
|
|
|
$data = [];
|
|
|
|
$data = [];
|
|
|
|
$data['loginNo'] = $loginNo;
|
|
|
|
$data['loginNo'] = $loginNo;
|
|
|
|
$data['dataContent'] = NotifyList::getNotifyUrl('cardBind', $token);
|
|
|
|
$data['dataContent'] = NotifyList::getNotifyUrl('cardBind', $token);
|
|
|
|
return $this->h5('cardBind', $data);
|
|
|
|
return $this->h5('cardBind', $data, $token);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function cardUnbind($loginNo, $agreementNo, $requestNo = '')
|
|
|
|
public function cardUnbind($loginNo, $agreementNo, $requestNo = '')
|
|
|
@ -77,7 +77,7 @@ class Baofu
|
|
|
|
return $this->withReturnUrl($this->api($params['notifyUrl'], $data), $returnUrl);
|
|
|
|
return $this->withReturnUrl($this->api($params['notifyUrl'], $data), $returnUrl);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function assurePaymentSplit($params, $returnUrl = 'assurePaymentSplit')
|
|
|
|
public function assurePaymentSplit($params, $token)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$data = [];
|
|
|
|
$data = [];
|
|
|
|
$data['loginNo'] = $params['loginNo'];
|
|
|
|
$data['loginNo'] = $params['loginNo'];
|
|
|
@ -89,7 +89,21 @@ class Baofu
|
|
|
|
$data['expireDate'] = date('YmdHis', time() + 15*60);
|
|
|
|
$data['expireDate'] = date('YmdHis', time() + 15*60);
|
|
|
|
$data['validDate'] = date('Ymd');
|
|
|
|
$data['validDate'] = date('Ymd');
|
|
|
|
$data['notifyUrl'] = $params['notifyUrl'];
|
|
|
|
$data['notifyUrl'] = $params['notifyUrl'];
|
|
|
|
return $this->withReturnUrl($this->api('assurePaymentSplit', $data), $returnUrl, ['oid' => $params['oid']]);
|
|
|
|
return $this->withReturnUrl($this->api('assurePaymentSplit', $data), $token);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function paymentSplit($params, $token)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$data = [];
|
|
|
|
|
|
|
|
$data['loginNo'] = $params['loginNo'];
|
|
|
|
|
|
|
|
$data['amount'] = $params['amount'];
|
|
|
|
|
|
|
|
$data['outOrderNo'] = $params['outOrderNo'];
|
|
|
|
|
|
|
|
$data['paidType'] = $params['paidType'] ?: 'CARD';
|
|
|
|
|
|
|
|
$data['agreementNo'] = Rsa::encryptByCERFile($params['agreementNo'], $this->getCerFilePath());
|
|
|
|
|
|
|
|
$data['splitInfoList'] = json_encode($params['splitInfoList']);
|
|
|
|
|
|
|
|
$data['pwdPayExpTime'] = time() + 15*60;
|
|
|
|
|
|
|
|
$data['notifyUrl'] = $params['notifyUrl'];
|
|
|
|
|
|
|
|
return $this->withReturnUrl($this->api('paymentSplitApi', $data), $token);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function unifyPay($params){
|
|
|
|
public function unifyPay($params){
|
|
|
|