Minor fixes
This commit is contained in:
parent
dd48544dfc
commit
9abeb926dd
|
|
@ -310,7 +310,7 @@ class Account extends BaseModel
|
||||||
}
|
}
|
||||||
|
|
||||||
// 09-03-2023 - winds forward expiry checks to ensure we don't cut off users prior to billing cycle being commenced
|
// 09-03-2023 - winds forward expiry checks to ensure we don't cut off users prior to billing cycle being commenced
|
||||||
if ($this->plan_expires && Carbon::parse($this->plan_expires)->lt(now()->subHours(12))) {
|
if ($this->plan_expires && Carbon::parse($this->plan_expires)->lt(now()->subHours(23))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ class AuthorizeCreditCard implements LivewireMethodInterface
|
||||||
private function processSuccessfulResponse($data, $request)
|
private function processSuccessfulResponse($data, $request)
|
||||||
{
|
{
|
||||||
$payment_hash = PaymentHash::where('hash', $request->input('payment_hash'))->firstOrFail();
|
$payment_hash = PaymentHash::where('hash', $request->input('payment_hash'))->firstOrFail();
|
||||||
$payment = $this->storePayment($payment_hash, $data);
|
$payment = $this->storePayment($payment_hash, $data, \App\Models\GatewayType::CREDIT_CARD);
|
||||||
|
|
||||||
$vars = [
|
$vars = [
|
||||||
'invoices' => $payment_hash->invoices(),
|
'invoices' => $payment_hash->invoices(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue