Skip to content

Commit 8930f3a

Browse files
committed
bug error_code
1 parent c428fd1 commit 8930f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Legacy/Etransactions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ private function extractShaSign(array $parameters)
498498
public function isValid($post_data, $ip)
499499
{
500500
$ip = str_replace('::ffff:', '', $ip); //ipv4 format
501-
if ($post_data['error_code'] == '00000' && in_array($ip, ['195.101.99.73', '195.101.99.76', '194.2.160.69', '194.2.160.76', '195.25.7.158', '195.25.7.149', '194.2.122.158', '194.2.122.190', '195.101.99.76', '195.25.67.22', '195.25.7.166', '195.101.99.67', '194.2.160.81', '194.2.160.89', '195.25.67.9', '195.25.67.1', '195.25.7.145', '194.2.160.90', '195.25.67.10']))
501+
if (($post_data === null || $post_data['error_code'] == '00000') && in_array($ip, ['195.101.99.73', '195.101.99.76', '194.2.160.69', '194.2.160.76', '195.25.7.158', '195.25.7.149', '194.2.122.158', '194.2.122.190', '195.101.99.76', '195.25.67.22', '195.25.7.166', '195.101.99.67', '194.2.160.81', '194.2.160.89', '195.25.67.9', '195.25.67.1', '195.25.7.145', '194.2.160.90', '195.25.67.10']))
502502
{
503503
return true;
504504
}

0 commit comments

Comments
 (0)