paypal-sdk-core 0.3.1 → 0.3.2

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: e04a921fa53080f41f2ef54645d19ff65e4de2b5
4
- data.tar.gz: 0d53d03ae04b88ce3588a271abb11e2a5f7e96c3
3
+ metadata.gz: 4d0e8f726418489c646dfae15be7492c270b19d6
4
+ data.tar.gz: 8435264c714a76855f2679d575ccb113eb1acbb6
5
5
  SHA512:
6
- metadata.gz: 2c3921eaeaa79af095041dd371b7882e3ccb312904d89abc0ac91bcc60ba73fc706b7f0f166e198fc5105799a099503c02cccc4317c8519e0e15a0985ea39e5b
7
- data.tar.gz: e0e3f3af921f7d0cdbe4d81e93086ac75746b4466d65a045cbd24791bf8b101ca6f898d36c572b0ee8f3caa8d416ec4d0c03b23e589e8827e8cd20b56d2c3d35
6
+ metadata.gz: 473836fec5182ac423809762ce8b8c6ed3716e1afe66f96f7dc0f9639f29e60bc643a4e7a19007f0f03ff434214cf055b4e3dbab125aff0e57e95473929a1d69
7
+ data.tar.gz: 605089d95aba0516e630d551123ad49302505c42859cb10d89cffb3e7522c153c4f258eab7a813cfda8aa0100fe904df0f59a8a15cbf34aae9d2ab6acbaadaab
@@ -1,6 +1,13 @@
1
+ Version 0.3.2
2
+ - Update production IPN endpoint
3
+
4
+ Version 0.3.1
5
+ - Allow verbose logging of HTTP requests
6
+
1
7
  Version 0.3.0 - July 1, 2014
2
8
  - Add future payment support
3
9
  - Fix exception handling for debug ID print
10
+
4
11
  Version 0.2.10 - June 25, 2014
5
12
  - Fix debug ID dump
6
13
 
@@ -6,7 +6,7 @@ module PayPal
6
6
 
7
7
  END_POINTS = {
8
8
  :sandbox => "https://www.sandbox.paypal.com/cgi-bin/webscr",
9
- :live => "https://ipnpb.paypal.com/cgi-bin/webscr"
9
+ :live => "https://www.paypal.com/cgi-bin/webscr"
10
10
  }
11
11
  VERIFIED = "VERIFIED"
12
12
  INVALID = "INVALID"
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Core
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
6
6
  end
7
7
  end
@@ -12,7 +12,7 @@ describe PayPal::SDK::Core::API::IPN do
12
12
  message.ipn_endpoint.should eql "https://www.sandbox.paypal.com/cgi-bin/webscr"
13
13
 
14
14
  message = IPN::Message.new("", :mode => :live)
15
- message.ipn_endpoint.should eql "https://ipnpb.paypal.com/cgi-bin/webscr"
15
+ message.ipn_endpoint.should eql "https://www.paypal.com/cgi-bin/webscr"
16
16
 
17
17
  message = IPN::Message.new("", :ipn_endpoint => "http://example.com")
18
18
  message.ipn_endpoint.should eql "http://example.com"
@@ -22,24 +22,24 @@ describe PayPal::SDK::Core::API::IPN do
22
22
  describe "Valid" do
23
23
  it "request" do
24
24
  response = IPN.request(samples["ipn"]["valid_message"])
25
- response.body.should eql IPN::VERIFIED
25
+ expect(response.body).to eql IPN::VERIFIED
26
26
  end
27
27
 
28
28
  it "valid?" do
29
29
  response = IPN.valid?(samples["ipn"]["valid_message"])
30
- response.should be_true
30
+ expect(response).to be_truthy
31
31
  end
32
32
  end
33
33
 
34
34
  describe "Invalid" do
35
35
  it "request" do
36
36
  response = IPN.request(samples["ipn"]["invalid_message"])
37
- response.body.should eql IPN::INVALID
37
+ expect(response.body).to eql IPN::INVALID
38
38
  end
39
39
 
40
40
  it "valid?" do
41
41
  response = IPN.valid?(samples["ipn"]["invalid_message"])
42
- response.should be_false
42
+ expect(response).to be_falsy
43
43
  end
