Sha256: fed48a42fd17c1e10c5a33fa6bbde9a1c46c38dc2ac5cf5d50d2142fdae91724

Contents?: true

Size: 605 Bytes

Versions: 6

Compression:

Stored size: 605 Bytes

Contents

<%
  # https://stripe.com/docs/api/payment_methods/object#payment_method_object-type
  partial_base = "spree/admin/payments/source_forms/existing_payment/stripe"
  payment_type = stripe_payment_method.type

  # Fallback on the default partial if a specialized partial is not available.
  payment_type = 'default' if lookup_context.find_all("#{partial_base}/_#{payment_type}").none?
%>

<div>
  <label>
    <%= render(
      "#{partial_base}/#{payment_type}",
      stripe_payment_method: stripe_payment_method,
      partial_base: partial_base,
      payment_type: payment_type
    ) %>
  </label>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_stripe-5.0.2 app/views/spree/admin/payments/source_forms/existing_payment/_stripe.html.erb
solidus_stripe-5.0.1 app/views/spree/admin/payments/source_forms/existing_payment/_stripe.html.erb
solidus_stripe-5.0.0 app/views/spree/admin/payments/source_forms/existing_payment/_stripe.html.erb
solidus_stripe-5.0.0.rc.3 app/views/spree/admin/payments/source_forms/existing_payment/_stripe.html.erb
solidus_stripe-5.0.0.rc.2 app/views/spree/admin/payments/source_forms/existing_payment/_stripe.html.erb
solidus_stripe-5.0.0.rc.1 app/views/spree/admin/payments/source_forms/existing_payment/_stripe.html.erb