diff --git a/app/Modules/VisaMasterPaymentOrder/Nova/Resources/Concerns/VisaMasterPaymentOrderFieldsForIndex.php b/app/Modules/VisaMasterPaymentOrder/Nova/Resources/Concerns/VisaMasterPaymentOrderFieldsForIndex.php index 1c96bf5..5424c47 100644 --- a/app/Modules/VisaMasterPaymentOrder/Nova/Resources/Concerns/VisaMasterPaymentOrderFieldsForIndex.php +++ b/app/Modules/VisaMasterPaymentOrder/Nova/Resources/Concerns/VisaMasterPaymentOrderFieldsForIndex.php @@ -6,6 +6,7 @@ use App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrder; 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 @@ class VisaMasterPaymentOrderFieldsForIndex ->withIcons() ->icons(OrderRepo::statusIcons()) ->sortable(), + + Text::make(__('Paid'), static::paidField()), ]; } + + /** + * Paid field + */ + public static function paidField(): Closure + { + return function () { + return 'OK'; + }; + } } diff --git a/app/Nova/Actions/MakeSberPaymentAction.php b/app/Nova/Actions/MakeSberPaymentAction.php index 5d97d38..e4e500d 100644 --- a/app/Nova/Actions/MakeSberPaymentAction.php +++ b/app/Nova/Actions/MakeSberPaymentAction.php @@ -200,8 +200,6 @@ class MakeSberPaymentAction extends Action $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, '', ''),