Sha256: 399fec41b32e5c653cd1e4b73d8be4524fc58c7225b9a36a5ee3694a55c50934
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
<div class="gateway-payment-method"> <% param_prefix = "payment_source[#{payment_method.id}]" %> <%= render( "spree/components/forms/inputs/text", autocomplete: "cc-name", id: "name_on_card_#{payment_method.id}", label: t('spree.name_on_card'), name: "#{param_prefix}[name]", value: @order.try(:billing_name) || "#{@order.billing_firstname} #{@order.billing_lastname}" ) %> <%= render( "spree/components/forms/inputs/text", autocomplete: "cc-number", id: "card_number_#{payment_method.id}", label: t('spree.card_number'), name: "#{param_prefix}[number]" ) %> <%= render( "spree/components/forms/inputs/text", id: "card_expiry_#{payment_method.id}", label: t('spree.expiration'), name: "#{param_prefix}[expiry]", placeholder: "MM / YY" ) %> <%= render( "spree/components/forms/inputs/text", id: "card_code_#{payment_method.id}", label: t('spree.card_code'), name: "#{param_prefix}[verification_value]" ) %> <% if @order.bill_address %> <%= fields_for "#{param_prefix}[address_attributes]", @order.bill_address do |f| %> <%= render partial: 'spree/address/form_hidden', locals: { form: f } %> <% end %> <% end %> <%= hidden_field_tag "#{param_prefix}[cc_type]", '', id: "cc_type", class: 'ccType' %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_starter_frontend-0.1.0 | app/views/spree/checkout/payment/_gateway.html.erb |