caboose-cms 0.7.20 → 0.7.21
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ef225fd70b95f2debbfbb29bbdb69eaed9e9019
|
4
|
+
data.tar.gz: 7bc5bba7f9317cc9a5698aa88408db8174bff2e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40e1510160f257a3b3e04725b9ce859f31f78ef8f012277ae320e0391f8acf3e1880ee3554d24d0fce291bad05715631a127d25db4499cb2407fe8a407818a2e
|
7
|
+
data.tar.gz: b4034cba417d1a988834cd741e9cd43d7d234ac7562e6c85731cc3c534946d689468add4c08c78653832a4bea0a4bdffcfc319f4b6f4df16b48663b906371863
|
@@ -341,7 +341,7 @@ module Caboose
|
|
341
341
|
order.date_authorized = DateTime.now.utc
|
342
342
|
|
343
343
|
# Tell taxcloud the order was authorized
|
344
|
-
|
344
|
+
Caboose::TaxCalculator.authorized(order)
|
345
345
|
|
346
346
|
# Take funds from any gift cards that were used on the order
|
347
347
|
order.take_gift_card_funds
|
@@ -30,14 +30,14 @@ module Caboose
|
|
30
30
|
|
31
31
|
def self.authorized(order)
|
32
32
|
t = self.transaction(order)
|
33
|
-
return if t.nil?
|
33
|
+
return if t.nil? || t.cart_items.nil? || t.cart_items.count == 0
|
34
34
|
t.order_id = order.id
|
35
35
|
t.authorized
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.captured(order)
|
39
|
-
t = self.transaction(order)
|
40
|
-
return if t.nil?
|
39
|
+
t = self.transaction(order)
|
40
|
+
return if t.nil? || t.cart_items.nil? || t.cart_items.count == 0
|
41
41
|
t.order_id = order.id
|
42
42
|
t.captured
|
43
43
|
end
|
data/lib/caboose/version.rb
CHANGED