stan errors fixed

This commit is contained in:
2025-03-16 01:34:49 +05:00
parent 821ec1fe47
commit 0b47fe694c
7 changed files with 131 additions and 51 deletions

View File

@@ -256,11 +256,15 @@ class MakePaymentNovaVisaMaster extends Action
/**
* Create payment record
*
* @param $payment
* @param array<string, string> $payment
* @param $resource
*/
public function createPaymentRecord($payment, $resource, $total_amount, $usd_payment)
{
public function createPaymentRecord(
array $payment,
VisaMasterPaymentOrder $resource,
int|float|string $total_amount,
int|float|string $usd_payment
): void {
VisaMasterPaymentOrderItem::create([
'visa_master_payment_order_id' => $resource->id,
'online_payment_history_id' => $payment['online_payment_history_id'],
@@ -270,7 +274,12 @@ class MakePaymentNovaVisaMaster extends Action
]);
}
public function canAcceptPayment($today)
/**
* Can payment be accepted?
*
* @param \Illuminate\Support\Carbon $today
*/
public function canAcceptPayment(\Illuminate\Support\Carbon $today): bool
{
$year = $today->format('Y');
$month = $today->format('m');