catarse_compra_facil 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/catarse_compra_facil/version.rb +1 -1
- data/lib/catarse_compra_facil.rb +7 -6
- 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: 1cedb247cbbabb2cc46f302fc8f897230b5d9f51
|
4
|
+
data.tar.gz: bc5d5af048f441a70ecceb18f8ffc94a6303ef40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82c3a44ba60e96d5107e67b1fa5d887aa9b22fd9f80f3c20c49c33e6212d14c1d461275e71a977d491af31de753ea637635bc9800c6bad70f85a68f4945ac3d3
|
7
|
+
data.tar.gz: 6d452648cbae63eeae0a19b89a89af3f6c9aada74bd1fb143c2acaa52c8a7c42d8555170a347c9d41261c5962b4a3166653465ab1fc0e64fea6f02a0962a3682
|
data/lib/catarse_compra_facil.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|