nimbleshop_authorizedotnet 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,45 +7,49 @@
7
7
  class: 'nimbleshop-payment-method-form form-horizontal'} do |f| %>
8
8
 
9
9
  <fieldset>
10
- <div class="control-group">
10
+ <div class='control-group'>
11
11
  <%= f.label :login_id, nil, class: 'control-label' %>
12
- <div class="controls">
12
+ <div class='controls'>
13
13
  <%= f.text_field :login_id, class: 'span6' %>
14
14
  </div>
15
15
  </div>
16
- <div class="control-group">
16
+ <div class='control-group'>
17
17
  <%= f.label :transaction_key, nil, class: 'control-label' %>
18
- <div class="controls">
18
+ <div class='controls'>
19
19
  <%= f.text_field :transaction_key, class: 'span6' %>
20
20
  </div>
21
21
  </div>
22
22
 
23
- <div class="control-group">
23
+ <div class='control-group'>
24
24
  <%= f.label :company_name_on_creditcard_statement, nil, class: 'control-label' %>
25
- <div class="controls">
25
+ <div class='controls'>
26
26
  <%= f.text_field :company_name_on_creditcard_statement, class: 'span6' %>
27
27
  </div>
28
28
  </div>
29
29
 
30
- <div class="control-group">
31
- <div class="controls">
30
+ <div class='control-group'>
31
+ <div class='controls'>
32
32
  <label class='checkbox'>
33
33
  <%= f.check_box :mode, {}, 'test', 'production' %> Enable test mode
34
+ <%= link_to '?', '#', class: 'help', 'data-content' => 'In the test mode real credit card numbers are not accepted.',
35
+ 'data-original-title' => 'Test mode' %>
34
36
  </label>
35
37
  </div>
36
38
  </div>
37
39
 
38
- <div class="control-group">
39
- <div class="controls">
40
+ <div class='control-group'>
41
+ <div class='controls'>
40
42
  <label class='checkbox'>
41
43
  <%= f.check_box :ssl, {}, 'enabled', 'disabled' %> Enable SSL requirement
44
+ <%= link_to '?', '#', class: 'help', 'data-content' => 'Enabling SSL requirement will force the payment page to be on SSL.',
45
+ 'data-original-title' => 'SSL requirement' %>
42
46
  </label>
43
47
  </div>
44
48
  </div>
45
49
 
46
50
  </fieldset>
47
51
 
48
- <div class="form-actions">
52
+ <div class='form-actions'>
49
53
  <%= f.submit('Submit', class: 'btn btn-primary') %>
50
54
  &nbsp;
51
55
  <%= link_to t(:cancel), nimbleshop_authorizedotnet.authorizedotnet_path, class: 'cancel btn' %>
@@ -53,3 +57,9 @@
53
57
  <% end %>
54
58
 
55
59
  </div>
60
+
61
+ <style>
62
+ .control-group a.help {
63
+ float: none;
64
+ }
65
+ </style>
@@ -30,7 +30,7 @@ module NimbleshopAuthorizedotnet
30
30
  return false
31
31
  end
32
32
 
33
- response = gateway.authorize(order.total_amount_in_cents, creditcard)
33
+ response = gateway.authorize(order.total_amount_in_cents, creditcard, order_id: order.number )
34
34
  record_transaction(response, 'authorized', card_number: creditcard.display_number, cardtype: creditcard.cardtype)
35
35
 
36
36
  if response.success?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimbleshop_authorizedotnet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-11 00:00:00.000000000 Z
12
+ date: 2012-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemerchant
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 0.0.4
37
+ version: 0.0.5
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 0.0.4
45
+ version: 0.0.5
46
46
  description: Provides Authorize.net support to nimbleShop
47
47
  email:
48
48
  - neeraj@BigBinary.com