paypal-sdk-rest 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paypal-sdk/core/api/base.rb +3 -1
- data/lib/paypal-sdk/core/openid_connect/api.rb +2 -1
- data/lib/paypal-sdk/rest/api.rb +2 -1
- data/lib/paypal-sdk/rest/version.rb +1 -1
- data/spec/log/rest_http.log +17 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5c7274698b9bb853894c15bc58b7396cef9607f
|
4
|
+
data.tar.gz: f897393c936db98771b3b07e747ae33044867be1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f14a3a24092aca8356609f67ee38a59a82e478746e0b058c779e21c94b9d7f3f8628a6a542a2fcc0783d664be66d0f8daf141384b7c3d906b3bb8a79f88e07b
|
7
|
+
data.tar.gz: 6ade26596828a8216ad4c340c7e0b376ecef2e7412fa62dd70352c3902d358fa18309100b46ad2e0e9e63226a5d3564092075e3c9bc7e8bc8d4fd2ea53bb985d
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'paypal-sdk/rest/version'
|
2
|
+
|
1
3
|
module PayPal::SDK::Core
|
2
4
|
|
3
5
|
module API
|
@@ -154,7 +156,7 @@ module PayPal::SDK::Core
|
|
154
156
|
end
|
155
157
|
|
156
158
|
def user_agent
|
157
|
-
@user_agent ||= "PayPalSDK/rest-sdk-ruby #{VERSION} (#{sdk_library_details})"
|
159
|
+
@user_agent ||= "PayPalSDK/rest-sdk-ruby #{PayPal::SDK::REST::VERSION} (#{sdk_library_details})"
|
158
160
|
end
|
159
161
|
end
|
160
162
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'multi_json'
|
2
|
+
require 'paypal-sdk/rest/version'
|
2
3
|
|
3
4
|
module PayPal::SDK
|
4
5
|
module Core
|
@@ -39,7 +40,7 @@ module PayPal::SDK
|
|
39
40
|
|
40
41
|
class << self
|
41
42
|
def user_agent
|
42
|
-
@user_agent ||= "PayPalSDK/openid-connect-ruby #{VERSION} (#{sdk_library_details})"
|
43
|
+
@user_agent ||= "PayPalSDK/openid-connect-ruby #{PayPal::SDK::REST::VERSION} (#{sdk_library_details})"
|
43
44
|
end
|
44
45
|
end
|
45
46
|
|
data/lib/paypal-sdk/rest/api.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'paypal-sdk-core'
|
2
|
+
require 'paypal-sdk/rest/version'
|
2
3
|
|
3
4
|
module PayPal
|
4
5
|
module SDK
|
@@ -12,7 +13,7 @@ module PayPal
|
|
12
13
|
|
13
14
|
class << self
|
14
15
|
def user_agent
|
15
|
-
@user_agent ||= "PayPalSDK/PayPal-Ruby-SDK #{VERSION} (#{sdk_library_details})"
|
16
|
+
@user_agent ||= "PayPalSDK/PayPal-Ruby-SDK #{PayPal::SDK::REST::VERSION} (#{sdk_library_details})"
|
16
17
|
end
|
17
18
|
end
|
18
19
|
end
|
data/spec/log/rest_http.log
CHANGED
@@ -2,42 +2,40 @@ opening connection to api.sandbox.paypal.com:443...
|
|
2
2
|
opened
|
3
3
|
starting SSL for api.sandbox.paypal.com:443...
|
4
4
|
SSL established
|
5
|
-
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
6
|
-
-> "HTTP/1.1
|
5
|
+
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015ZyrqDqUwads.muwOVYUAKx74DlwGYa04fIfu0xHAbW4\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.3 (paypal-sdk-core 1.1.3; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
|
6
|
+
-> "HTTP/1.1 404 Not Found\r\n"
|
7
7
|
-> "Server: Apache-Coyote/1.1\r\n"
|
8
|
-
-> "PROXY_SERVER_INFO: host=
|
9
|
-
-> "Paypal-Debug-Id:
|
10
|
-
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=
|
8
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=7182\r\n"
|
9
|
+
-> "Paypal-Debug-Id: e632ea9d7d8f6\r\n"
|
10
|
+
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=6491&TopLevelTxnStartTime=14c948cca8d&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=10160\r\n"
|
11
11
|
-> "Content-Language: *\r\n"
|
12
|
-
-> "Date: Tue,
|
13
|
-
-> "Connection: close\r\n"
|
12
|
+
-> "Date: Tue, 07 Apr 2015 15:43:16 GMT\r\n"
|
14
13
|
-> "Content-Type: application/json\r\n"
|
15
|
-
-> "Content-Length:
|
16
|
-
-> "Connection: close\r\n"
|
14
|
+
-> "Content-Length: 207\r\n"
|
17
15
|
-> "\r\n"
|
18
|
-
reading
|
19
|
-
-> "{\"name\":\"
|
20
|
-
read
|
21
|
-
Conn
|
16
|
+
reading 207 bytes...
|
17
|
+
-> "{\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"The requested resource ID was not found\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INVALID_RESOURCE_ID\",\"debug_id\":\"e632ea9d7d8f6\"}"
|
18
|
+
read 207 bytes
|
19
|
+
Conn keep-alive
|
22
20
|
opening connection to api.sandbox.paypal.com:443...
|
23
21
|
opened
|
24
22
|
starting SSL for api.sandbox.paypal.com:443...
|
25
23
|
SSL established
|
26
|
-
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
24
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015ZyrqDqUwads.muwOVYUAKx74DlwGYa04fIfu0xHAbW4\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.3 (paypal-sdk-core 1.1.3; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 2\r\n\r\n"
|
27
25
|
<- "{}"
|
28
26
|
-> "HTTP/1.1 400 Bad Request\r\n"
|
29
27
|
-> "Server: Apache-Coyote/1.1\r\n"
|
30
|
-
-> "PROXY_SERVER_INFO: host=
|
31
|
-
-> "Paypal-Debug-Id:
|
32
|
-
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=
|
28
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=2269\r\n"
|
29
|
+
-> "Paypal-Debug-Id: 383fe0c9634bd\r\n"
|
30
|
+
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=468&TopLevelTxnStartTime=14c948cccca&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=22334\r\n"
|
33
31
|
-> "Content-Language: *\r\n"
|
34
|
-
-> "Date: Tue,
|
32
|
+
-> "Date: Tue, 07 Apr 2015 15:43:17 GMT\r\n"
|
35
33
|
-> "Connection: close\r\n"
|
36
34
|
-> "Content-Type: application/json\r\n"
|
37
35
|
-> "Content-Length: 306\r\n"
|
38
36
|
-> "Connection: close\r\n"
|
39
37
|
-> "\r\n"
|
40
38
|
reading 306 bytes...
|
41
|
-
-> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"intent\",\"issue\":\"Required field missing\"},{\"field\":\"payer\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"
|
39
|
+
-> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"intent\",\"issue\":\"Required field missing\"},{\"field\":\"payer\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"383fe0c9634bd\"}"
|
42
40
|
read 306 bytes
|
43
41
|
Conn close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|