This commit is contained in:
2024-11-22 19:43:40 +05:00
parent 5799a4df66
commit 09b65597c9

View File

@@ -43,6 +43,10 @@ class MakePaymentNovaVisaMaster extends Action
*/
public function handle(ActionFields $fields, Collection $models)
{
if (is_null($fields->payment_amount) || is_null($fields->usd_payment)) {
return ActionResponse::danger('Töleg maglumatlary ýok!');
}
$resource = $models->first();
if (! $resource->branch || ! $resource->branch->billing_visa_master_username) {