nimbleshop_authorizedotnet 0.0.4.beta1 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,49 +7,45 @@
|
|
7
7
|
class: 'nimbleshop-payment-method-form form-horizontal'} do |f| %>
|
8
8
|
|
9
9
|
<fieldset>
|
10
|
-
<div class=
|
10
|
+
<div class="control-group">
|
11
11
|
<%= f.label :login_id, nil, class: 'control-label' %>
|
12
|
-
<div class=
|
12
|
+
<div class="controls">
|
13
13
|
<%= f.text_field :login_id, class: 'span6' %>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
|
-
<div class=
|
16
|
+
<div class="control-group">
|
17
17
|
<%= f.label :transaction_key, nil, class: 'control-label' %>
|
18
|
-
<div class=
|
18
|
+
<div class="controls">
|
19
19
|
<%= f.text_field :transaction_key, class: 'span6' %>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
|
23
|
-
<div class=
|
23
|
+
<div class="control-group">
|
24
24
|
<%= f.label :company_name_on_creditcard_statement, nil, class: 'control-label' %>
|
25
|
-
<div class=
|
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=
|
31
|
-
<div class=
|
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' %>
|
36
34
|
</label>
|
37
35
|
</div>
|
38
36
|
</div>
|
39
37
|
|
40
|
-
<div class=
|
41
|
-
<div class=
|
38
|
+
<div class="control-group">
|
39
|
+
<div class="controls">
|
42
40
|
<label class='checkbox'>
|
43
41
|
<%= 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' %>
|
46
42
|
</label>
|
47
43
|
</div>
|
48
44
|
</div>
|
49
45
|
|
50
46
|
</fieldset>
|
51
47
|
|
52
|
-
<div class=
|
48
|
+
<div class="form-actions">
|
53
49
|
<%= f.submit('Submit', class: 'btn btn-primary') %>
|
54
50
|
|
55
51
|
<%= link_to t(:cancel), nimbleshop_authorizedotnet.authorizedotnet_path, class: 'cancel btn' %>
|
@@ -57,9 +53,3 @@
|
|
57
53
|
<% end %>
|
58
54
|
|
59
55
|
</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)
|
34
34
|
record_transaction(response, 'authorized', card_number: creditcard.display_number, cardtype: creditcard.cardtype)
|
35
35
|
|
36
36
|
if response.success?
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nimbleshop_authorizedotnet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Neeraj Singh
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-11 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.4
|
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.4
|
46
46
|
description: Provides Authorize.net support to nimbleShop
|
47
47
|
email:
|
48
48
|
- neeraj@BigBinary.com
|
@@ -89,9 +89,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
90
|
none: false
|
91
91
|
requirements:
|
92
|
-
- - ! '
|
92
|
+
- - ! '>='
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
94
|
+
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
97
|
rubygems_version: 1.8.24
|