mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:04:40 -04:00
Ensure we save auto_bill_tries
This commit is contained in:
parent
7b7fbc5c13
commit
f014cda4e6
@ -123,6 +123,7 @@ class AutoBillInvoice extends AbstractService
|
|||||||
->setPaymentHash($payment_hash)
|
->setPaymentHash($payment_hash)
|
||||||
->tokenBilling($gateway_token, $payment_hash);
|
->tokenBilling($gateway_token, $payment_hash);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
||||||
$this->invoice->auto_bill_tries += 1;
|
$this->invoice->auto_bill_tries += 1;
|
||||||
|
|
||||||
if ($this->invoice->auto_bill_tries == 3) {
|
if ($this->invoice->auto_bill_tries == 3) {
|
||||||
@ -131,6 +132,8 @@ class AutoBillInvoice extends AbstractService
|
|||||||
$this->invoice->save();
|
$this->invoice->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->invoice->save();
|
||||||
|
|
||||||
nlog("payment NOT captured for " . $this->invoice->number . " with error " . $e->getMessage());
|
nlog("payment NOT captured for " . $this->invoice->number . " with error " . $e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user