Skip to content

Commit 825e937

Browse files
authored
IP verification removed for proxy connections
1 parent 97e417f commit 825e937

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Omnipay/Ecopayz/Message/CompletePurchaseRequest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
*/
1414
class CompletePurchaseRequest extends FetchTransactionRequest
1515
{
16-
private $trustedIps = array(
17-
'213.129.76.104', '213.129.76.105',
18-
'217.21.162.163', '217.21.162.164',
19-
'176.57.42.131', '176.57.42.132'
20-
);
21-
2216
/**
2317
* Get the data for this request.
2418
*
@@ -32,14 +26,6 @@ public function getData()
3226
'merchantPassword'
3327
);
3428

35-
if (!$this->getTestMode()) {
36-
37-
if (!in_array($this->httpRequest->getClientIp(), $this->trustedIps)) {
38-
throw new InvalidRequestException('IP Address is invalid to access this function');
39-
}
40-
41-
}
42-
4329
if ($xml = $this->httpRequest->request->get('XML')) {
4430

4531
if (!$this->validateChecksum($xml)) {

0 commit comments

Comments
 (0)