44
44
  end
45
45
 
@@ -2,140 +2,130 @@ 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 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"
5
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0157wfUuAQYIh-A0Oq7uOeFEW5L4d2g8lVM1DfnpMWq4ig\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.2; 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 500 Internal Server Error\r\n"
8
- -> "Server: Apache-Coyote/1.1\r\n"
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
- -> "Content-Language: *\r\n"
14
- -> "Date: Tue, 01 Jul 2014 15:14:53 GMT\r\n"
15
- -> "Connection: close\r\n"
16
- -> "Content-Type: application/json\r\n"
17
- -> "Content-Length: 212\r\n"
18
- -> "Connection: close\r\n"
19
- -> "\r\n"
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
7
+ Conn close because of error Net::ReadTimeout
8
+ Conn close because of error Net::ReadTimeout
24
9
  opening connection to api.sandbox.paypal.com:443...
25
10
  opened
26
11
  starting SSL for api.sandbox.paypal.com:443...
27
12
  SSL established
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"
13
+ <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0157wfUuAQYIh-A0Oq7uOeFEW5L4d2g8lVM1DfnpMWq4ig\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.2; 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"
29
14
  -> "HTTP/1.1 200 OK\r\n"
30
- -> "Server: Apache-Coyote/1.1\r\n"
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"
15
+ -> "Date: Tue, 22 Sep 2015 12:02:28 GMT\r\n"
16
+ -> "Server: Apache\r\n"
17
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=283\r\n"
18
+ -> "Paypal-Debug-Id: 9e079bf51498d\r\n"
19
+ -> "CORRELATION-ID: 9e079bf51498d\r\n"
35
20
  -> "Content-Language: *\r\n"
36
- -> "Date: Tue, 01 Jul 2014 15:14:58 GMT\r\n"
37
- -> "Content-Type: application/json\r\n"
21
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1413677398; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
22
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
23
+ -> "Vary: Authorization\r\n"
24
+ -> "Connection: close\r\n"
38
25
  -> "Transfer-Encoding: chunked\r\n"
26
+ -> "Content-Type: application/json\r\n"
27
+ -> "\r\n"
28
+ -> "2000\r\n"
29
+ reading 8192 bytes...
30
+ -> ""
31
+ -> "{\"payments\":[{\"id\":\"PAY-3RH76625GH470074EKYAUFFY\",\"create_time\":\"2015-09-22T11:59:19Z\",\"update_time\":\"2015-09-22T11:59:48Z\",\"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\":\"1XV70818GV122862R\",\"create_time\":\"2015-09-22T11:59:19Z\",\"update_time\":\"2015-09-22T11:59:48Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3RH76625GH470074EKYAUFFY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1XV70818GV122862R\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1XV70818GV122862R/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3RH76625GH470074EKYAUFFY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3RH76625GH470074EKYAUFFY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-02A09420YC130910CKYAUFBQ\",\"create_time\":\"2015-09-22T11:59:02Z\",\"update_time\":\"2015-09-22T11:59: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\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"0T0672351R759241E\",\"create_time\":\"2015-09-22T11:59:02Z\",\"update_time\":\"2015-09-22T11:59:30Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-02A09420YC130910CKYAUFBQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0T0672351R759241E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0T0672351R759241E/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02A09420YC130910CKYAUFBQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02A09420YC130910CKYAUFBQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1V956364333503206KYAT7QQ\",\"create_time\":\"2015-09-22T11:47:14Z\",\"update_time\":\"2015-09-22T11:47:43Z\",\"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\":\"9W8752054X547704M\",\"create_time\":\"2015-09-22T11:47:14Z\",\"update_time\":\"2015-09-22T11:47:43Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-1V956364333503206KYAT7QQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9W8752054X547704M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9W8752054X547704M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V956364333503206KYAT7QQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V956364333503206KYAT7QQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9RM90042SK972640WKYAT7OA\",\"create_time\":\"2015-09-22T11:47:04Z\",\"update_time\":\"2015-09-22T11:47:33Z\",\"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\":\"21929299179433516\",\"create_time\":\"2015-09-22T11:47:04Z\",\"update_time\":\"2015-09-22T11:47:33Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-9RM90042SK972640WKYAT7OA\",\"valid_until\":\"2015-10-21T11:47:04Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/21929299179433516\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/21929299179433516/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/21929299179433516/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9RM90042SK972640WKYAT7OA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9RM90042SK972640WKYAT7OA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3TB96836HU018825FKYAT7EY\",\"create_time\":\"2015-09-22T11:46:27Z\",\"update_time\":\"2015-09-22T11:46:58Z\",\"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\":\"0LS96308AM687090A\",\"create_time\":\"2015-09-22T11:46:27Z\",\"update_time\":\"2015-09-22T11:46:58Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-3TB96836HU018825FKYAT7EY\",\"valid_until\":\"2015-10-21T11:46:27Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0LS96308AM687090A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3TB96836HU018825FKYAT7EY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3TB96836HU018825FKYAT7EY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9L561547RL126160JKYAT67Q\",\"create_time\":\"2015-09-22T11:46:06Z\",\"update_time\":\"2015-09-22T11:47:03Z\",\"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\":\"9WF88233CE948340L\",\"create_time\":\"2015-09-22T11:46:06Z\",\"update_time\":\"2015-09-22T11:46:38Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-9L561547RL126160JKYAT67Q\",\"valid_until\":\"2015-10-21T11:46:06Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/9WF88233CE948340L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9L561547RL126160JKYAT67Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"3Y373150J9669033K\",\"create_time\":\"2015-09-22T11:46:39Z\",\"update_time\":\"2015-09-22T11:47:03Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-9L561547RL126160JKYAT67Q\",\"transaction_fee\":{\"value\":\"0.03\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/3Y373150J9669033K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/paym"
32
+ read 8192 bytes
33
+ reading 2 bytes...
34
+ -> ""
39
35
  -> "\r\n"
36
+ read 2 bytes
40
37
  -> "2000\r\n"
41
38
  reading 8192 bytes...
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\","
39
+ -> ""
40
+ -> "ents/capture/3Y373150J9669033K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9L561547RL126160JKYAT67Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9L561547RL126160JKYAT67Q\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9CH80425739905600KYAT64Q\",\"create_time\":\"2015-09-22T11:45:54Z\",\"update_time\":\"2015-09-22T11:46:24Z\",\"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\":\"37H42675A7613824M\",\"create_time\":\"2015-09-22T11:45:54Z\",\"update_time\":\"2015-09-22T11:46:24Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-9CH80425739905600KYAT64Q\",\"valid_until\":\"2015-10-21T11:45:54Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/37H42675A7613824M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/37H42675A7613824M/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/37H42675A7613824M/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9CH80425739905600KYAT64Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9CH80425739905600KYAT64Q\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0XY91585F39981455KYAT6OA\",\"create_time\":\"2015-09-22T11:44:56Z\",\"update_time\":\"2015-09-22T11:45:53Z\",\"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\":\"3V631327E2347283P\",\"create_time\":\"2015-09-22T11:44:56Z\",\"update_time\":\"2015-09-22T11:45:25Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-0XY91585F39981455KYAT6OA\",\"valid_until\":\"2015-10-21T11:44:56Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/3V631327E2347283P\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XY91585F39981455KYAT6OA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"95648965MY834133H\",\"create_time\":\"2015-09-22T11:45:25Z\",\"update_time\":\"2015-09-22T11:45:53Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"refunded\",\"parent_payment\":\"PAY-0XY91585F39981455KYAT6OA\",\"transaction_fee\":{\"value\":\"0.03\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/95648965MY834133H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XY91585F39981455KYAT6OA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"4X919299AV409274F\",\"create_time\":\"2015-09-22T11:45:53Z\",\"update_time\":\"2015-09-22T11:45:53Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-1.00\",\"currency\":\"USD\"},\"capture_id\":\"95648965MY834133H\",\"parent_payment\":\"PAY-0XY91585F39981455KYAT6OA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/4X919299AV409274F\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XY91585F39981455KYAT6OA\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/95648965MY834133H\",\"rel\":\"capture\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XY91585F39981455KYAT6OA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-01F40135NG3590458KYAT56Y\",\"create_time\":\"2015-09-22T11:43:55Z\",\"update_time\":\"2015-09-22T11:44: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\":\"9EL45882M1200554M\",\"create_time\":\"2015-09-22T11:43:55Z\",\"update_time\":\"2015-09-22T11:44:28Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-01F40135NG3590458KYAT56Y\",\"valid_until\":\"2015-10-21T11:43:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/9EL45882M1200554M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01F40135NG3590458KYAT56Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"4SP954760W542420T\",\"create_time\":\"2015-09-22T11:44:29Z\",\"update_time\":\"2015-09-22T11:44:54Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-01F40135NG3590458KYAT56Y\",\"transaction_fee\":{\"value\":\"0.03\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/4SP954760W542420T\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/4SP954760W542420T/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01F40135NG3590458KYAT56Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01F40135NG3590458KYAT56Y\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3AS754887K982693TKYAT5QQ\",\"create_time\":\"2015-09-22T11:42:58Z\",\"update_time\":\"2015-09-22T11:43: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\":\"7G941551CG7872229\",\"create_time\":\"2015-09-22T11:42:58Z\",\"update_time\":\"2015-09-22T11:43:30Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-3AS754887K982693TKYAT5QQ\",\"valid_until\":\"2015-10-21T11:42:58Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7G941551CG7872229\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3AS754887K982693TKYAT5QQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"4TV520598U368270L\",\"create_time\":\"2015-09-22T11:43:31Z\",\"update_time\":\"2015-09-22T11:43:54Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3AS754887K982693TKYAT5QQ\",\"transaction_fee\":{\"value\":\"0.03\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/4TV520598U368270L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/4TV520598U368270L/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3AS754887K982693TKYAT5QQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY"
43
41
  read 8192 bytes
44
42
  reading 2 bytes...
43
+ -> ""
45
44
  -> "\r\n"
46
45
  read 2 bytes
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
46
+ -> "6f\r\n"
47
+ reading 111 bytes...
48
+ -> ""
49
+ -> "-3AS754887K982693TKYAT5QQ\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-9RD08396JL684741XKYATH6Y\"}"
50
+ read 111 bytes
52
51
  reading 2 bytes...
52
+ -> ""
53
53
  -> "\r\n"
54
54
  read 2 bytes
55
55
  -> "0\r\n"
56
56
  -> "\r\n"
57
- Conn keep-alive
57
+ Conn close
58
58
  opening connection to api.sandbox.paypal.com:443...
59
59
  opened
60
60
  starting SSL for api.sandbox.paypal.com:443...
61
61
  SSL established
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"
62
+ <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015Kj-6rUauRzvbp3JEjVd3sCLfqCw-LMraUBkQdCD7ZHM\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.2; 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"
63
63
  <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
64
- -> "HTTP/1.1 201 Created\r\n"
65
- -> "Server: Apache-Coyote/1.1\r\n"
66
- -> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=838\r\n"
67
- -> "Paypal-Debug-Id: 944f05c2d9545\r\n"
68
- -> "Content-Language: *\r\n"
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"
72
- -> "Content-Type: application/json\r\n"
73
- -> "Content-Length: 667\r\n"
74
- -> "\r\n"
75
- reading 667 bytes...
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\"}]}"
77
- read 667 bytes
78
- Conn keep-alive
79
- opening connection to api.sandbox.paypal.com:443...
80
- opened
81
- starting SSL for api.sandbox.paypal.com:443...
82
- SSL established
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"
84
- -> "HTTP/1.1 200 OK\r\n"
85
- -> "Server: Apache-Coyote/1.1\r\n"
86
- -> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=2777\r\n"
87
- -> "Paypal-Debug-Id: cb91e45dd96f4\r\n"
64
+ -> "HTTP/1.1 500 Internal Server Error\r\n"
65
+ -> "Date: Tue, 22 Sep 2015 12:02:49 GMT\r\n"
66
+ -> "Server: Apache\r\n"
67
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=119051\r\n"
68
+ -> "Paypal-Debug-Id: 78a0467b1bfcb\r\n"
88
69
  -> "Content-Language: *\r\n"
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"
70
+ -> "CORRELATION-ID: 78a0467b1bfcb\r\n"
71
+ -> "Connection: close\r\n"
72
+ -> "Connection: close\r\n"
73
+ -> "Content-Length: 194\r\n"
74
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1765998934; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
75
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
76
+ -> "Vary: Authorization\r\n"
92
77
  -> "Content-Type: application/json\r\n"
