mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-05 05:39:07 +08:00
fix some bugs
This commit is contained in:
parent
4e5490e9a2
commit
23f6ce63e7
@ -125,7 +125,9 @@ class Wechat implements GatewayApplicationInterface
|
||||
|
||||
unset($this->payload['notify_url'], $this->payload['trade_type']);
|
||||
|
||||
return Support::requestApi('pay/orderquery', $this->payload);
|
||||
$this->payload['sign'] = Support::generateSign($this->payload, $this->config->get('key'));
|
||||
|
||||
return Support::requestApi('pay/orderquery', $this->payload, $this->config->get('key'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -148,9 +150,12 @@ class Wechat implements GatewayApplicationInterface
|
||||
|
||||
unset($this->payload['notify_url'], $this->payload['trade_type']);
|
||||
|
||||
$this->payload['sign'] = Support::generateSign($this->payload, $this->config->get('key'));
|
||||
|
||||
return Support::requestApi(
|
||||
'secapi/pay/refund',
|
||||
$this->payload,
|
||||
$this->config->get('key'),
|
||||
$this->config->get('cert_client'),
|
||||
$this->config->get('cert_key')
|
||||
);
|
||||
@ -189,7 +194,9 @@ class Wechat implements GatewayApplicationInterface
|
||||
|
||||
unset($this->payload['notify_url'], $this->payload['trade_type']);
|
||||
|
||||
return Support::requestApi('pay/closeorder', $this->payload);
|
||||
$this->payload['sign'] = Support::generateSign($this->payload, $this->config->get('key'));
|
||||
|
||||
return Support::requestApi('pay/closeorder', $this->payload, $this->config->get('key'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user