caboose-cms 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/caboose/invoice_pdf.rb +3 -3
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0df91f402ee9ceb35a4c7d8451c6da296ee7244c
|
4
|
+
data.tar.gz: 517c3d3fab42e510e9a5d7f714a01866ed551c0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa724a56d863ed986a4706cab21246d0a0d8ffe9d590f26a583e77285b2590d0a948af9eb49e33c6b3d20acb55f6a42ffb0b6a69699af696ec7bda782d848036
|
7
|
+
data.tar.gz: 69a7f830fcd8805eba042a578e97d9c33d99f575ff26b8b672ceb0cf6a789452dca98ff1bac4f4d632109ee2a80dd4dbced987e99f5f41ed9cb3c2406ffaa0a6
|
@@ -52,8 +52,8 @@ module Caboose
|
|
52
52
|
sc = self.invoice.site.store_config
|
53
53
|
ot = self.invoice.invoice_transactions.where(:transaction_type => InvoiceTransaction::TYPE_AUTHORIZE, :success => true).first
|
54
54
|
|
55
|
-
case
|
56
|
-
when
|
55
|
+
case ot.payment_processor
|
56
|
+
when StoreConfig::PAYMENT_PROCESSOR_AUTHNET
|
57
57
|
|
58
58
|
if ot
|
59
59
|
t = AuthorizeNet::Reporting::Transaction.new(sc.authnet_api_login_id, sc.authnet_api_transaction_key)
|
@@ -68,7 +68,7 @@ module Caboose
|
|
68
68
|
self.card_number = ""
|
69
69
|
end
|
70
70
|
|
71
|
-
when
|
71
|
+
when StoreConfig::PAYMENT_PROCESSOR_STRIPE
|
72
72
|
|
73
73
|
self.card_type = self.invoice.customer.card_brand
|
74
74
|
self.card_number = self.invoice.customer.card_last4
|
data/lib/caboose/version.rb
CHANGED