diff --git a/src/PosNet.php b/src/PosNet.php index 083e1068..b89c2256 100644 --- a/src/PosNet.php +++ b/src/PosNet.php @@ -532,7 +532,10 @@ public function make3DPayment() $transaction_security = 'Half 3D Secure'; $status = 'approved'; } - + + //if 3D Authentication is failed + if($status != 'approved') goto end; + $nodes = [ 'posnetRequest' => [ 'mid' => $this->account->client_id, @@ -551,8 +554,6 @@ public function make3DPayment() $this->send($contents); } - $this->response = (object) $this->data; - if ($this->data->approved != 1) { $status = 'declined'; }