payoneer 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/payoneer/request.rb +6 -9
- metadata +1 -1
data/lib/payoneer/request.rb
CHANGED
@@ -12,19 +12,16 @@ module Payoneer
|
|
12
12
|
end
|
13
13
|
|
14
14
|
private
|
15
|
+
|
15
16
|
def api_url
|
16
|
-
|
17
|
-
path = "/payouts/HttpApi/Api.aspx"
|
18
|
-
|
19
|
-
[protocol, host, path].join
|
17
|
+
['https://', host, '/payouts/HttpApi/Api.aspx'].join
|
20
18
|
end
|
21
19
|
|
22
20
|
def host
|
23
|
-
sandbox = config.environment.eql?(:production) ?
|
24
|
-
|
25
|
-
root_domain = "payoneer.com"
|
21
|
+
sandbox = config.environment.eql?(:production) ? nil : 'sandbox'
|
22
|
+
sub_domain = config.client_cert ? 'apicert' : 'api'
|
26
23
|
|
27
|
-
[
|
24
|
+
[sub_domain, sandbox, 'payoneer.com'].compact.join('.')
|
28
25
|
end
|
29
26
|
|
30
27
|
def configure_security
|
@@ -35,4 +32,4 @@ module Payoneer
|
|
35
32
|
Payoneer::Configuration
|
36
33
|
end
|
37
34
|
end
|
38
|
-
end
|
35
|
+
end
|