wip
This commit is contained in:
@@ -6,10 +6,7 @@ use App\Modules\OnlinePayment\Repositories\OnlinePaymentRepository;
|
|||||||
use Filament\Actions\BulkActionGroup;
|
use Filament\Actions\BulkActionGroup;
|
||||||
use Filament\Actions\DeleteBulkAction;
|
use Filament\Actions\DeleteBulkAction;
|
||||||
use Filament\Actions\EditAction;
|
use Filament\Actions\EditAction;
|
||||||
use Filament\Forms\Components\DatePicker;
|
|
||||||
use Filament\Tables\Columns\TextColumn;
|
use Filament\Tables\Columns\TextColumn;
|
||||||
use Filament\Tables\Filters\Filter;
|
|
||||||
use Filament\Tables\Filters\SelectFilter;
|
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
class OnlinePaymentsTable
|
class OnlinePaymentsTable
|
||||||
@@ -82,7 +79,7 @@ class OnlinePaymentsTable
|
|||||||
->toggleable(isToggledHiddenByDefault: true),
|
->toggleable(isToggledHiddenByDefault: true),
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
|
|
||||||
])
|
])
|
||||||
->recordActions([
|
->recordActions([
|
||||||
EditAction::make(),
|
EditAction::make(),
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use Filament\Pages\Enums\SubNavigationPosition;
|
|||||||
class VisaMasterPaymentsCluster extends Cluster
|
class VisaMasterPaymentsCluster extends Cluster
|
||||||
{
|
{
|
||||||
protected static ?int $navigationSort = 3;
|
protected static ?int $navigationSort = 3;
|
||||||
|
|
||||||
protected static string|BackedEnum|null $navigationIcon = 'icon-visa-plain';
|
protected static string|BackedEnum|null $navigationIcon = 'icon-visa-plain';
|
||||||
|
|
||||||
protected static ?SubNavigationPosition $subNavigationPosition = SubNavigationPosition::Top;
|
protected static ?SubNavigationPosition $subNavigationPosition = SubNavigationPosition::Top;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class PayVisaMasterPaymentAction
|
|||||||
->label(sprintf('%s %s', __('Make payment for:'), today()->translatedFormat('F')))
|
->label(sprintf('%s %s', __('Make payment for:'), today()->translatedFormat('F')))
|
||||||
->icon('heroicon-o-credit-card')
|
->icon('heroicon-o-credit-card')
|
||||||
->modal()
|
->modal()
|
||||||
|
->disabled(true)
|
||||||
->schema(function () {
|
->schema(function () {
|
||||||
$usd_to_tmt = floatval(CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value')?->value);
|
$usd_to_tmt = floatval(CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value')?->value);
|
||||||
|
|
||||||
@@ -141,7 +142,6 @@ class PayVisaMasterPaymentAction
|
|||||||
|
|
||||||
$total_amount = $formData['payment_amount'] + $visaMasterPaymentOrderRepository->bankFee() + $visaMasterPaymentOrderRepository->gbusFee();
|
$total_amount = $formData['payment_amount'] + $visaMasterPaymentOrderRepository->bankFee() + $visaMasterPaymentOrderRepository->gbusFee();
|
||||||
|
|
||||||
$total_amount = 0.01;
|
|
||||||
$onlinePaymentRepository = $visaMasterPaymentOrderRepository->createOnlinePaymentOrder($record, $total_amount);
|
$onlinePaymentRepository = $visaMasterPaymentOrderRepository->createOnlinePaymentOrder($record, $total_amount);
|
||||||
|
|
||||||
if ($onlinePaymentRepository->failed()) {
|
if ($onlinePaymentRepository->failed()) {
|
||||||
|
|||||||
@@ -724,5 +724,6 @@
|
|||||||
"Error has been captured": "Näsazlyk ulgam tarapyndan ýazga alyndy",
|
"Error has been captured": "Näsazlyk ulgam tarapyndan ýazga alyndy",
|
||||||
"Please try again later": "Täzeden geçirmek üçin synanyşyňyz",
|
"Please try again later": "Täzeden geçirmek üçin synanyşyňyz",
|
||||||
"Payment amount, USD rate, and total amount are required. Please try again.": "Töleg möçberi, USD kursy we toplam möçberi töleg edilmeli. Täzeden geçirmek üçin synanyşyňyz.",
|
"Payment amount, USD rate, and total amount are required. Please try again.": "Töleg möçberi, USD kursy we toplam möçberi töleg edilmeli. Täzeden geçirmek üçin synanyşyňyz.",
|
||||||
"Payment": "Töleg"
|
"Payment": "Töleg",
|
||||||
|
"Online payments": "Onlaýn tölegler"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user