@props([ 'name', 'label' => null, 'description' => null, 'paymentName' => null, 'supportedCurrencies' => [], ]) @php $isSelected = PaymentMethods::getSelectingMethod() === $name; $id = sprintf('payment-%s', $name); @endphp
  • $isSelected])>

    {!! BaseHelper::clean($description ?: get_payment_setting('description', $name)) !!}

    {{ $slot }} @if ( ! empty($supportedCurrencies) && ! in_array(get_application_currency()->title, $supportedCurrencies) && ! get_application_currency()->replicate()->newQuery()->whereIn('title', $supportedCurrencies)->exists() ) @php $currencies = get_all_currencies()->filter(fn ($item) => in_array($item->title, $supportedCurrencies)); @endphp
    {{ __(":name doesn't support :currency. List of currencies supported by :name: :currencies.", ['name' => $paymentName, 'currency' => get_application_currency()->title, 'currencies' => implode(', ', $supportedCurrencies)]) }} {{ $currencyNotSupportedMessage ?? '' }} @if ($currencies->isNotEmpty())
    {{ __('Please switch currency to any supported currency') }}:   @foreach ($currencies as $currency) get_application_currency_id() === $currency->getKey()]) > {{ $currency->title }} @if (!$loop->last)   |   @endif @endforeach
    @endif
    @endif
    @if ($logo = get_payment_setting('logo', $name)) @endif