paypal-sdk-core 0.2.10 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +3 -0
- data/lib/paypal-sdk/core/api/rest.rb +7 -3
- data/lib/paypal-sdk/core/exceptions.rb +5 -2
- data/lib/paypal-sdk/core/version.rb +1 -1
- data/spec/log/rest_http.log +58 -86
- 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: dc7e9f536ca1f523039fb7debb920826d5be289b
|
4
|
+
data.tar.gz: e867223da42c4f476dbdccec289332c4e9f9a0c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 452955920aa9d8c7596b61bd0d38ea7f45eb4af3fed3de21a1aaabf7177e469c288b7a5accd83ab99be9e64d4e12cdbaca6cde3105d4345682637af29e01a339
|
7
|
+
data.tar.gz: 806e6a49ce2ce66e875c75972e318aa41138294768c21b6e7f8cbf41f0293f4cc4a8799646edf996f05a1de18500d6530e774aa9234bacc26054d5459dd7539d
|
data/CHANGELOG.txt
CHANGED
@@ -45,7 +45,7 @@ module PayPal::SDK::Core
|
|
45
45
|
end
|
46
46
|
|
47
47
|
# Generate Oauth token or Get cached
|
48
|
-
def token_hash
|
48
|
+
def token_hash(auth_code=nil)
|
49
49
|
validate_token_hash
|
50
50
|
@token_hash ||=
|
51
51
|
begin
|
@@ -54,6 +54,10 @@ module PayPal::SDK::Core
|
|
54
54
|
token_headers = default_http_header.merge({
|
55
55
|
"Content-Type" => "application/x-www-form-urlencoded",
|
56
56
|
"Authorization" => "Basic #{basic_auth}" })
|
57
|
+
if auth_code != nil
|
58
|
+
TOKEN_REQUEST_PARAMS.replace "grant_type=authorization_code&response_type=token&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&code="
|
59
|
+
TOKEN_REQUEST_PARAMS << auth_code
|
60
|
+
end
|
57
61
|
response = http_call( :method => :post, :uri => token_uri, :body => TOKEN_REQUEST_PARAMS, :header => token_headers )
|
58
62
|
MultiJson.load(response.body, :symbolize_keys => true)
|
59
63
|
end
|
@@ -61,8 +65,8 @@ module PayPal::SDK::Core
|
|
61
65
|
attr_writer :token_hash
|
62
66
|
|
63
67
|
# Get access token
|
64
|
-
def token
|
65
|
-
token_hash[:access_token]
|
68
|
+
def token(auth_code=nil)
|
69
|
+
token_hash(auth_code)[:access_token]
|
66
70
|
end
|
67
71
|
|
68
72
|
# Get access token type
|
@@ -12,8 +12,11 @@ module PayPal::SDK::Core
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def to_s
|
15
|
-
|
16
|
-
|
15
|
+
begin
|
16
|
+
response_body = JSON.parse(response.body)
|
17
|
+
debug_id = response_body["debug_id"]
|
18
|
+
rescue
|
19
|
+
end
|
17
20
|
message = "Failed."
|
18
21
|
message << " Response code = #{response.code}." if response.respond_to?(:code)
|
19
22
|
message << " Response message = #{response.message}." if response.respond_to?(:message)
|
data/spec/log/rest_http.log
CHANGED
@@ -2,57 +2,53 @@ 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
|
-
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
5
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015w4xOdsuRFioA4nJQQPtj51urealWpy9RRdeyvUkciyU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; 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: 286\r\n\r\n"
|
6
6
|
<- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"4417119669820331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"}}]}"
|
7
|
-
-> "HTTP/1.1
|
7
|
+
-> "HTTP/1.1 500 Internal Server Error\r\n"
|
8
8
|
-> "Server: Apache-Coyote/1.1\r\n"
|
9
|
-
-> "PROXY_SERVER_INFO: host=
|
10
|
-
-> "Paypal-Debug-Id:
|
11
|
-
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=
|
12
|
-
-> "CORRELATION-ID:
|
9
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=18472\r\n"
|
10
|
+
-> "Paypal-Debug-Id: f9104a27e13e5\r\n"
|
11
|
+
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=128&TopLevelTxnStartTime=146f27dc87c&Host=slcsbjm2.slc.paypal.com&pid=6485\r\n"
|
12
|
+
-> "CORRELATION-ID: f9104a27e13e5\r\n"
|
13
13
|
-> "Content-Language: *\r\n"
|
14
|
-
-> "Date:
|
14
|
+
-> "Date: Tue, 01 Jul 2014 15:14:53 GMT\r\n"
|
15
|
+
-> "Connection: close\r\n"
|
15
16
|
-> "Content-Type: application/json\r\n"
|
16
|
-
-> "
|
17
|
-
-> "\r\n"
|
18
|
-
-> "498\r\n"
|
19
|
-
reading 1176 bytes...
|
20
|
-
-> "{\"id\":\"PAY-3MV24157GS7613613KOVRF3A\",\"create_time\":\"2014-06-25T18:20:28Z\",\"update_time\":\"2014-06-25T18:20:46Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"89M10973YV6618001\",\"create_time\":\"2014-06-25T18:20:28Z\",\"update_time\":\"2014-06-25T18:20:46Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-3MV24157GS7613613KOVRF3A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/89M10973YV6618001\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/89M10973YV6618001/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3MV24157GS7613613KOVRF3A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3MV24157GS7613613KOVRF3A\",\"rel\":\"self\",\"method\":\"GET\"}]}"
|
21
|
-
read 1176 bytes
|
22
|
-
reading 2 bytes...
|
23
|
-
-> "\r\n"
|
24
|
-
read 2 bytes
|
25
|
-
-> "0\r\n"
|
17
|
+
-> "Content-Length: 212\r\n"
|
18
|
+
-> "Connection: close\r\n"
|
26
19
|
-> "\r\n"
|
27
|
-
|
20
|
+
reading 212 bytes...
|
21
|
+
-> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"f9104a27e13e5\"}"
|
22
|
+
read 212 bytes
|
23
|
+
Conn close
|
28
24
|
opening connection to api.sandbox.paypal.com:443...
|
29
25
|
opened
|
30
26
|
starting SSL for api.sandbox.paypal.com:443...
|
31
27
|
SSL established
|
32
|
-
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
28
|
+
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015w4xOdsuRFioA4nJQQPtj51urealWpy9RRdeyvUkciyU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; 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"
|
33
29
|
-> "HTTP/1.1 200 OK\r\n"
|
34
30
|
-> "Server: Apache-Coyote/1.1\r\n"
|
35
|
-
-> "PROXY_SERVER_INFO: host=
|
36
|
-
-> "Paypal-Debug-Id:
|
37
|
-
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=
|
38
|
-
-> "CORRELATION-ID:
|
31
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=19195\r\n"
|
32
|
+
-> "Paypal-Debug-Id: aaf5966ba7e14\r\n"
|
33
|
+
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=128&TopLevelTxnStartTime=146f27e2e2f&Host=slcsbjm2.slc.paypal.com&pid=6485\r\n"
|
34
|
+
-> "CORRELATION-ID: aaf5966ba7e14\r\n"
|
39
35
|
-> "Content-Language: *\r\n"
|
40
|
-
-> "Date:
|
36
|
+
-> "Date: Tue, 01 Jul 2014 15:14:58 GMT\r\n"
|
41
37
|
-> "Content-Type: application/json\r\n"
|
42
38
|
-> "Transfer-Encoding: chunked\r\n"
|
43
39
|
-> "\r\n"
|
44
40
|
-> "2000\r\n"
|
45
41
|
reading 8192 bytes...
|
46
|
-
-> "{\"payments\":[{\"id\":\"PAY-
|
42
|
+
-> "{\"payments\":[{\"id\":\"PAY-83T25817RP8368727KOZNAZY\",\"create_time\":\"2014-07-01T15:14:47Z\",\"update_time\":\"2014-07-01T15:14:47Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\"}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-83T25817RP8368727KOZNAZY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-75C14040PR738111RKOZCKJY\",\"create_time\":\"2014-07-01T03:04:07Z\",\"update_time\":\"2014-07-01T03:04:52Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"0X959995UG898094S\",\"create_time\":\"2014-07-01T03:04:07Z\",\"update_time\":\"2014-07-01T03:04:24Z\",\"state\":\"captured\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-75C14040PR738111RKOZCKJY\",\"valid_until\":\"2014-07-30T03:04:07Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0X959995UG898094S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-75C14040PR738111RKOZCKJY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"5AX36219KM7410305\",\"create_time\":\"2014-07-01T03:04:33Z\",\"update_time\":\"2014-07-01T03:04:52Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"refunded\",\"parent_payment\":\"PAY-75C14040PR738111RKOZCKJY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5AX36219KM7410305\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-75C14040PR738111RKOZCKJY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"68C321273F455341N\",\"create_time\":\"2014-07-01T03:04:52Z\",\"update_time\":\"2014-07-01T03:04:52Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"capture_id\":\"5AX36219KM7410305\",\"parent_payment\":\"PAY-75C14040PR738111RKOZCKJY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/68C321273F455341N\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-75C14040PR738111RKOZCKJY\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5AX36219KM7410305\",\"rel\":\"capture\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-75C14040PR738111RKOZCKJY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-04119741D2824280KKOZCKAQ\",\"create_time\":\"2014-07-01T03:03:30Z\",\"update_time\":\"2014-07-01T03:04:05Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"5S7734598E429141P\",\"create_time\":\"2014-07-01T03:03:30Z\",\"update_time\":\"2014-07-01T03:03:48Z\",\"state\":\"captured\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-04119741D2824280KKOZCKAQ\",\"valid_until\":\"2014-07-30T03:03:30Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/5S7734598E429141P\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-04119741D2824280KKOZCKAQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"74678112543316045\",\"create_time\":\"2014-07-01T03:03:49Z\",\"update_time\":\"2014-07-01T03:04:05Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-04119741D2824280KKOZCKAQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/74678112543316045\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/74678112543316045/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-04119741D2824280KKOZCKAQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-04119741D2824280KKOZCKAQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-24X87669UW917345HKOZCJ3I\",\"create_time\":\"2014-07-01T03:03:09Z\",\"update_time\":\"2014-07-01T03:03:27Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"33389207MC184620A\",\"create_time\":\"2014-07-01T03:03:09Z\",\"update_time\":\"2014-07-01T03:03:27Z\",\"state\":\"authorized\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-24X87669UW917345HKOZCJ3I\",\"valid_until\":\"2014-07-30T03:03:09Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/33389207MC184620A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/33389207MC184620A/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/33389207MC184620A/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-24X87669UW917345HKOZCJ3I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-24X87669UW917345HKOZCJ3I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-4A2762581L5765008KOZCJWI\",\"create_time\":\"2014-07-01T03:02:49Z\",\"update_time\":\"2014-07-01T03:03:07Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"6084875294780954B\",\"create_time\":\"2014-07-01T03:02:49Z\",\"update_time\":\"2014-07-01T03:03:07Z\",\"state\":\"voided\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4A2762581L5765008KOZCJWI\",\"valid_until\":\"2014-07-30T03:02:49Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/6084875294780954B\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4A2762581L5765008KOZCJWI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4A2762581L5765008KOZCJWI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-44W51472W6847530TKOZCJNI\",\"create_time\":\"2014-07-01T03:02:13Z\",\"update_time\":\"2014-07-01T03:02:48Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\","
|
47
43
|
read 8192 bytes
|
48
44
|
reading 2 bytes...
|
49
45
|
-> "\r\n"
|
50
46
|
read 2 bytes
|
51
|
-
-> "
|
52
|
-
reading
|
53
|
-
-> "
|
54
|
-
-> "
|
55
|
-
read
|
47
|
+
-> "1eee\r\n"
|
48
|
+
reading 7918 bytes...
|
49
|
+
-> "\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"6"
|
50
|
+
-> "SY9768582671620U\",\"create_time\":\"2014-07-01T03:02:13Z\",\"update_time\":\"2014-07-01T03:02:30Z\",\"state\":\"captured\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-44W51472W6847530TKOZCJNI\",\"valid_until\":\"2014-07-30T03:02:13Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/6SY9768582671620U\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-44W51472W6847530TKOZCJNI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"5TN96168HJ076050W\",\"create_time\":\"2014-07-01T03:02:31Z\",\"update_time\":\"2014-07-01T03:02:48Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-44W51472W6847530TKOZCJNI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5TN96168HJ076050W\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5TN96168HJ076050W/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-44W51472W6847530TKOZCJNI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-44W51472W6847530TKOZCJNI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-8YB54723FB2116947KOZCJII\",\"create_time\":\"2014-07-01T03:01:53Z\",\"update_time\":\"2014-07-01T03:02:11Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"82Y40400U3695051W\",\"create_time\":\"2014-07-01T03:01:53Z\",\"update_time\":\"2014-07-01T03:02:11Z\",\"state\":\"authorized\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-8YB54723FB2116947KOZCJII\",\"valid_until\":\"2014-07-30T03:01:53Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/82Y40400U3695051W\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/82Y40400U3695051W/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/82Y40400U3695051W/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8YB54723FB2116947KOZCJII\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8YB54723FB2116947KOZCJII\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-4HT86066A05837023KOZCJDA\",\"create_time\":\"2014-07-01T03:01:32Z\",\"update_time\":\"2014-07-01T03:01:51Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"0DU60612AP6989827\",\"create_time\":\"2014-07-01T03:01:32Z\",\"update_time\":\"2014-07-01T03:01:51Z\",\"state\":\"refunded\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4HT86066A05837023KOZCJDA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0DU60612AP6989827\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0DU60612AP6989827/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4HT86066A05837023KOZCJDA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"0FD95699SF329615Y\",\"create_time\":\"2014-07-01T03:01:51Z\",\"update_time\":\"2014-07-01T03:01:51Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"sale_id\":\"0DU60612AP6989827\",\"parent_payment\":\"PAY-4HT86066A05837023KOZCJDA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/0FD95699SF329615Y\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4HT86066A05837023KOZCJDA\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0DU60612AP6989827\",\"rel\":\"sale\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4HT86066A05837023KOZCJDA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1F715992US872892WKOZCI6I\",\"create_time\":\"2014-07-01T03:01:13Z\",\"update_time\":\"2014-07-01T03:01:30Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"86C317783T509003S\",\"create_time\":\"2014-07-01T03:01:13Z\",\"update_time\":\"2014-07-01T03:01:30Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-1F715992US872892WKOZCI6I\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/86C317783T509003S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/86C317783T509003S/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1F715992US872892WKOZCI6I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1F715992US872892WKOZCI6I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7FE59667KW150931PKOZCI5I\",\"create_time\":\"2014-07-01T03:01:09Z\",\"update_time\":\"2014-07-01T03:01:13Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"7BC930470M001923L\",\"create_time\":\"2014-07-01T03:01:09Z\",\"update_time\":\"2014-07-01T03:01:13Z\",\"state\":\"authorized\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-7FE59667KW150931PKOZCI5I\",\"valid_until\":\"2014-07-30T03:01:09Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7BC930470M001923L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7BC930470M001923L/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7BC930470M001923L/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7BC930470M001923L/reauthorize\",\"rel\":\"reauthorize\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7FE59667KW150931PKOZCI5I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7FE59667KW150931PKOZCI5I\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-46X07892VC993952NKOZCIWA\"}"
|
51
|
+
read 7918 bytes
|
56
52
|
reading 2 bytes...
|
57
53
|
-> "\r\n"
|
58
54
|
read 2 bytes
|
@@ -63,107 +59,83 @@ opening connection to api.sandbox.paypal.com:443...
|
|
63
59
|
opened
|
64
60
|
starting SSL for api.sandbox.paypal.com:443...
|
65
61
|
SSL established
|
66
|
-
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
62
|
+
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015QrhQMl-PI80SksjhZQnhYq3fk9sY6Pe7uVtm9UZ-6Vs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; 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: 138\r\n\r\n"
|
67
63
|
<- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
|
68
64
|
-> "HTTP/1.1 201 Created\r\n"
|
69
65
|
-> "Server: Apache-Coyote/1.1\r\n"
|
70
|
-
-> "PROXY_SERVER_INFO: host=
|
71
|
-
-> "Paypal-Debug-Id:
|
66
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=838\r\n"
|
67
|
+
-> "Paypal-Debug-Id: 944f05c2d9545\r\n"
|
72
68
|
-> "Content-Language: *\r\n"
|
73
|
-
-> "CORRELATION-ID:
|
74
|
-
-> "Date:
|
75
|
-
-> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=
|
69
|
+
-> "CORRELATION-ID: 944f05c2d9545\r\n"
|
70
|
+
-> "Date: Tue, 01 Jul 2014 15:15:00 GMT\r\n"
|
71
|
+
-> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=76352&TopLevelTxnStartTime=146f27e497f&Host=slcsbvaultplatformserv501.slc.paypal.com&pid=19516\r\n"
|
76
72
|
-> "Content-Type: application/json\r\n"
|
77
|
-
-> "
|
73
|
+
-> "Content-Length: 667\r\n"
|
78
74
|
-> "\r\n"
|
79
|
-
-> "29b\r\n"
|
80
75
|
reading 667 bytes...
|
81
|
-
-> "{\"id\":\"CARD-
|
76
|
+
-> "{\"id\":\"CARD-5H59874375570124MKOZNA5I\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2017-06-30T00:00:00Z\",\"create_time\":\"2014-07-01T15:15:01Z\",\"update_time\":\"2014-07-01T15:15:01Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
82
77
|
read 667 bytes
|
83
|
-
reading 2 bytes...
|
84
|
-
-> "\r\n"
|
85
|
-
read 2 bytes
|
86
|
-
-> "0\r\n"
|
87
|
-
-> "\r\n"
|
88
78
|
Conn keep-alive
|
89
79
|
opening connection to api.sandbox.paypal.com:443...
|
90
80
|
opened
|
91
81
|
starting SSL for api.sandbox.paypal.com:443...
|
92
82
|
SSL established
|
93
|
-
<- "GET /v1/vault/credit-card/CARD-
|
83
|
+
<- "GET /v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015QrhQMl-PI80SksjhZQnhYq3fk9sY6Pe7uVtm9UZ-6Vs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; 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"
|
94
84
|
-> "HTTP/1.1 200 OK\r\n"
|
95
85
|
-> "Server: Apache-Coyote/1.1\r\n"
|
96
|
-
-> "PROXY_SERVER_INFO: host=
|
97
|
-
-> "Paypal-Debug-Id:
|
86
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=2777\r\n"
|
87
|
+
-> "Paypal-Debug-Id: cb91e45dd96f4\r\n"
|
98
88
|
-> "Content-Language: *\r\n"
|
99
|
-
-> "CORRELATION-ID:
|
100
|
-
-> "Date:
|
101
|
-
-> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=
|
89
|
+
-> "CORRELATION-ID: cb91e45dd96f4\r\n"
|
90
|
+
-> "Date: Tue, 01 Jul 2014 15:15:01 GMT\r\n"
|
91
|
+
-> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=76352&TopLevelTxnStartTime=146f27e4b46&Host=slcsbvaultplatformserv501.slc.paypal.com&pid=19516\r\n"
|
102
92
|
-> "Content-Type: application/json\r\n"
|
103
|
-
-> "
|
93
|
+
-> "Content-Length: 667\r\n"
|
104
94
|
-> "\r\n"
|
105
|
-
-> "29b\r\n"
|
106
95
|
reading 667 bytes...
|
107
|
-
-> "{\"id\":\"CARD-
|
96
|
+
-> "{\"id\":\"CARD-5H59874375570124MKOZNA5I\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2017-06-30T00:00:00Z\",\"create_time\":\"2014-07-01T15:15:01Z\",\"update_time\":\"2014-07-01T15:15:01Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
108
97
|
read 667 bytes
|
109
|
-
reading 2 bytes...
|
110
|
-
-> "\r\n"
|
111
|
-
read 2 bytes
|
112
|
-
-> "0\r\n"
|
113
|
-
-> "\r\n"
|
114
98
|
Conn keep-alive
|
115
99
|
opening connection to api.sandbox.paypal.com:443...
|
116
100
|
opened
|
117
101
|
starting SSL for api.sandbox.paypal.com:443...
|
118
102
|
SSL established
|
119
|
-
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
103
|
+
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015w4xOdsuRFioA4nJQQPtj51urealWpy9RRdeyvUkciyU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; 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"
|
120
104
|
-> "HTTP/1.1 404 Not Found\r\n"
|
121
105
|
-> "Server: Apache-Coyote/1.1\r\n"
|
122
|
-
-> "PROXY_SERVER_INFO: host=
|
123
|
-
-> "Paypal-Debug-Id:
|
124
|
-
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=
|
125
|
-
-> "CORRELATION-ID:
|
106
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=2777\r\n"
|
107
|
+
-> "Paypal-Debug-Id: 59e6eafcd9096\r\n"
|
108
|
+
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=228&TopLevelTxnStartTime=146f27e4d05&Host=slcsbjm3.slc.paypal.com&pid=30095\r\n"
|
109
|
+
-> "CORRELATION-ID: 59e6eafcd9096\r\n"
|
126
110
|
-> "Content-Language: *\r\n"
|
127
|
-
-> "Date:
|
111
|
+
-> "Date: Tue, 01 Jul 2014 15:15:01 GMT\r\n"
|
128
112
|
-> "Content-Type: application/json\r\n"
|
129
|
-
-> "
|
113
|
+
-> "Content-Length: 207\r\n"
|
130
114
|
-> "\r\n"
|
131
|
-
-> "cf\r\n"
|
132
115
|
reading 207 bytes...
|
133
|
-
-> "{\"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\":\"
|
116
|
+
-> "{\"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\":\"59e6eafcd9096\"}"
|
134
117
|
read 207 bytes
|
135
|
-
reading 2 bytes...
|
136
|
-
-> "\r\n"
|
137
|
-
read 2 bytes
|
138
|
-
-> "0\r\n"
|
139
|
-
-> "\r\n"
|
140
118
|
Conn keep-alive
|
141
119
|
opening connection to api.sandbox.paypal.com:443...
|
142
120
|
opened
|
143
121
|
starting SSL for api.sandbox.paypal.com:443...
|
144
122
|
SSL established
|
145
|
-
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
123
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015w4xOdsuRFioA4nJQQPtj51urealWpy9RRdeyvUkciyU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; 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"
|
146
124
|
<- "{}"
|
147
125
|
-> "HTTP/1.1 500 Internal Server Error\r\n"
|
148
126
|
-> "Server: Apache-Coyote/1.1\r\n"
|
149
|
-
-> "PROXY_SERVER_INFO: host=
|
150
|
-
-> "Paypal-Debug-Id:
|
151
|
-
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=
|
152
|
-
-> "CORRELATION-ID:
|
127
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=19195\r\n"
|
128
|
+
-> "Paypal-Debug-Id: 5547f91aa1d8c\r\n"
|
129
|
+
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=5720&TopLevelTxnStartTime=146f27e4ebf&Host=slcsbjm1.slc.paypal.com&pid=3741\r\n"
|
130
|
+
-> "CORRELATION-ID: 5547f91aa1d8c\r\n"
|
153
131
|
-> "Content-Language: *\r\n"
|
154
|
-
-> "Date:
|
132
|
+
-> "Date: Tue, 01 Jul 2014 15:15:02 GMT\r\n"
|
155
133
|
-> "Connection: close\r\n"
|
156
134
|
-> "Content-Type: application/json\r\n"
|
157
|
-
-> "
|
135
|
+
-> "Content-Length: 212\r\n"
|
158
136
|
-> "Connection: close\r\n"
|
159
137
|
-> "\r\n"
|
160
|
-
-> "d4\r\n"
|
161
138
|
reading 212 bytes...
|
162
|
-
-> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"
|
139
|
+
-> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"5547f91aa1d8c\"}"
|
163
140
|
read 212 bytes
|
164
|
-
reading 2 bytes...
|
165
|
-
-> "\r\n"
|
166
|
-
read 2 bytes
|
167
|
-
-> "0\r\n"
|
168
|
-
-> "\r\n"
|
169
141
|
Conn close
|
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.
|
4
|
+
version: 0.3.0
|
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-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|