paypal-sdk-core 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e04a921fa53080f41f2ef54645d19ff65e4de2b5
|
4
|
+
data.tar.gz: 0d53d03ae04b88ce3588a271abb11e2a5f7e96c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c3921eaeaa79af095041dd371b7882e3ccb312904d89abc0ac91bcc60ba73fc706b7f0f166e198fc5105799a099503c02cccc4317c8519e0e15a0985ea39e5b
|
7
|
+
data.tar.gz: e0e3f3af921f7d0cdbe4d81e93086ac75746b4466d65a045cbd24791bf8b101ca6f898d36c572b0ee8f3caa8d416ec4d0c03b23e589e8827e8cd20b56d2c3d35
|
@@ -74,7 +74,8 @@ module PayPal::SDK::Core
|
|
74
74
|
:device_ipaddress, :sandbox_email_address,
|
75
75
|
:mode, :endpoint, :merchant_endpoint, :platform_endpoint, :ipn_endpoint,
|
76
76
|
:rest_endpoint, :rest_token_endpoint, :client_id, :client_secret,
|
77
|
-
:openid_endpoint, :openid_redirect_uri, :openid_client_id, :openid_client_secret
|
77
|
+
:openid_endpoint, :openid_redirect_uri, :openid_client_id, :openid_client_secret,
|
78
|
+
:verbose_logging
|
78
79
|
|
79
80
|
alias_method :end_point=, :endpoint=
|
80
81
|
alias_method :end_point, :endpoint
|
@@ -58,6 +58,10 @@ module PayPal::SDK::Core
|
|
58
58
|
# Make Http call
|
59
59
|
# * payload - Hash(:http, :method, :uri, :body, :header)
|
60
60
|
def http_call(payload)
|
61
|
+
if Config.config.verbose_logging
|
62
|
+
logger.info payload.inspect
|
63
|
+
end
|
64
|
+
|
61
65
|
response =
|
62
66
|
log_http_call(payload) do
|
63
67
|
http = payload[:http] || create_http_connection(payload[:uri])
|
@@ -69,6 +73,15 @@ module PayPal::SDK::Core
|
|
69
73
|
end
|
70
74
|
end
|
71
75
|
end
|
76
|
+
|
77
|
+
if Config.config.verbose_logging
|
78
|
+
if response.code.to_i == 200
|
79
|
+
logger.info(response.body)
|
80
|
+
else
|
81
|
+
logger.warn(response.body)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
72
85
|
handle_response(response)
|
73
86
|
end
|
74
87
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.4.1
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Core library for PayPal ruby SDKs
|