workarea-usaepay 1.0.23 → 1.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/workarea/usaepay.rb +6 -6
- data/lib/workarea/usaepay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbf794e16a05b14dda1ef36c175009077ce27e40e72454d6d86572c65715f4ab
|
4
|
+
data.tar.gz: dd7de4f5f99a5b57832a17ecac583558fe98d815a3c11bbc83a187f7955f444f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd8f9d2a5b03b42b9795624f31f03cdaa288e622a56d7a2c340af2133a65fd655e392320fd73bf9aeeed260c6e16f9585b378275b2615b57c81d402e476810b7
|
7
|
+
data.tar.gz: 2c44197fe50f6d960432dac143793278188f6e31debd1cf1dc31e2eba72f20c39b6edf2c65a272434162050b741d39d5a317a6ff8d974fee9bfa5bd4433981e9
|
data/lib/workarea/usaepay.rb
CHANGED
@@ -29,15 +29,15 @@ module Workarea
|
|
29
29
|
|
30
30
|
def self.auto_initialize_gateway
|
31
31
|
if credentials.present?
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
if ENV['HTTP_PROXY'].present?
|
33
|
+
uri = URI.parse(ENV['HTTP_PROXY'])
|
34
|
+
ActiveMerchant::Billing::UsaEpayCustom.proxy_address = uri.host
|
35
|
+
ActiveMerchant::Billing::UsaEpayCustom.proxy_port = uri.port
|
36
|
+
end
|
37
37
|
|
38
38
|
self.gateway = ActiveMerchant::Billing::UsaEpayCustom.new credentials
|
39
39
|
else
|
40
|
-
self.gateway = ActiveMerchant::Billing::
|
40
|
+
self.gateway = ActiveMerchant::Billing::BogusGateway.new
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|