This commit is contained in:
2025-11-16 16:37:19 +05:00
parent 5a37d56cfb
commit 1d67616cdb
2 changed files with 12 additions and 1 deletions

View File

@@ -100,6 +100,16 @@ class PayVisaMasterPaymentAction
];
})
->action(function (array $data, VisaMasterPaymentOrder $record, Component $livewire): void {
if (! isset($data['payment_amount']) ||!isset($data['usd_rate']) || !isset($data['total_amount'])) {
Notification::make()
->title(__('Payment error').'!')
->body(__('Payment amount, USD rate, and total amount are required. Please try again.'))
->danger()
->send();
return;
}
/** @var array{payment_amount: float, usd_rate: float, total_amount: float} */
$formData = $data;