mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 13:34:36 -04:00
Logic for getting amount in internallyFailedPayments
This commit is contained in:
parent
fca1d94afe
commit
1ab8d1322b
@ -308,11 +308,13 @@ class BaseDriver extends AbstractPaymentDriver
|
|||||||
$error = $e->getBody();
|
$error = $e->getBody();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$amount = optional($this->payment_hash->data)->value ?? optional($this->payment_hash->data)->amount;
|
||||||
|
|
||||||
PaymentFailureMailer::dispatch(
|
PaymentFailureMailer::dispatch(
|
||||||
$gateway->client,
|
$gateway->client,
|
||||||
$error,
|
$error,
|
||||||
$gateway->client->company,
|
$gateway->client->company,
|
||||||
$this->payment_hash->data->value
|
$amount
|
||||||
);
|
);
|
||||||
|
|
||||||
SystemLogger::dispatch(
|
SystemLogger::dispatch(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user