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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjlmZTE2OTcxYmE5Y2JmOGJhZTk3NmU2YTlkOWM1MmM5NWIxYmIwMg==
4
+ OWQ0ZGM5ODJlNWI3YzE1ZDBmMGJlYjdhM2NhMDZkODk4MDM0MDI3NQ==
5
5
  data.tar.gz: !binary |-
6
- NzM1YWI5ZDFjNGZhMmI5NjBiMWU4MmM1NTM0NTAwMDkxM2Q0OTQwZA==
6
+ ZDg5YTM3NDFlMjg4NThlMmM5YjY4Y2Q0ZTRjNjBiNDMxOWNiMGU4ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTdmZTUxYmZjZDQ2NGJjNDQxNjJiODM1MTY3NjU5MWQwNzlmMDY0OGVkMTc5
10
- OWY4Zjg5ZmZlYzMyMTdjMDBmNTU0MTRlYzkwNmE4YjdiNDZmYmQwMTVmZDkz
11
- YTdmYjAxZWJmNjc5NWU0OWIxYzU5YzljYWI5N2U1MDFjMjEzMTI=
9
+ MmFiODIxMjc1ZjZhYzM4MjI3MWI2MWQzMDJmYjFlY2UxOTc2ZjU5YWQ3ODRk
10
+ OTdhNGJhODk2YWVhYjEwNWY1ZDU3MDc0ZTExZmE3N2M2YmYxZWMxYjBiMzdl
11
+ ODAwYjM4Y2RjYWMzYjBlNjk4NWRmNTNlNDE1ZDFiYzZmYjhhNDg=
12
12
  data.tar.gz: !binary |-
13
- ZDM1YzYyZTc0MDEzYTU5YTk0M2RkNzhkOGQyMzI3YTA5MzY0MTY3NDU4N2Jk
14
- OGMwYWRhZmY1OTNlMmExNTNiN2Y0MjhlNmNiNDgyM2YxNDZlZDk2MzkxMDA5
15
- ZDUwODI4MmNjODUxNTNjMTMwMjA1YTJkYjkxMzU0NWRlNzkwZWY=
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.success?
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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.148'
2
+ VERSION = '0.5.149'
3
3
  end
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.148
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
@@ -1,6 +0,0 @@
1
-
2
- GL Hardware 500
3
- LVL
4
- 16' 2 68
5
- Brackets
6
-