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:
parent
f84bc4136a
commit
14902baf28
@ -318,7 +318,7 @@ class BasePaymentDriver
|
|||||||
|
|
||||||
// parse the transaction reference
|
// parse the transaction reference
|
||||||
if ($this->transactionReferenceParam) {
|
if ($this->transactionReferenceParam) {
|
||||||
if (isset($this->purchaseResponse[$this->transactionReferenceParam])) {
|
if (! empty($this->purchaseResponse[$this->transactionReferenceParam])) {
|
||||||
$ref = $this->purchaseResponse[$this->transactionReferenceParam];
|
$ref = $this->purchaseResponse[$this->transactionReferenceParam];
|
||||||
} else {
|
} else {
|
||||||
throw new Exception($response->getMessage() ?: trans('texts.payment_error'));
|
throw new Exception($response->getMessage() ?: trans('texts.payment_error'));
|
||||||
|
Loading…
Reference in New Issue
Block a user