mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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();
|
||||
}
|
||||
|
||||
$amount = optional($this->payment_hash->data)->value ?? optional($this->payment_hash->data)->amount;
|
||||
|
||||
PaymentFailureMailer::dispatch(
|
||||
$gateway->client,
|
||||
$error,
|
||||
$gateway->client->company,
|
||||
$this->payment_hash->data->value
|
||||
$amount
|
||||
);
|
||||
|
||||
SystemLogger::dispatch(
|
||||
|
Loading…
x
Reference in New Issue
Block a user