nimbleshop_authorizedotnet 0.0.1.rc6 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,17 @@
|
|
1
1
|
module NimbleshopAuthorizedotnet
|
2
|
+
|
2
3
|
class PaymentsController < ::ActionController::Base
|
3
4
|
|
4
5
|
def create
|
5
|
-
order = Order.find_by_id(session[:order_id])
|
6
|
+
order = Order.find_by_id!(session[:order_id])
|
7
|
+
|
6
8
|
address_attrs = order.final_billing_address.to_credit_card_attributes
|
7
9
|
creditcard_attrs = params[:creditcard].merge(address_attrs)
|
8
10
|
creditcard = Creditcard.new(creditcard_attrs)
|
11
|
+
|
9
12
|
processor = NimbleshopAuthorizedotnet::Processor.new(order)
|
10
13
|
|
11
|
-
default_action = Shop.
|
14
|
+
default_action = Shop.current.default_creditcard_action
|
12
15
|
|
13
16
|
if processor.send(default_action, creditcard: creditcard)
|
14
17
|
url = nimbleshop_simply.order_path(order)
|
@@ -28,4 +31,5 @@ module NimbleshopAuthorizedotnet
|
|
28
31
|
end
|
29
32
|
|
30
33
|
end
|
34
|
+
|
31
35
|
end
|
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.1
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.1
|
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-10 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.1
|
37
|
+
version: 0.0.1
|
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.1
|
45
|
+
version: 0.0.1
|
46
46
|
description: Provides Authorize.net support to nimbleShop
|
47
47
|
email:
|
48
48
|
- neeraj@BigBinary.com
|
@@ -71,7 +71,6 @@ files:
|
|
71
71
|
- lib/nimbleshop_authorizedotnet/engine.rb
|
72
72
|
- lib/nimbleshop_authorizedotnet/gateway.rb
|
73
73
|
- lib/nimbleshop_authorizedotnet/processor.rb
|
74
|
-
- lib/nimbleshop_authorizedotnet/version.rb
|
75
74
|
- lib/nimbleshop_authorizedotnet.rb
|
76
75
|
- lib/tasks/nimbleshop_authorizedotnet_tasks.rake
|
77
76
|
- README.md
|
@@ -87,12 +86,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
86
|
- - ! '>='
|
88
87
|
- !ruby/object:Gem::Version
|
89
88
|
version: '0'
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
hash: -1208334279951978781
|
90
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
93
|
none: false
|
92
94
|
requirements:
|
93
|
-
- - ! '
|
95
|
+
- - ! '>='
|
94
96
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
97
|
+
version: '0'
|
98
|
+
segments:
|
99
|
+
- 0
|
100
|
+
hash: -1208334279951978781
|
96
101
|
requirements: []
|
97
102
|
rubyforge_project:
|
98
103
|
rubygems_version: 1.8.24
|