wip
This commit is contained in:
@@ -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';
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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, '', ''),
|
||||
|
||||
Reference in New Issue
Block a user