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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26d5cc03f095f6a467229dda391c16f4962178e2
4
- data.tar.gz: d64140a217254a3448a187fcfb45f65b4cf88901
3
+ metadata.gz: 0df91f402ee9ceb35a4c7d8451c6da296ee7244c
4
+ data.tar.gz: 517c3d3fab42e510e9a5d7f714a01866ed551c0f
5
5
  SHA512:
6
- metadata.gz: 5621d9560cbdb4e1c3afdcc9d5bb54f4b2b67008f63df9588ad0cafffde2eee6e9615610a72f17615c254722a396c80c4752ae4427ac8d0347ec066e31551795
7
- data.tar.gz: 2cfde0d9ec65389b5d93fb9e85d19a5f5f6fe5a93771890eec23ed9d46bb1d97119599636aa639d4feb0cd0c04b6b0bf4ef5ff5194a99b4df22e41e46e97296b
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 sc.pp_name
56
- when 'authorize.net'
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 'stripe'
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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.8.3'
2
+ VERSION = '0.8.4'
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.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry