nimbleshop_authorizedotnet 0.0.3 → 0.0.4.beta1
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=
|
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' %>
|
34
36
|
</label>
|
35
37
|
</div>
|
36
38
|
</div>
|
37
39
|
|
38
|
-
<div class=
|
39
|
-
<div class=
|
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=
|
52
|
+
<div class='form-actions'>
|
49
53
|
<%= f.submit('Submit', class: 'btn btn-primary') %>
|
50
54
|
|
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,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.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4.beta1
|
5
|
+
prerelease: 6
|
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-12 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.
|
37
|
+
version: 0.0.4.beta1
|
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.
|
45
|
+
version: 0.0.4.beta1
|
46
46
|
description: Provides Authorize.net support to nimbleShop
|
47
47
|
email:
|
48
48
|
- neeraj@BigBinary.com
|
@@ -86,18 +86,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- - ! '>='
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
|
-
segments:
|
90
|
-
- 0
|
91
|
-
hash: -4490084150820769704
|
92
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
90
|
none: false
|
94
91
|
requirements:
|
95
|
-
- - ! '
|
92
|
+
- - ! '>'
|
96
93
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
98
|
-
segments:
|
99
|
-
- 0
|
100
|
-
hash: -4490084150820769704
|
94
|
+
version: 1.3.1
|
101
95
|
requirements: []
|
102
96
|
rubyforge_project:
|
103
97
|
rubygems_version: 1.8.24
|