Logic for getting amount in internallyFailedPayments
This commit is contained in:
parent
fca1d94afe
commit
1ab8d1322b
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue