paypal-sdk-core 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +5 -0
- data/lib/paypal-sdk/core/api/rest.rb +2 -1
- data/lib/paypal-sdk/core/util/http_helper.rb +1 -1
- data/lib/paypal-sdk/core/version.rb +1 -1
- data/spec/config/paypal.yml +1 -1
- data/spec/core/api/rest_spec.rb +1 -1
- data/spec/log/rest_http.log +56 -64
- 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: d39ce1404d9d2c76b7f115f8e59fed9df909b0b2
|
4
|
+
data.tar.gz: 041b044edda3d8eceeb643eb37b17dcdde2579a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf84a309f42acee40419e54b570f9c70e2d3fd924cc5d289c225faf700587522fe13ca6771653fe6f1bd98c1ae821488ff874fcbc8e230404347d037d1547d15
|
7
|
+
data.tar.gz: 3f4849a05d9b3f07dbb5a9a1370a754774dd5f414232f9413fa23222de78c43d5c48c1869c0f225840aafca59fbf4b8947fe38c480943d1115b5462a83adce79
|
data/CHANGELOG.txt
CHANGED
@@ -13,7 +13,8 @@ module PayPal::SDK::Core
|
|
13
13
|
|
14
14
|
DEFAULT_REST_END_POINTS = {
|
15
15
|
:sandbox => "https://api.sandbox.paypal.com",
|
16
|
-
:live => "https://api.paypal.com"
|
16
|
+
:live => "https://api.paypal.com",
|
17
|
+
:tls_test => "https://test-api.sandbox.paypal.com"
|
17
18
|
}
|
18
19
|
TOKEN_REQUEST_PARAMS = "grant_type=client_credentials"
|
19
20
|
|
@@ -46,7 +46,7 @@ module PayPal::SDK::Core
|
|
46
46
|
begin
|
47
47
|
https.ssl_version = :TLSv1_2
|
48
48
|
rescue => error
|
49
|
-
logger.warn("WARNING:
|
49
|
+
logger.warn("WARNING: Your system does not support TLSv1.2. Per PCI Security Council mandate (https://github.com/paypal/TLS-update), you MUST update to latest security library.")
|
50
50
|
end
|
51
51
|
config.ssl_options.each do |key, value|
|
52
52
|
http.send("#{key}=", value)
|
data/spec/config/paypal.yml
CHANGED
data/spec/core/api/rest_spec.rb
CHANGED
@@ -139,7 +139,7 @@ describe PayPal::SDK::Core::API::REST do
|
|
139
139
|
}.should raise_error PayPal::SDK::Core::Exceptions::ResourceNotFound
|
140
140
|
end
|
141
141
|
|
142
|
-
|
142
|
+
xit "Invalid parameters" do
|
143
143
|
response = @api.post("payment")
|
144
144
|
response["error"]["name"].should eql "VALIDATION_ERROR"
|
145
145
|
end
|
data/spec/log/rest_http.log
CHANGED
@@ -2,26 +2,43 @@ 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 A101.
|
5
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\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
|
-
|
8
|
-
|
7
|
+
-> "HTTP/1.1 201 Created\r\n"
|
8
|
+
-> "Date: Wed, 16 Dec 2015 05:17:11 GMT\r\n"
|
9
|
+
-> "Server: Apache\r\n"
|
10
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=489\r\n"
|
11
|
+
-> "Paypal-Debug-Id: 3d905431e6d9d\r\n"
|
12
|
+
-> "CORRELATION-ID: 3d905431e6d9d\r\n"
|
13
|
+
-> "Content-Language: *\r\n"
|
14
|
+
-> "Content-Length: 1246\r\n"
|
15
|
+
-> "Paypal-Debug-Id: 3d905431e6d9d\r\n"
|
16
|
+
-> "Vary: Authorization\r\n"
|
17
|
+
-> "Content-Type: application/json\r\n"
|
18
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D3623055446; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
19
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
20
|
+
-> "Connection: close\r\n"
|
21
|
+
-> "\r\n"
|
22
|
+
reading 1246 bytes...
|
23
|
+
-> "{\"id\":\"PAY-3BR14702XM320401FKZYPHWA\",\"create_time\":\"2015-12-16T05:17:12Z\",\"update_time\":\"2015-12-16T05:17:38Z\",\"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\":\"8R957493EU508553G\",\"create_time\":\"2015-12-16T05:17:12Z\",\"update_time\":\"2015-12-16T05:17:39Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3BR14702XM320401FKZYPHWA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8R957493EU508553G\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8R957493EU508553G/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3BR14702XM320401FKZYPHWA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}],\"fmf_details\":{},\"processor_response\":{\"avs_code\":\"X\",\"cvv_code\":\"M\"}}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3BR14702XM320401FKZYPHWA\",\"rel\":\"self\",\"method\":\"GET\"}]}"
|
24
|
+
read 1246 bytes
|
25
|
+
Conn close
|
9
26
|
opening connection to api.sandbox.paypal.com:443...
|
10
27
|
opened
|
11
28
|
starting SSL for api.sandbox.paypal.com:443...
|
12
29
|
SSL established
|
13
|
-
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.
|
30
|
+
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\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"
|
14
31
|
-> "HTTP/1.1 200 OK\r\n"
|
15
|
-
-> "Date:
|
32
|
+
-> "Date: Wed, 16 Dec 2015 05:17:39 GMT\r\n"
|
16
33
|
-> "Server: Apache\r\n"
|
17
|
-
-> "PROXY_SERVER_INFO: host=
|
18
|
-
-> "Paypal-Debug-Id:
|
19
|
-
-> "CORRELATION-ID:
|
34
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=273\r\n"
|
35
|
+
-> "Paypal-Debug-Id: e1aa988baf3e5\r\n"
|
36
|
+
-> "CORRELATION-ID: e1aa988baf3e5\r\n"
|
20
37
|
-> "Content-Language: *\r\n"
|
21
|
-
-> "Paypal-Debug-Id:
|
38
|
+
-> "Paypal-Debug-Id: e1aa988baf3e5\r\n"
|
22
39
|
-> "Vary: Authorization\r\n"
|
23
40
|
-> "Content-Type: application/json\r\n"
|
24
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
41
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D4092817494; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
25
42
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
26
43
|
-> "Connection: close\r\n"
|
27
44
|
-> "Transfer-Encoding: chunked\r\n"
|
@@ -29,17 +46,17 @@ SSL established
|
|
29
46
|
-> "2000\r\n"
|
30
47
|
reading 8192 bytes...
|
31
48
|
-> ""
|
32
|
-
-> "{\"payments\":[{\"id\":\"PAY-
|
49
|
+
-> "{\"payments\":[{\"id\":\"PAY-3BR14702XM320401FKZYPHWA\",\"create_time\":\"2015-12-16T05:17:12Z\",\"update_time\":\"2015-12-16T05:17:38Z\",\"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\":\"8R957493EU508553G\",\"create_time\":\"2015-12-16T05:17:12Z\",\"update_time\":\"2015-12-16T05:17:39Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3BR14702XM320401FKZYPHWA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8R957493EU508553G\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8R957493EU508553G/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3BR14702XM320401FKZYPHWA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3BR14702XM320401FKZYPHWA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5LA936852B3250135KZYPFWI\",\"create_time\":\"2015-12-16T05:12:57Z\",\"update_time\":\"2015-12-16T05:12:59Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-18M54763MP752150BKZYPFWA\",\"last4\":\"9934\",\"type\":\"discover\",\"expire_month\":\"12\",\"expire_year\":\"2017\"}}]},\"transactions\":[{\"amount\":{\"total\":\"5.99\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.99\"}},\"description\":\"Payment for the 3-Day Choice Membership Roomates.com subscription.\",\"item_list\":{\"items\":[{\"name\":\"3-Day Choice Membership\",\"price\":\"5.99\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"sale\":{\"id\":\"384183904S6934312\",\"create_time\":\"2015-12-16T05:12:57Z\",\"update_time\":\"2015-12-16T05:12:59Z\",\"amount\":{\"total\":\"5.99\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5LA936852B3250135KZYPFWI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/384183904S6934312\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/384183904S6934312/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5LA936852B3250135KZYPFWI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5LA936852B3250135KZYPFWI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1V434120DA301824MKZYO56A\",\"create_time\":\"2015-12-16T04:56:24Z\",\"update_time\":\"2015-12-16T04:56:58Z\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"6US26743YM671091G\",\"create_time\":\"2015-12-16T04:56:24Z\",\"update_time\":\"2015-12-16T04:56:58Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"partially_refunded\",\"parent_payment\":\"PAY-1V434120DA301824MKZYO56A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6US26743YM671091G\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6US26743YM671091G/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V434120DA301824MKZYO56A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"9C562444LJ6928114\",\"create_time\":\"2015-12-16T04:56:58Z\",\"update_time\":\"2015-12-16T04:56:58Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-0.01\",\"currency\":\"USD\"},\"sale_id\":\"6US26743YM671091G\",\"parent_payment\":\"PAY-1V434120DA301824MKZYO56A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/9C562444LJ6928114\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V434120DA301824MKZYO56A\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6US26743YM671091G\",\"rel\":\"sale\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V434120DA301824MKZYO56A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0T800759R7206172RKZYO5VI\",\"create_time\":\"2015-12-16T04:55:49Z\",\"update_time\":\"2015-12-16T04:56:21Z\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"8LY54144LM854651L\",\"create_time\":\"2015-12-16T04:55:49Z\",\"update_time\":\"2015-12-16T04:56:21Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-0T800759R7206172RKZYO5VI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8LY54144LM854651L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8LY54144LM854651L/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0T800759R7206172RKZYO5VI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0T800759R7206172RKZYO5VI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-40G33130YW489844YKZYO5JY\",\"create_time\":\"2015-12-16T04:55:03Z\",\"update_time\":\"2015-12-16T04:55:32Z\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"sale\":{\"id\":\"8Y039967CY4154643\",\"create_time\":\"2015-12-16T04:55:03Z\",\"update_time\":\"2015-12-16T04:55:32Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-40G33130YW489844YKZYO5JY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8Y039967CY4154643\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8Y039967CY4154643/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-40G33130YW489844YKZYO5JY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-40G33130YW489844YKZYO5JY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-46F788380X923263SKZYO46I\",\"create_time\":\"2015-12-16T04:54:17Z\",\"update_time\":\"2015-12-16T04:54:45Z\",\"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\"}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"5WY02290Y22308121\",\"create_time\":\"2015-12-16T04:54:17Z\",\"update_time\":\"2015-12-16T04:54:45Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-46F788380X923263SKZYO46I\",\"valid_until\":\"2016-01-14T04:54:17Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/5WY02290Y22308121\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-46F788380X923263SKZYO46I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https"
|
33
50
|
read 8192 bytes
|
34
51
|
reading 2 bytes...
|
35
52
|
-> ""
|
36
53
|
-> "\r\n"
|
37
54
|
read 2 bytes
|
38
|
-
-> "
|
39
|
-
reading
|
55
|
+
-> "1f8a\r\n"
|
56
|
+
reading 8074 bytes...
|
40
57
|
-> ""
|
41
|
-
-> "
|
42
|
-
read
|
58
|
+
-> "://api.sandbox.paypal.com/v1/payments/payment/PAY-46F788380X923263SKZYO46I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-37T43059AM5824706KZYO4WA\",\"create_time\":\"2015-12-16T04:53:44Z\",\"update_time\":\"2015-12-16T04:54: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\"}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"8UU86073FB159793H\",\"create_time\":\"2015-12-16T04:53:44Z\",\"update_time\":\"2015-12-16T04:54:11Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-37T43059AM5824706KZYO4WA\",\"valid_until\":\"2016-01-14T04:53:44Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UU86073FB159793H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UU86073FB159793H/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UU86073FB159793H/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-37T43059AM5824706KZYO4WA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-37T43059AM5824706KZYO4WA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0M532554AY177341BKZYO4II\",\"create_time\":\"2015-12-16T04:52:49Z\",\"update_time\":\"2015-12-16T04:53:42Z\",\"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\"}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"83A44755D5631163G\",\"create_time\":\"2015-12-16T04:52:49Z\",\"update_time\":\"2015-12-16T04:53:17Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-0M532554AY177341BKZYO4II\",\"valid_until\":\"2016-01-14T04:52:49Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/83A44755D5631163G\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0M532554AY177341BKZYO4II\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"2DF55872LU349060W\",\"create_time\":\"2015-12-16T04:53:17Z\",\"update_time\":\"2015-12-16T04:53:42Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"refunded\",\"parent_payment\":\"PAY-0M532554AY177341BKZYO4II\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/2DF55872LU349060W\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0M532554AY177341BKZYO4II\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"38J00235CX8681436\",\"create_time\":\"2015-12-16T04:53:42Z\",\"update_time\":\"2015-12-16T04:53:42Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-1.00\",\"currency\":\"USD\"},\"capture_id\":\"2DF55872LU349060W\",\"parent_payment\":\"PAY-0M532554AY177341BKZYO4II\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/38J00235CX8681436\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0M532554AY177341BKZYO4II\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/2DF55872LU349060W\",\"rel\":\"capture\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0M532554AY177341BKZYO4II\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5EC20525VS6875416KZYO32Y\",\"create_time\":\"2015-12-16T04:51:55Z\",\"update_time\":\"2015-12-16T04:52:46Z\",\"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\"}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"2E201949DC6389202\",\"create_time\":\"2015-12-16T04:51:55Z\",\"update_time\":\"2015-12-16T04:52:23Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-5EC20525VS6875416KZYO32Y\",\"valid_until\":\"2016-01-14T04:51:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/2E201949DC6389202\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5EC20525VS6875416KZYO32Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"5HT19035E5538300A\",\"create_time\":\"2015-12-16T04:52:23Z\",\"update_time\":\"2015-12-16T04:52:46Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5EC20525VS6875416KZYO32Y\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5HT19035E5538300A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5HT19035E5538300A/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5EC20525VS6875416KZYO32Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5EC20525VS6875416KZYO32Y\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7F813127RF322291LKZYO3NY\",\"create_time\":\"2015-12-16T04:51:03Z\",\"update_time\":\"2015-12-16T04:51:54Z\",\"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\"}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"1K737448KB743131X\",\"create_time\":\"2015-12-16T04:51:03Z\",\"update_time\":\"2015-12-16T04:51:31Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-7F813127RF322291LKZYO3NY\",\"valid_until\":\"2016-01-14T04:51:03Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/1K737448KB743131X\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F813127RF322291LKZYO3NY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"9WX05248KF665773K\",\"create_time\":\"2015-12-16T04:51:33Z\",\"update_time\":\"2015-12-16T04:51:54Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-7F813127RF322291LKZYO3NY\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/9WX05248KF665773K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/9WX05248KF665773K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F813127RF322291LKZYO3NY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F813127RF322291LKZYO3NY\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-1M7693089W101783NKZYOBVQ\"}"
|
59
|
+
read 8074 bytes
|
43
60
|
reading 2 bytes...
|
44
61
|
-> ""
|
45
62
|
-> "\r\n"
|
@@ -51,97 +68,72 @@ opening connection to api.sandbox.paypal.com:443...
|
|
51
68
|
opened
|
52
69
|
starting SSL for api.sandbox.paypal.com:443...
|
53
70
|
SSL established
|
54
|
-
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.
|
71
|
+
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\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"
|
55
72
|
<- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
|
56
73
|
-> "HTTP/1.1 201 Created\r\n"
|
57
|
-
-> "Date:
|
74
|
+
-> "Date: Wed, 16 Dec 2015 05:17:59 GMT\r\n"
|
58
75
|
-> "Server: Apache\r\n"
|
59
|
-
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=
|
60
|
-
-> "Paypal-Debug-Id:
|
76
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=480\r\n"
|
77
|
+
-> "Paypal-Debug-Id: bdc025fa7935c\r\n"
|
61
78
|
-> "Content-Language: *\r\n"
|
62
|
-
-> "CORRELATION-ID:
|
79
|
+
-> "CORRELATION-ID: bdc025fa7935c\r\n"
|
63
80
|
-> "Content-Length: 667\r\n"
|
64
|
-
-> "Paypal-Debug-Id:
|
81
|
+
-> "Paypal-Debug-Id: bdc025fa7935c\r\n"
|
65
82
|
-> "Vary: Authorization\r\n"
|
66
83
|
-> "Content-Type: application/json\r\n"
|
67
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
84
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D133460054; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
68
85
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
69
86
|
-> "Connection: close\r\n"
|
70
87
|
-> "\r\n"
|
71
88
|
reading 667 bytes...
|
72
|
-
-> "{\"id\":\"CARD-
|
89
|
+
-> "{\"id\":\"CARD-8UP568271R0704620KZYPIBY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-12-15T00:00:00Z\",\"create_time\":\"2015-12-16T05:17:59Z\",\"update_time\":\"2015-12-16T05:17:59Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
73
90
|
read 667 bytes
|
74
91
|
Conn close
|
75
92
|
opening connection to api.sandbox.paypal.com:443...
|
76
93
|
opened
|
77
94
|
starting SSL for api.sandbox.paypal.com:443...
|
78
95
|
SSL established
|
79
|
-
<- "GET /v1/vault/credit-card/CARD-
|
96
|
+
<- "GET /v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\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"
|
80
97
|
-> "HTTP/1.1 200 OK\r\n"
|
81
|
-
-> "Date:
|
98
|
+
-> "Date: Wed, 16 Dec 2015 05:18:00 GMT\r\n"
|
82
99
|
-> "Server: Apache\r\n"
|
83
|
-
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=
|
84
|
-
-> "Paypal-Debug-Id:
|
100
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=437\r\n"
|
101
|
+
-> "Paypal-Debug-Id: 446ed10131d9a\r\n"
|
85
102
|
-> "Content-Language: *\r\n"
|
86
|
-
-> "CORRELATION-ID:
|
103
|
+
-> "CORRELATION-ID: 446ed10131d9a\r\n"
|
87
104
|
-> "Content-Length: 667\r\n"
|
88
|
-
-> "Paypal-Debug-Id:
|
105
|
+
-> "Paypal-Debug-Id: 446ed10131d9a\r\n"
|
89
106
|
-> "Vary: Authorization\r\n"
|
90
107
|
-> "Content-Type: application/json\r\n"
|
91
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
108
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D150237270; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
92
109
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
93
110
|
-> "Connection: close\r\n"
|
94
111
|
-> "\r\n"
|
95
112
|
reading 667 bytes...
|
96
|
-
-> "{\"id\":\"CARD-
|
113
|
+
-> "{\"id\":\"CARD-8UP568271R0704620KZYPIBY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-12-15T00:00:00Z\",\"create_time\":\"2015-12-16T05:17:59Z\",\"update_time\":\"2015-12-16T05:17:59Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
97
114
|
read 667 bytes
|
98
115
|
Conn close
|
99
116
|
opening connection to api.sandbox.paypal.com:443...
|
100
117
|
opened
|
101
118
|
starting SSL for api.sandbox.paypal.com:443...
|
102
119
|
SSL established
|
103
|
-
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.
|
120
|
+
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\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"
|
104
121
|
-> "HTTP/1.1 404 Not Found\r\n"
|
105
|
-
-> "Date:
|
122
|
+
-> "Date: Wed, 16 Dec 2015 05:18:00 GMT\r\n"
|
106
123
|
-> "Server: Apache\r\n"
|
107
|
-
-> "PROXY_SERVER_INFO: host=
|
108
|
-
-> "Paypal-Debug-Id:
|
109
|
-
-> "CORRELATION-ID:
|
124
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=338\r\n"
|
125
|
+
-> "Paypal-Debug-Id: 4ae8bd1ad1020\r\n"
|
126
|
+
-> "CORRELATION-ID: 4ae8bd1ad1020\r\n"
|
110
127
|
-> "Content-Language: *\r\n"
|
111
128
|
-> "Content-Length: 207\r\n"
|
112
|
-
-> "Paypal-Debug-Id:
|
129
|
+
-> "Paypal-Debug-Id: 4ae8bd1ad1020\r\n"
|
113
130
|
-> "Vary: Authorization\r\n"
|
114
131
|
-> "Content-Type: application/json\r\n"
|
115
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
132
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D150237270; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
116
133
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
117
134
|
-> "Connection: close\r\n"
|
118
135
|
-> "\r\n"
|
119
136
|
reading 207 bytes...
|
120
|
-
-> "{\"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\":\"
|
137
|
+
-> "{\"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\":\"4ae8bd1ad1020\"}"
|
121
138
|
read 207 bytes
|
122
139
|
Conn close
|
123
|
-
opening connection to api.sandbox.paypal.com:443...
|
124
|
-
opened
|
125
|
-
starting SSL for api.sandbox.paypal.com:443...
|
126
|
-
SSL established
|
127
|
-
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.hId1qE8T-o5Ivl1NFLN8Qw9KuOiP24j_tAZtSQFaYgG237PFlAQriLQmTT-lpWAq.rMWnOADJN5X18frvWy_F_2ikOvy\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.3 (paypal-sdk-core 0.3.3; ruby 2.2.3p173-x86_64-darwin14)\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"
|
128
|
-
<- "{}"
|
129
|
-
-> "HTTP/1.1 500 Internal Server Error\r\n"
|
130
|
-
-> "Date: Tue, 15 Dec 2015 14:58:18 GMT\r\n"
|
131
|
-
-> "Server: Apache\r\n"
|
132
|
-
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=416\r\n"
|
133
|
-
-> "Paypal-Debug-Id: a59221e33fb83\r\n"
|
134
|
-
-> "CORRELATION-ID: a59221e33fb83\r\n"
|
135
|
-
-> "Content-Language: *\r\n"
|
136
|
-
-> "Content-Length: 212\r\n"
|
137
|
-
-> "Paypal-Debug-Id: a59221e33fb83\r\n"
|
138
|
-
-> "Vary: Authorization\r\n"
|
139
|
-
-> "Content-Type: application/json\r\n"
|
140
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2318037078; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
141
|
-
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
142
|
-
-> "Connection: close\r\n"
|
143
|
-
-> "\r\n"
|
144
|
-
reading 212 bytes...
|
145
|
-
-> "{\"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\":\"a59221e33fb83\"}"
|
146
|
-
read 212 bytes
|
147
|
-
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.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|