This commit is contained in:
2024-11-25 19:42:20 +05:00
parent 9d77e50191
commit ae0ecffe98

View File

@@ -32,6 +32,8 @@ class MakeSberPaymentAction extends Action
{
$usd_to_tmt = CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value');
info($fields);
if (! $usd_to_tmt || ! property_exists($fields, 'payment_amount') || ! property_exists($fields, 'usd_payment')) {
return ActionResponse::danger('Walýuta hasaby girizilmedik, operator bilen habarlaşmagyňyzy haýyş edýärin.');
}