Compare commits

...

2 Commits

Author SHA1 Message Date
cbd469c97f wip 2025-11-18 00:37:21 +05:00
bc45f2756e some stan 2025-11-18 00:34:40 +05:00
4 changed files with 7 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ class HalkbankOnlinePaymentRepository implements PaymentProviderContract
} }
/** /**
* Send request to gatewat * Send request to gateway
*/ */
public function sendRequest(): Response public function sendRequest(): Response
{ {

View File

@@ -272,7 +272,7 @@ class OnlinePaymentRepository
$response = $this->provider->checkPayment($orderId); $response = $this->provider->checkPayment($orderId);
if ($response['errorCode'] != '0') { if ($response['errorCode'] != '0') {
return $this->paymentFailed($response['errorMessage']); return $this->paymentFailed($response['errorMessage']); // @phpstan-ignore-line
} }
return $response['paymentAmountInfo']['depositedAmount'] > 0 // @phpstan-ignore-line return $response['paymentAmountInfo']['depositedAmount'] > 0 // @phpstan-ignore-line

View File

@@ -21,7 +21,6 @@ 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);
@@ -87,12 +86,12 @@ class PayVisaMasterPaymentAction
}), }),
TextInput::make('usd_rate') TextInput::make('usd_rate')
->label(__('USD ekwalendi')) ->label(__('USD rate'))
->suffix('USD') ->suffix('USD')
->readOnly(), ->readOnly(),
TextInput::make('total_amount') TextInput::make('total_amount')
->label(__('Total amount')) ->label(__('Total'))
->suffix('TMT') ->suffix('TMT')
->readOnly(), ->readOnly(),
]), ]),

View File

@@ -725,5 +725,7 @@
"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" "Online payments": "Onlaýn tölegler",
"USD rate": "USD kursy",
"Total": "Jemi"
} }