diff --git a/lib/Response/AbstractPaymentResponse.php b/lib/Response/AbstractPaymentResponse.php index 5957ee7..57cc870 100644 --- a/lib/Response/AbstractPaymentResponse.php +++ b/lib/Response/AbstractPaymentResponse.php @@ -24,7 +24,7 @@ public function __construct(array $response) if (isset($response['error'])) { $error = new PaymentError(); $error->setCode($response['error']['code']); - $error->setCode($response['error']['description']); + $error->setDescription($response['error']['description']); $this->setError($error); } @@ -56,4 +56,4 @@ public function __construct(array $response) $this->setTest((boolean) $response['test']); } -} \ No newline at end of file +}