wip
This commit is contained in:
1 parent
2bb9ec2ae2
commit
ba6d703893
1 file changed
-10
@@ -100,16 +100,6 @@ public static function make(): Action
|
|||||||
];
|
];
|
||||||
})
|
})
|
||||||
->action(function (array $data, VisaMasterPaymentOrder $record, Component $livewire): void {
|
->action(function (array $data, VisaMasterPaymentOrder $record, Component $livewire): void {
|
||||||
if (! isset($data['payment_amount']) || empty($data['payment_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} */
|
/** @var array{payment_amount: float, usd_rate: float, total_amount: float} */
|
||||||
$formData = $data;
|
$formData = $data;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user