catarse_compra_facil 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f7871840a47ca181afc4aeceefd7fb76be8126c
4
- data.tar.gz: 9fabcdfab45be77b16e084b5454a17dfb1b4b83a
3
+ metadata.gz: 1cedb247cbbabb2cc46f302fc8f897230b5d9f51
4
+ data.tar.gz: bc5d5af048f441a70ecceb18f8ffc94a6303ef40
5
5
  SHA512:
6
- metadata.gz: b46e31a10a828134997aad980efb1cd05922a3410e5273449d9d0b4b579fb28609e6fa531b3d9833df01d12b01ef1d43b17831254d1ae7abefe649002fb681fb
7
- data.tar.gz: 96c277f05fabd13072a1da019b47bd779d45908dd688a140055738da5f68962cd2bd5926b1126e15b87945c244b4f7d4ef6cc1bf8d3db6318991fca7f34a0726
6
+ metadata.gz: 82c3a44ba60e96d5107e67b1fa5d887aa9b22fd9f80f3c20c49c33e6212d14c1d461275e71a977d491af31de753ea637635bc9800c6bad70f85a68f4945ac3d3
7
+ data.tar.gz: 6d452648cbae63eeae0a19b89a89af3f6c9aada74bd1fb143c2acaa52c8a7c42d8555170a347c9d41261c5962b4a3166653465ab1fc0e64fea6f02a0962a3682
@@ -1,3 +1,3 @@
1
1
  module CatarseCompraFacil
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -30,7 +30,12 @@ module CatarseCompraFacil
30
30
  attrs.each {|key, value| self.send("#{key}=", value)}
31
31
  @user_id_back_office = -1
32
32
  self.payment_company = "multibanco"
33
- self.user_type = 10241
33
+ if Rails.env.development? || Rails.env.test?
34
+ self.user_type = 10241
35
+ else
36
+ self.user_type = 11249
37
+ end
38
+
34
39
  self.insert_mode = "SaveCompraToBDValor1"
35
40
  end
36
41
 
@@ -96,11 +101,7 @@ module CatarseCompraFacil
96
101
  if PaymentEngines.configuration[:comprafacil_CustomerID] and PaymentEngines.configuration[:comprafacil_password]
97
102
  self.user = PaymentEngines.configuration[:comprafacil_CustomerID]
98
103
  self.password = PaymentEngines.configuration[:comprafacil_password]
99
- if Rails.env.development? || Rails.env.test?
100
- self.user_type = 10241
101
- else
102
- self.user_type = 11249
103
- end
104
+
104
105
  else
105
106
  puts "[PayPal] An API Certificate or API Signature is required to make requests to PayPal"
106
107
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_compra_facil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - EdgeInnovation