<commit_before><%= image_tag 'credit_cards/credit_card.gif', id: 'credit-card-image' %>
<% options_hash = Rails.env.production? ? {autocomplete: 'off'} : {} %>
<% param_prefix = "payment_source[#{payment_method.id}]" %>

<%= hidden_field param_prefix, 'card_amount', value: @order.total.to_i, id: "card_amount", name: "" %>
<%= hidden_field param_prefix, 'card_currency', value: @order.currency, id: "card_currency", name: "" %>

<p class="field" data-hook="card_holdername">
  <%= label_tag "card_holdername", Spree.t(:card_holdername) %><span class="required">*</span><br />
  <%= text_field_tag "#{param_prefix}[card_holdername]", '', options_hash.merge(id: 'card_holdername', class: 'required', id: "card_holdername", name: "", value: @order.name, size: 19) %><commit_msg>Payment form correctly sends amount as an integer now<commit_after><%= image_tag 'credit_cards/credit_card.gif', id: 'credit-card-image' %>
<% options_hash = Rails.env.production? ? {autocomplete: 'off'} : {} %>
<% param_prefix = "payment_source[#{payment_method.id}]" %>

<%= hidden_field param_prefix, 'card_amount', value: (@order.total * 100).to_i, id: "card_amount", name: "" %>
<%= hidden_field param_prefix, 'card_currency', value: @order.currency, id: "card_currency", name: "" %>

<p class="field" data-hook="card_holdername">
  <%= label_tag "card_holdername", Spree.t(:card_holdername) %><span class="required">*</span><br />
  <%= text_field_tag "#{param_prefix}[card_holdername]", '', options_hash.merge(id: 'card_holdername', class: 'required', id: "card_holdername", name: "", value: @order.name, size: 19) %>
{'fraction_non_alphanumeric': 0.204375, 'fraction_numerical': 0.004375, 'mean_word_length': 7.295336787564767, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3515095', 'n_tokens_mistral': 579, 'n_tokens_neox': 538, 'n_words': 105}