Skip to content

Commit 3b7eb0d

Browse files
committed
Optimize code, add missing required ext.
1 parent d16c896 commit 3b7eb0d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
]
3030
},
3131
"require": {
32+
"ext-bcmath": "*",
3233
"ext-json": "*",
3334
"ext-openssl": "*",
3435
"omnipay/common": "^3.0",

src/Requests/AopNotifyRequest.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Omnipay\Alipay\Requests;
44

5+
use Exception;
56
use Omnipay\Alipay\Common\Signer;
67
use Omnipay\Alipay\Responses\AopNotifyResponse;
78
use Omnipay\Alipay\Responses\VerifyNotifyIdResponse;
@@ -115,6 +116,10 @@ public function sendData($data)
115116
}
116117

117118

119+
/**
120+
* @throws InvalidRequestException
121+
* @throws Exception
122+
*/
118123
protected function verifySignature()
119124
{
120125
$signer = new Signer($this->params->all());
@@ -136,7 +141,9 @@ protected function verifySignature()
136141
}
137142
}
138143

139-
144+
/**
145+
* @throws InvalidRequestException
146+
*/
140147
protected function verifyNotifyId()
141148
{
142149
if (! $this->getPartner()) {
@@ -181,7 +188,7 @@ public function setPartner($value)
181188
/**
182189
* @param boolean $value
183190
*
184-
* @return \Omnipay\Alipay\Requests\AopNotifyRequest
191+
* @return AopNotifyRequest
185192
*/
186193
public function setVerifyNotifyId($value)
187194
{
@@ -194,7 +201,7 @@ public function setVerifyNotifyId($value)
194201
/**
195202
* @param boolean $sort
196203
*
197-
* @return \Omnipay\Alipay\Requests\AopNotifyRequest
204+
* @return AopNotifyRequest
198205
*/
199206
public function setSort($sort)
200207
{
@@ -207,7 +214,7 @@ public function setSort($sort)
207214
/**
208215
* @param string $encodePolicy
209216
*
210-
* @return \Omnipay\Alipay\Requests\AopNotifyRequest
217+
* @return AopNotifyRequest
211218
*/
212219
public function setEncodePolicy($encodePolicy)
213220
{

0 commit comments

Comments
 (0)