caboose-cms 0.5.148 → 0.5.149
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/caboose/orders_controller.rb +7 -12
- data/lib/caboose/version.rb +1 -1
- metadata +1 -2
- data/app/models/caboose/#Untitled-1# +0 -6
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWQ0ZGM5ODJlNWI3YzE1ZDBmMGJlYjdhM2NhMDZkODk4MDM0MDI3NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDg5YTM3NDFlMjg4NThlMmM5YjY4Y2Q0ZTRjNjBiNDMxOWNiMGU4ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmFiODIxMjc1ZjZhYzM4MjI3MWI2MWQzMDJmYjFlY2UxOTc2ZjU5YWQ3ODRk
|
10
|
+
OTdhNGJhODk2YWVhYjEwNWY1ZDU3MDc0ZTExZmE3N2M2YmYxZWMxYjBiMzdl
|
11
|
+
ODAwYjM4Y2RjYWMzYjBlNjk4NWRmNTNlNDE1ZDFiYzZmYjhhNDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDBmZDZmNzExZTNlYzAyZTYxMzJkZGEyNjg0NmZlNjM1MThmOTBlNGM3ZGRj
|
14
|
+
NTVhYzRhODQ0ZjFjZWY0YmM1ZDE3NDUwZGRmY2NiYWYyNDE3MjFjZjI5NGRl
|
15
|
+
NWFjOTg2ZmI1Y2ExYmU1MGNhMGY1NjZhNzk4NzA0NTM2OWZjYmQ=
|
@@ -77,26 +77,21 @@ module Caboose
|
|
77
77
|
sc = @site.store_config
|
78
78
|
case sc.pp_name
|
79
79
|
when 'authorize.net'
|
80
|
+
transaction = AuthorizeNet::AIM::Transaction.new(sc.pp_username, sc.pp_password)
|
81
|
+
response = transaction.prior_auth_capture(t.transaction_id, order.total)
|
82
|
+
Caboose.log(response.inspect)
|
80
83
|
|
81
|
-
response = AuthorizeNet::SIM::Transaction.new(
|
82
|
-
sc.pp_username,
|
83
|
-
sc.pp_password,
|
84
|
-
order.total,
|
85
|
-
:transaction_type => 'CAPTURE_ONLY',
|
86
|
-
:transaction_id => t.transaction_id
|
87
|
-
)
|
88
84
|
order.update_attribute(:financial_status, Order::FINANCIAL_STATUS_CAPTURED)
|
89
85
|
resp.success = 'Captured funds successfully'
|
90
|
-
|
91
|
-
Caboose.log(response.inspect)
|
92
|
-
|
86
|
+
|
93
87
|
ot = Caboose::OrderTransaction.new(
|
94
88
|
:order_id => order.id,
|
95
89
|
:date_processed => DateTime.now.utc,
|
96
90
|
:transaction_type => Caboose::OrderTransaction::TYPE_CAPTURE
|
97
91
|
)
|
98
|
-
ot.success = response.
|
99
|
-
ot.transaction_id = response.transaction_id
|
92
|
+
ot.success = response.response_code && response.response_code == '1'
|
93
|
+
ot.transaction_id = response.transaction_id
|
94
|
+
ot.auth_code = response.authorization_code
|
100
95
|
ot.response_code = response.response_code
|
101
96
|
ot.amount = order.total
|
102
97
|
ot.save
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.149
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
@@ -565,7 +565,6 @@ files:
|
|
565
565
|
- app/helpers/caboose/products_helper.rb
|
566
566
|
- app/mailers/caboose/login_mailer.rb
|
567
567
|
- app/mailers/caboose/orders_mailer.rb
|
568
|
-
- app/models/caboose/#Untitled-1#
|
569
568
|
- app/models/caboose/ab_option.rb
|
570
569
|
- app/models/caboose/ab_testing.rb
|
571
570
|
- app/models/caboose/ab_value.rb
|