workarea-usaepay 1.0.24 → 1.0.26
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 +1 -7
- 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: b50ddf4746d81888f255c53088a6dff2f2f1ddeab58152c83b42531ae8371f62
|
4
|
+
data.tar.gz: 1d2db50b2b37d13aeeffd2f14a0ee401736407b778b1f46343509fc0aeb82d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc74c51aa3c85016d70c75d3f660fbbaf20286c22e50937edf29f833fc779434973f6db117c76af1287b6006606480e07dd59e06a44ef178f473c9356f8f822b
|
7
|
+
data.tar.gz: 146d0ea59a4f69142e314828a042791dbf0ff2ecf0f6fdece86a81db32860f853c0ad025422863a37fd5fb1fa944c9a6c20a342db1ec0ef1164502c7c6155df7
|
data/lib/workarea/usaepay.rb
CHANGED
@@ -28,13 +28,7 @@ module Workarea
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.auto_initialize_gateway
|
31
|
-
if credentials.present?
|
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
|
-
|
31
|
+
if credentials.present? && unless Rails.env.test?
|
38
32
|
self.gateway = ActiveMerchant::Billing::UsaEpayCustom.new credentials
|
39
33
|
else
|
40
34
|
self.gateway = ActiveMerchant::Billing::BogusGateway.new
|