some stan
This commit is contained in:
@@ -36,7 +36,7 @@ class HalkbankOnlinePaymentRepository implements PaymentProviderContract
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send request to gatewat
|
* Send request to gateway
|
||||||
*/
|
*/
|
||||||
public function sendRequest(): Response
|
public function sendRequest(): Response
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ 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)
|
// ->disabled(true)
|
||||||
|
// ->tooltip()
|
||||||
->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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user