1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Clarfiy paymen error failure

This commit is contained in:
Hillel Coren 2017-10-18 20:14:35 +03:00
parent f84bc4136a
commit 14902baf28

View File

@ -318,7 +318,7 @@ class BasePaymentDriver
// parse the transaction reference
if ($this->transactionReferenceParam) {
if (isset($this->purchaseResponse[$this->transactionReferenceParam])) {
if (! empty($this->purchaseResponse[$this->transactionReferenceParam])) {
$ref = $this->purchaseResponse[$this->transactionReferenceParam];
} else {
throw new Exception($response->getMessage() ?: trans('texts.payment_error'));