Logic for getting amount in internallyFailedPayments

This commit is contained in:
Benjamin Beganović 2020-11-16 13:36:47 +01:00
parent fca1d94afe
commit 1ab8d1322b

View File

@ -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(