Sha256: c7314e01006f600c8de65ae2728fb39c92e4bdb93c30b337bf9e863c97297e52

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

<div class="payment-gateway">

  <% param_prefix = "payment_source[#{payment_method.id}]" %>

  <div class="payment-gateway-fields">
    <div class="mb-4 payment-gateway-field checkout-content-inner-field">
      <%= text_field_tag "#{param_prefix}[name]", "#{@order.bill_address_firstname} #{@order.bill_address_lastname}", { id: "name_on_card", class: 'harpiya-flat-input', placeholder: Harpiya.t(:name_on_card)} %>
    </div>

    <div class="mb-4 payment-gateway-field checkout-content-inner-field" data-hook="card_number">
      <% options_hash = Rails.env.production? ? {autocomplete: 'off'} : {} %>
      <%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(id: 'card_number', class: 'harpiya-flat-input cardNumber', size: 19, maxlength: 19, autocomplete: "off", placeholder: Harpiya.t(:card_number)) %>
      <span id="card_type" style="display:none;">
        ( <span id="looks_like"><%= Harpiya.t(:card_type_is) %> <span id="type"></span></span>
          <span id="unrecognized"><%= Harpiya.t(:unrecognized_card_type) %></span>
        )
      </span>
    </div>
    <div class="payment-gateway-half-fields d-flex justify-content-between">
      <div class="payment-gateway-field checkout-content-inner-field" data-hook="card_expiration">
        <%= text_field_tag "#{param_prefix}[expiry]", '', id: 'card_expiry', class: 'harpiya-flat-input cardExpiry', placeholder: "MM/YYYY" %>
      </div>
      <div class="payment-gateway-field checkout-content-inner-field" data-hook="card_code">
        <%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(id: 'card_code', class: 'harpiya-flat-input cardCode', size: 5, placeholder: Harpiya.t(:cvv)) %>
      </div>
    </div>

    <%= hidden_field_tag "#{param_prefix}[cc_type]", '', id: "cc_type", class: 'ccType' %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harpiya_frontend-4.3.0.alpha app/views/harpiya/checkout/payment/_gateway.html.erb