Minor fixes

This commit is contained in:
David Bomba 2025-05-25 18:47:32 +10:00
parent dd48544dfc
commit 9abeb926dd
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

View File

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