This commit is contained in:
nurmuhammet committed 2025-02-03 01:45:28 +05:00
1 parent b79be739fe
commit a14a99b04a
2 files changed
+13 -2

No files matched your search

@@ -6,6 +6,7 @@
use App\Nova\Resources\Branch\Branch;
use App\Repos\Order\OrderRepo;
use App\Repos\System\Settings\Location\RegionRepo;
use Closure;
use Laravel\Nova\Fields\Badge;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\DateTime;
@@ -61,6 +62,18 @@ public static function make($resource): array
->withIcons()
->icons(OrderRepo::statusIcons())
->sortable(),
Text::make(__('Paid'), static::paidField()),
];
}
/**
* Paid field
*/
public static function paidField(): Closure
{
return function () {
return 'OK';
};
}
}
@@ -200,8 +200,6 @@ public function order($resource, $amount)
$orderNumber = $onlinePaymentRepo->generateOrderNumber($resource);
info(['userName' => $resource->branch->billing_sber_username, 'password' => $resource->branch->billing_sber_password]);
$paymentResponse = Http::get('https://mpi.gov.tm/payment/rest/register.do', [
'orderNumber' => $orderNumber,
'amount' => number_format($amount, 2, '', ''),