mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for braintree credit card failures
This commit is contained in:
parent
3ac8d456d5
commit
4c68d6ba79
@ -418,13 +418,16 @@ class BaseDriver extends AbstractPaymentDriver
|
|||||||
throw new PaymentFailed($error, $e->getCode());
|
throw new PaymentFailed($error, $e->getCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendFailureMail($error = '')
|
public function sendFailureMail($error)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!is_null($this->payment_hash)) {
|
if (!is_null($this->payment_hash)) {
|
||||||
$this->unWindGatewayFees($this->payment_hash);
|
$this->unWindGatewayFees($this->payment_hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!$error)
|
||||||
|
$error = '';
|
||||||
|
|
||||||
PaymentFailedMailer::dispatch(
|
PaymentFailedMailer::dispatch(
|
||||||
$this->payment_hash,
|
$this->payment_hash,
|
||||||
$this->client->company,
|
$this->client->company,
|
||||||
|
@ -92,8 +92,6 @@ class PaymentIntentWebhook implements ShouldQueue
|
|||||||
$this->updateCreditCardPayment($payment_hash, $client);
|
$this->updateCreditCardPayment($payment_hash, $client);
|
||||||
}
|
}
|
||||||
|
|
||||||
//create the payment
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user