= @payment_method
- case @payment_method
- when Spree::Gateway::StripeConnect
  = render 'stripe_connect'
- when Spree::Gateway::StripeSCA
  = render 'stripe_connect'
- else
  - if @payment_method.preferences.present?
    %fieldset.alpha.eleven.columns.no-border-bottom#gateway_fields
      %legend{ align: "center"}
        = t(:provider_settings)
      .preference-settings
        = fields_for :payment_method, @payment_method do |payment_method_form|
          = preference_fields(@payment_method, payment_method_form)
