rack-payment 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@
28
28
  <input type='text' id='credit_card_last_name' name='credit_card[last_name]' value='<%= credit_card.last_name %>' />
29
29
 
30
30
  <label for='credit_card_number'>Card Number</label>
31
- <input type='text' id='credit_card_number' name='credit_card[number]' value='<%= credit_card.number %>' />
31
+ <input type='text' id='credit_card_number' name='credit_card[number]' value='<%= credit_card.number %>' autocomplete='off' />
32
32
  </div>
33
33
 
34
34
  <div class='group'>
@@ -38,7 +38,7 @@
38
38
  </select>
39
39
 
40
40
  <label for='credit_card_cvv'>CVV</label>
41
- <input type='text' id='credit_card_cvv' name='credit_card[cvv]' value='<%= credit_card.cvv %>' />
41
+ <input type='text' id='credit_card_cvv' name='credit_card[cvv]' value='<%= credit_card.cvv %>' autocomplete='off' />
42
42
 
43
43
  <label for='credit_card_expiration_month'>Expiration</label>
44
44
  <select id='credit_card_expiration_month' name='credit_card[expiration_month]'>
@@ -66,10 +66,14 @@
66
66
  </div>
67
67
 
68
68
  <div class='group'>
69
- <% %w( state country zip ).each do |field| %>
70
- <label for='billing_address_<%= field %>'><%= field.gsub('_', ' ').capitalize %></label>
71
- <input type='text' id='billing_address_<%= field %>' name='billing_address[<%= field %>]' value='<%= billing_address[field] %>' />
72
- <% end %>
69
+ <label for='billing_address_state'>State</label>
70
+ <input type='text' id='billing_address_state' name='billing_address[state]' value='<%= billing_address.state %>' />
71
+
72
+ <label for='billing_address_country'>Country</label>
73
+ <input type='text' id='billing_address_country' name='billing_address[country]' value='<%= billing_address.country %>' />
74
+
75
+ <label for='billing_address_zip'>Zip</label>
76
+ <input type='text' id='billing_address_zip' name='billing_address[zip]' value='<%= billing_address.zip %>' />
73
77
  </div>
74
78
  </fieldset>
75
79
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - remi