stan errors fixed
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user