93
- -> "Content-Length: 667\r\n"
94
78
  -> "\r\n"
95
- reading 667 bytes...
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\"}]}"
97
- read 667 bytes
98
- Conn keep-alive
79
+ reading 194 bytes...
80
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"78a0467b1bfcb\"}"
81
+ read 194 bytes
82
+ Conn close
99
83
  opening connection to api.sandbox.paypal.com:443...
100
84
  opened
101
85
  starting SSL for api.sandbox.paypal.com:443...
102
86
  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 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"
87
+ <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0157wfUuAQYIh-A0Oq7uOeFEW5L4d2g8lVM1DfnpMWq4ig\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.2; 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"
104
88
  -> "HTTP/1.1 404 Not Found\r\n"
105
- -> "Server: Apache-Coyote/1.1\r\n"
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"
89
+ -> "Date: Tue, 22 Sep 2015 12:02:49 GMT\r\n"
90
+ -> "Server: Apache\r\n"
91
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=119947\r\n"
92
+ -> "Paypal-Debug-Id: 7287e7db0b23\r\n"
93
+ -> "CORRELATION-ID: 7287e7db0b23\r\n"
110
94
  -> "Content-Language: *\r\n"
111
- -> "Date: Tue, 01 Jul 2014 15:15:01 GMT\r\n"
95
+ -> "Content-Length: 206\r\n"
96
+ -> "Paypal-Debug-Id: 7287e7db0b23\r\n"
97
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1765998934; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
98
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
99
+ -> "Vary: Authorization\r\n"
100
+ -> "Connection: close\r\n"
112
101
  -> "Content-Type: application/json\r\n"
113
- -> "Content-Length: 207\r\n"
114
102
  -> "\r\n"
115
- reading 207 bytes...
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\"}"
117
- read 207 bytes
118
- Conn keep-alive
103
+ reading 206 bytes...
104
+ -> "{\"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\":\"7287e7db0b23\"}"
105
+ read 206 bytes
106
+ Conn close
119
107
  opening connection to api.sandbox.paypal.com:443...
120
108
  opened
121
109
  starting SSL for api.sandbox.paypal.com:443...
122
110
  SSL established
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"
111
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0157wfUuAQYIh-A0Oq7uOeFEW5L4d2g8lVM1DfnpMWq4ig\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.2; 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"
124
112
  <- "{}"
125
- -> "HTTP/1.1 500 Internal Server Error\r\n"
126
- -> "Server: Apache-Coyote/1.1\r\n"
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"
113
+ -> "HTTP/1.1 400 Bad Request\r\n"
114
+ -> "Date: Tue, 22 Sep 2015 12:02:51 GMT\r\n"
115
+ -> "Server: Apache\r\n"
116
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1547\r\n"
117
+ -> "Paypal-Debug-Id: 3d06d6846c94b\r\n"
118
+ -> "CORRELATION-ID: 3d06d6846c94b\r\n"
131
119
  -> "Content-Language: *\r\n"
132
- -> "Date: Tue, 01 Jul 2014 15:15:02 GMT\r\n"
133
120
  -> "Connection: close\r\n"
134
- -> "Content-Type: application/json\r\n"
135
- -> "Content-Length: 212\r\n"
136
121
  -> "Connection: close\r\n"
122
+ -> "Content-Length: 306\r\n"
123
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1799553366; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
124
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
125
+ -> "Vary: Authorization\r\n"
126
+ -> "Content-Type: application/json\r\n"
137
127
  -> "\r\n"
138
- reading 212 bytes...
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\"}"
140
- read 212 bytes
128
+ reading 306 bytes...
129
+ -> "{\"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\":\"3d06d6846c94b\"}"
130
+ read 306 bytes
141
131
  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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: '1.0'
41
41
  description: Core library for PayPal ruby SDKs
42
42
  email:
43
- - DL-PP-Platform-Ruby-SDK@ebay.com
43
+ - DL-PP-Platform-Ruby-SDK@paypal.com
44
44
  executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []