mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
Clarfiy paymen error failure
This commit is contained in:
parent
6304d707a7
commit
f84bc4136a
@ -318,7 +318,11 @@ class BasePaymentDriver
|
||||
|
||||
// parse the transaction reference
|
||||
if ($this->transactionReferenceParam) {
|
||||
$ref = $this->purchaseResponse[$this->transactionReferenceParam];
|
||||
if (isset($this->purchaseResponse[$this->transactionReferenceParam])) {
|
||||
$ref = $this->purchaseResponse[$this->transactionReferenceParam];
|
||||
} else {
|
||||
throw new Exception($response->getMessage() ?: trans('texts.payment_error'));
|
||||
}
|
||||
} else {
|
||||
$ref = $response->getTransactionReference();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user