|
@@ -6,14 +6,11 @@ class Notify extends Core
|
|
protected function init()
|
|
protected function init()
|
|
{
|
|
{
|
|
$this->api = 'https://ipaynow.acquire.cmbchina.com/';
|
|
$this->api = 'https://ipaynow.acquire.cmbchina.com/';
|
|
- $this->param['funcode'] = 'WP001';
|
|
|
|
- $this->param['version'] = '1.0.0';
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public function request($request, $tool = false)
|
|
public function request($request, $tool = false)
|
|
{
|
|
{
|
|
$this->data = $request;
|
|
$this->data = $request;
|
|
- $tool->log('支付回调-初始化11', $request);
|
|
|
|
$this->setParam('mhtOrderNo');
|
|
$this->setParam('mhtOrderNo');
|
|
$this->setParam('mhtOrderName');
|
|
$this->setParam('mhtOrderName');
|
|
$this->setParam('mhtOrderType');
|
|
$this->setParam('mhtOrderType');
|
|
@@ -37,15 +34,15 @@ class Notify extends Core
|
|
$this->setParam('cardType');
|
|
$this->setParam('cardType');
|
|
$this->setParam('signType');
|
|
$this->setParam('signType');
|
|
$this->setParam('funcode');
|
|
$this->setParam('funcode');
|
|
|
|
+ $this->setParam('version');
|
|
$error = $this->getError();
|
|
$error = $this->getError();
|
|
if ($error) {
|
|
if ($error) {
|
|
$tool->updateOrder($this->param['mhtOrderNo'], $this->param['mhtOrderAmt'], $error);
|
|
$tool->updateOrder($this->param['mhtOrderNo'], $this->param['mhtOrderAmt'], $error);
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- $tool->log('支付回调-初始化22', $this->param);
|
|
|
|
|
|
+ unset($this->param['mhtSubAppId']);
|
|
$signature = $this->createSignature($this->param['signType']);
|
|
$signature = $this->createSignature($this->param['signType']);
|
|
- $tool->log('支付回调-初始化33', $signature);
|
|
|
|
if ($signature != $this->data['signature']) {
|
|
if ($signature != $this->data['signature']) {
|
|
$tool->updateOrder($this->param['mhtOrderNo'], $this->param['mhtOrderAmt'], '签名错误');
|
|
$tool->updateOrder($this->param['mhtOrderNo'], $this->param['mhtOrderAmt'], '签名错误');
|
|
return false;
|
|
return false;
|