paypal-sdk-core 0.2.10 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05d5a81202fabd84e264273eea2585c5f82a3604
4
- data.tar.gz: 71696cfb8f664a3aa9562426e21d81442e422750
3
+ metadata.gz: dc7e9f536ca1f523039fb7debb920826d5be289b
4
+ data.tar.gz: e867223da42c4f476dbdccec289332c4e9f9a0c9
5
5
  SHA512:
6
- metadata.gz: df8a2f389ad1abc0d85bab0bd5bdf3977bf7c97bfc4fd2af9fa6250fcec629adc39b5f7c2edfa172cc808544b2ad9eb3ee2da1bbd86523746060f233045f1989
7
- data.tar.gz: 8eb28885b54dac9526f6bb51b21ed52e3af3fe8dbe2b43652736fd97eedc68d5749f64577526021cb9c237450b6c05310534506d80d1f77589abd292b25cffe5
6
+ metadata.gz: 452955920aa9d8c7596b61bd0d38ea7f45eb4af3fed3de21a1aaabf7177e469c288b7a5accd83ab99be9e64d4e12cdbaca6cde3105d4345682637af29e01a339
7
+ data.tar.gz: 806e6a49ce2ce66e875c75972e318aa41138294768c21b6e7f8cbf41f0293f4cc4a8799646edf996f05a1de18500d6530e774aa9234bacc26054d5459dd7539d
@@ -1,3 +1,6 @@
1
+ Version 0.3.0 - July 1, 2014
2
+ - Add future payment support
3
+ - Fix exception handling for debug ID print
1
4
  Version 0.2.10 - June 25, 2014
2
5
  - Fix debug ID dump
3
6
 
@@ -45,7 +45,7 @@ module PayPal::SDK::Core
45
45
  end
46
46
 
47
47
  # Generate Oauth token or Get cached
48
- def token_hash
48
+ def token_hash(auth_code=nil)
49
49
  validate_token_hash
50
50
  @token_hash ||=
51
51
  begin
@@ -54,6 +54,10 @@ module PayPal::SDK::Core
54
54
  token_headers = default_http_header.merge({
55
55
  "Content-Type" => "application/x-www-form-urlencoded",
56
56
  "Authorization" => "Basic #{basic_auth}" })
57
+ if auth_code != nil
58
+ TOKEN_REQUEST_PARAMS.replace "grant_type=authorization_code&response_type=token&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&code="
59
+ TOKEN_REQUEST_PARAMS << auth_code
60
+ end
57
61
  response = http_call( :method => :post, :uri => token_uri, :body => TOKEN_REQUEST_PARAMS, :header => token_headers )
58
62
  MultiJson.load(response.body, :symbolize_keys => true)
59
63
  end
@@ -61,8 +65,8 @@ module PayPal::SDK::Core
61
65
  attr_writer :token_hash
62
66
 
63
67
  # Get access token
64
- def token
65
- token_hash[:access_token]
68
+ def token(auth_code=nil)
69
+ token_hash(auth_code)[:access_token]
66
70
  end
67
71
 
68
72
  # Get access token type
@@ -12,8 +12,11 @@ module PayPal::SDK::Core
12
12
  end
13
13
 
14
14
  def to_s
15
- response_body = JSON.parse(response.body)
16
- debug_id = response_body["debug_id"]
15
+ begin
16
+ response_body = JSON.parse(response.body)
17
+ debug_id = response_body["debug_id"]
18
+ rescue
19
+ end
17
20
  message = "Failed."
18
21
  message << " Response code = #{response.code}." if response.respond_to?(:code)
19
22
  message << " Response message = #{response.message}." if response.respond_to?(:message)
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Core
4
- VERSION = "0.2.10"
4
+ VERSION = "0.3.0"
5
5
  end
6
6
  end
7
7
  end
@@ -2,57 +2,53 @@ opening connection to api.sandbox.paypal.com:443...
2
2
  opened
3
3
  starting SSL for api.sandbox.paypal.com:443...
4
4
  SSL established
5
- <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015i3t8ei9F.wNyHZRs7RePr0Ofsl2n1G1Z6BpZL4.Dh0A\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.9 (paypal-sdk-core 0.2.9; 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 A015w4xOdsuRFioA4nJQQPtj51urealWpy9RRdeyvUkciyU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 286\r\n\r\n"
6
6
  <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"4417119669820331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"}}]}"
7
- -> "HTTP/1.1 201 Created\r\n"
7
+ -> "HTTP/1.1 500 Internal Server Error\r\n"
8
8
  -> "Server: Apache-Coyote/1.1\r\n"
9
- -> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=771511\r\n"
10
- -> "Paypal-Debug-Id: 78a3faee8bd24\r\n"
11
- -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=58176&TopLevelTxnStartTime=146d441e9b9&Host=slcsbjm3.slc.paypal.com&pid=30707\r\n"
12
- -> "CORRELATION-ID: 78a3faee8bd24\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
13
  -> "Content-Language: *\r\n"
14
- -> "Date: Wed, 25 Jun 2014 18:20:46 GMT\r\n"
14
+ -> "Date: Tue, 01 Jul 2014 15:14:53 GMT\r\n"
15
+ -> "Connection: close\r\n"
15
16
  -> "Content-Type: application/json\r\n"
16
- -> "Transfer-Encoding: chunked\r\n"
17
- -> "\r\n"
18
- -> "498\r\n"
19
- reading 1176 bytes...
20
- -> "{\"id\":\"PAY-3MV24157GS7613613KOVRF3A\",\"create_time\":\"2014-06-25T18:20:28Z\",\"update_time\":\"2014-06-25T18:20:46Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"89M10973YV6618001\",\"create_time\":\"2014-06-25T18:20:28Z\",\"update_time\":\"2014-06-25T18:20:46Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-3MV24157GS7613613KOVRF3A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/89M10973YV6618001\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/89M10973YV6618001/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3MV24157GS7613613KOVRF3A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3MV24157GS7613613KOVRF3A\",\"rel\":\"self\",\"method\":\"GET\"}]}"
21
- read 1176 bytes
22
- reading 2 bytes...
23
- -> "\r\n"
24
- read 2 bytes
25
- -> "0\r\n"
17
+ -> "Content-Length: 212\r\n"
18
+ -> "Connection: close\r\n"
26
19
  -> "\r\n"
27
- Conn keep-alive
20
+ reading 212 bytes...
21
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"f9104a27e13e5\"}"
22
+ read 212 bytes
23
+ Conn close
28
24
  opening connection to api.sandbox.paypal.com:443...
29
25
  opened
30
26
  starting SSL for api.sandbox.paypal.com:443...
31
27
  SSL established
32
- <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015i3t8ei9F.wNyHZRs7RePr0Ofsl2n1G1Z6BpZL4.Dh0A\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.9 (paypal-sdk-core 0.2.9; 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"
28
+ <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015w4xOdsuRFioA4nJQQPtj51urealWpy9RRdeyvUkciyU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
33
29
  -> "HTTP/1.1 200 OK\r\n"
34
30
  -> "Server: Apache-Coyote/1.1\r\n"
35
- -> "PROXY_SERVER_INFO: host=slcsbjava3.slc.paypal.com;threadId=768254\r\n"
36
- -> "Paypal-Debug-Id: 6d3193e6ab5f3\r\n"
37
- -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=208&TopLevelTxnStartTime=146d44234bc&Host=slcsbjm3.slc.paypal.com&pid=30707\r\n"
38
- -> "CORRELATION-ID: 6d3193e6ab5f3\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"
39
35
  -> "Content-Language: *\r\n"
40
- -> "Date: Wed, 25 Jun 2014 18:20:54 GMT\r\n"
36
+ -> "Date: Tue, 01 Jul 2014 15:14:58 GMT\r\n"
41
37
  -> "Content-Type: application/json\r\n"
42
38
  -> "Transfer-Encoding: chunked\r\n"
43
39
  -> "\r\n"
44
40
  -> "2000\r\n"
45
41
  reading 8192 bytes...
46
- -> "{\"payments\":[{\"id\":\"PAY-3MV24157GS7613613KOVRF3A\",\"create_time\":\"2014-06-25T18:20:28Z\",\"update_time\":\"2014-06-25T18:20:46Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"89M10973YV6618001\",\"create_time\":\"2014-06-25T18:20:28Z\",\"update_time\":\"2014-06-25T18:20:46Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-3MV24157GS7613613KOVRF3A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/89M10973YV6618001\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/89M10973YV6618001/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3MV24157GS7613613KOVRF3A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3MV24157GS7613613KOVRF3A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-8N5392241W792864SKOVRFGQ\",\"create_time\":\"2014-06-25T18:19:06Z\",\"update_time\":\"2014-06-25T18:19:24Z\",\"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\":\"1P491365V5989752N\",\"create_time\":\"2014-06-25T18:19:06Z\",\"update_time\":\"2014-06-25T18:19:24Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-8N5392241W792864SKOVRFGQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1P491365V5989752N\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1P491365V5989752N/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8N5392241W792864SKOVRFGQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8N5392241W792864SKOVRFGQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-8VP935958A373003SKOVREMI\",\"create_time\":\"2014-06-25T18:17:21Z\",\"update_time\":\"2014-06-25T18:17:39Z\",\"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\":\"7.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.00\",\"tax\":\"1.00\",\"shipping\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"1DT877151X724212T\",\"create_time\":\"2014-06-25T18:17:21Z\",\"update_time\":\"2014-06-25T18:17:39Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-8VP935958A373003SKOVREMI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1DT877151X724212T\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1DT877151X724212T/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8VP935958A373003SKOVREMI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8VP935958A373003SKOVREMI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5JC81997N4760272VKOVREHI\",\"create_time\":\"2014-06-25T18:17:01Z\",\"update_time\":\"2014-06-25T18:17:05Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx9258\",\"expire_month\":\"3\",\"expire_year\":\"2018\",\"first_name\":\"Mehmet\",\"last_name\":\"TUNG\"}}]},\"transactions\":[{\"amount\":{\"total\":\"41.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"41.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"1HC10865VX513501U\",\"create_time\":\"2014-06-25T18:17:02Z\",\"update_time\":\"2014-06-25T18:17:05Z\",\"state\":\"completed\",\"amount\":{\"total\":\"41.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-5JC81997N4760272VKOVREHI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1HC10865VX513501U\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1HC10865VX513501U/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5JC81997N4760272VKOVREHI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5JC81997N4760272VKOVREHI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-4S647553R47486647KOVREEI\",\"create_time\":\"2014-06-25T18:16:49Z\",\"update_time\":\"2014-06-25T18:17:08Z\",\"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\":\"3RM69394184915142\",\"create_time\":\"2014-06-25T18:16:49Z\",\"update_time\":\"2014-06-25T18:17:08Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4S647553R47486647KOVREEI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3RM69394184915142\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3RM69394184915142/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4S647553R47486647KOVREEI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4S647553R47486647KOVREEI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-10R34207L40484237KOVRDUI\",\"create_time\":\"2014-06-25T18:15:45Z\",\"update_time\":\"2014-06-25T18:16:03Z\",\"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\":\"7.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.00\",\"tax\":\"1.00\",\"shipping\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"0SC828806B642234S\",\"create_time\":\"2014-06-25T18:15:45Z\",\"update_time\":\"2014-06-25T18:16:03Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-10R34207L40484237KOVRDUI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0SC828806B642234S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0SC828806B642234S/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-10R34207L40484237KOVRDUI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-10R34207L40484237KOVRDUI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7LJ51063P1285520EKOVRDBI\",\"create_time\":\"2014-06-25T18:14:29Z\",\"update_time\":\"2014-06-25T18:14:29Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"20.00\"}},\"description\":\"Pizza 2\"}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7LJ51063P1285520EKOVRDBI\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7GD62525N43645237\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sand"
42
+ -> "{\"payments\":[{\"id\":\"PAY-83T25817RP8368727KOZNAZY\",\"create_time\":\"2014-07-01T15:14:47Z\",\"update_time\":\"2014-07-01T15:14:47Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\"}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-83T25817RP8368727KOZNAZY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-75C14040PR738111RKOZCKJY\",\"create_time\":\"2014-07-01T03:04:07Z\",\"update_time\":\"2014-07-01T03:04:52Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"0X959995UG898094S\",\"create_time\":\"2014-07-01T03:04:07Z\",\"update_time\":\"2014-07-01T03:04:24Z\",\"state\":\"captured\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-75C14040PR738111RKOZCKJY\",\"valid_until\":\"2014-07-30T03:04:07Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0X959995UG898094S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-75C14040PR738111RKOZCKJY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"5AX36219KM7410305\",\"create_time\":\"2014-07-01T03:04:33Z\",\"update_time\":\"2014-07-01T03:04:52Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"refunded\",\"parent_payment\":\"PAY-75C14040PR738111RKOZCKJY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5AX36219KM7410305\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-75C14040PR738111RKOZCKJY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"68C321273F455341N\",\"create_time\":\"2014-07-01T03:04:52Z\",\"update_time\":\"2014-07-01T03:04:52Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"capture_id\":\"5AX36219KM7410305\",\"parent_payment\":\"PAY-75C14040PR738111RKOZCKJY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/68C321273F455341N\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-75C14040PR738111RKOZCKJY\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5AX36219KM7410305\",\"rel\":\"capture\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-75C14040PR738111RKOZCKJY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-04119741D2824280KKOZCKAQ\",\"create_time\":\"2014-07-01T03:03:30Z\",\"update_time\":\"2014-07-01T03:04:05Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"5S7734598E429141P\",\"create_time\":\"2014-07-01T03:03:30Z\",\"update_time\":\"2014-07-01T03:03:48Z\",\"state\":\"captured\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-04119741D2824280KKOZCKAQ\",\"valid_until\":\"2014-07-30T03:03:30Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/5S7734598E429141P\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-04119741D2824280KKOZCKAQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"74678112543316045\",\"create_time\":\"2014-07-01T03:03:49Z\",\"update_time\":\"2014-07-01T03:04:05Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-04119741D2824280KKOZCKAQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/74678112543316045\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/74678112543316045/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-04119741D2824280KKOZCKAQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-04119741D2824280KKOZCKAQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-24X87669UW917345HKOZCJ3I\",\"create_time\":\"2014-07-01T03:03:09Z\",\"update_time\":\"2014-07-01T03:03:27Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"33389207MC184620A\",\"create_time\":\"2014-07-01T03:03:09Z\",\"update_time\":\"2014-07-01T03:03:27Z\",\"state\":\"authorized\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-24X87669UW917345HKOZCJ3I\",\"valid_until\":\"2014-07-30T03:03:09Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/33389207MC184620A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/33389207MC184620A/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/33389207MC184620A/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-24X87669UW917345HKOZCJ3I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-24X87669UW917345HKOZCJ3I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-4A2762581L5765008KOZCJWI\",\"create_time\":\"2014-07-01T03:02:49Z\",\"update_time\":\"2014-07-01T03:03:07Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"6084875294780954B\",\"create_time\":\"2014-07-01T03:02:49Z\",\"update_time\":\"2014-07-01T03:03:07Z\",\"state\":\"voided\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4A2762581L5765008KOZCJWI\",\"valid_until\":\"2014-07-30T03:02:49Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/6084875294780954B\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4A2762581L5765008KOZCJWI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4A2762581L5765008KOZCJWI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-44W51472W6847530TKOZCJNI\",\"create_time\":\"2014-07-01T03:02:13Z\",\"update_time\":\"2014-07-01T03:02:48Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\","
47
43
  read 8192 bytes
48
44
  reading 2 bytes...
49
45
  -> "\r\n"
50
46
  read 2 bytes
51
- -> "eb9\r\n"
52
- reading 3769 bytes...
53
- -> "box.paypal.com/v1/payments/payment/PAY-7LJ51063P1285520EKOVRDBI/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]},{\"id\":\"PAY-5KR71313Y7827302EKOVQ6AI\",\"create_time\":\"2014-06-25T18:03:45Z\",\"update_time\":\"2014-06-25T18:04:28Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"email\":\"henry7686@gmail.com\",\"first_name\":\"Haoyi\",\"las"
54
- -> "t_name\":\"Zhou\",\"payer_id\":\"Q6RM27YWJ8CG2\",\"shipping_address\":{\"line1\":\"1 Main St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"recipientName\":\"Haoyi Zhou\"}}},\"transactions\":[{\"amount\":{\"total\":\"99.99\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"99.99\"}},\"description\":\"Transaction description.\",\"item_list\":{\"items\":[{\"name\":\"little6\",\"sku\":\"channel\",\"price\":\"99.99\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"sale\":{\"id\":\"6ER21451PY951644X\",\"create_time\":\"2014-06-25T18:03:45Z\",\"update_time\":\"2014-06-25T18:04:28Z\",\"state\":\"completed\",\"amount\":{\"total\":\"99.99\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-5KR71313Y7827302EKOVQ6AI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6ER21451PY951644X\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6ER21451PY951644X/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5KR71313Y7827302EKOVQ6AI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5KR71313Y7827302EKOVQ6AI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-6ER14301NC474144VKOVQZ4A\",\"create_time\":\"2014-06-25T17:54:56Z\",\"update_time\":\"2014-06-25T17:54:56Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.00\",\"tax\":\"1.00\",\"shipping\":\"1.00\"}},\"description\":\"This is the payment transaction description.\"}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6ER14301NC474144VKOVQZ4A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-0PU23726LF535371R\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6ER14301NC474144VKOVQZ4A/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]},{\"id\":\"PAY-5GV4895828429153NKOVQNPI\",\"create_time\":\"2014-06-25T17:28:29Z\",\"update_time\":\"2014-06-25T17:28:47Z\",\"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\":\"7.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.00\",\"tax\":\"1.00\",\"shipping\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"78H85650E3677762S\",\"create_time\":\"2014-06-25T17:28:29Z\",\"update_time\":\"2014-06-25T17:28:47Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-5GV4895828429153NKOVQNPI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/78H85650E3677762S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/78H85650E3677762S/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5GV4895828429153NKOVQNPI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5GV4895828429153NKOVQNPI\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-6X929375G6736213TKOVQNJY\"}"
55
- read 3769 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
56
52
  reading 2 bytes...
57
53
  -> "\r\n"
58
54
  read 2 bytes
@@ -63,107 +59,83 @@ opening connection to api.sandbox.paypal.com:443...
63
59
  opened
64
60
  starting SSL for api.sandbox.paypal.com:443...
65
61
  SSL established
66
- <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015Cfw94VkuveVoOQ7Khqqfi0pR5TMyktF0VbGv-c4h.fo\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.9 (paypal-sdk-core 0.2.9; 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 A015QrhQMl-PI80SksjhZQnhYq3fk9sY6Pe7uVtm9UZ-6Vs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 138\r\n\r\n"
67
63
  <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
68
64
  -> "HTTP/1.1 201 Created\r\n"
69
65
  -> "Server: Apache-Coyote/1.1\r\n"
70
- -> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=94536\r\n"
71
- -> "Paypal-Debug-Id: 25677768b0226\r\n"
66
+ -> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=838\r\n"
67
+ -> "Paypal-Debug-Id: 944f05c2d9545\r\n"
72
68
  -> "Content-Language: *\r\n"
73
- -> "CORRELATION-ID: 25677768b0226\r\n"
74
- -> "Date: Wed, 25 Jun 2014 18:20:55 GMT\r\n"
75
- -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=1855&TopLevelTxnStartTime=146d442568d&Host=slcsbvaultplatformserv502.slc.paypal.com&pid=30900\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"
76
72
  -> "Content-Type: application/json\r\n"
77
- -> "Transfer-Encoding: chunked\r\n"
73
+ -> "Content-Length: 667\r\n"
78
74
  -> "\r\n"
79
- -> "29b\r\n"
80
75
  reading 667 bytes...
81
- -> "{\"id\":\"CARD-02A96142SN154942MKOVRGBY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2017-06-24T00:00:00Z\",\"create_time\":\"2014-06-25T18:20:55Z\",\"update_time\":\"2014-06-25T18:20:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-02A96142SN154942MKOVRGBY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-02A96142SN154942MKOVRGBY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-02A96142SN154942MKOVRGBY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
76
+ -> "{\"id\":\"CARD-5H59874375570124MKOZNA5I\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2017-06-30T00:00:00Z\",\"create_time\":\"2014-07-01T15:15:01Z\",\"update_time\":\"2014-07-01T15:15:01Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
82
77
  read 667 bytes
83
- reading 2 bytes...
84
- -> "\r\n"
85
- read 2 bytes
86
- -> "0\r\n"
87
- -> "\r\n"
88
78
  Conn keep-alive
89
79
  opening connection to api.sandbox.paypal.com:443...
90
80
  opened
91
81
  starting SSL for api.sandbox.paypal.com:443...
92
82
  SSL established
93
- <- "GET /v1/vault/credit-card/CARD-02A96142SN154942MKOVRGBY HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015Cfw94VkuveVoOQ7Khqqfi0pR5TMyktF0VbGv-c4h.fo\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.9 (paypal-sdk-core 0.2.9; 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"
83
+ <- "GET /v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015QrhQMl-PI80SksjhZQnhYq3fk9sY6Pe7uVtm9UZ-6Vs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
94
84
  -> "HTTP/1.1 200 OK\r\n"
95
85
  -> "Server: Apache-Coyote/1.1\r\n"
96
- -> "PROXY_SERVER_INFO: host=slcsbjava3.slc.paypal.com;threadId=768254\r\n"
97
- -> "Paypal-Debug-Id: 2318ff16ad9bb\r\n"
86
+ -> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=2777\r\n"
87
+ -> "Paypal-Debug-Id: cb91e45dd96f4\r\n"
98
88
  -> "Content-Language: *\r\n"
99
- -> "CORRELATION-ID: 2318ff16ad9bb\r\n"
100
- -> "Date: Wed, 25 Jun 2014 18:20:56 GMT\r\n"
101
- -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=76399&TopLevelTxnStartTime=146d4425871&Host=slcsbvaultplatformserv501.slc.paypal.com&pid=19516\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"
102
92
  -> "Content-Type: application/json\r\n"
103
- -> "Transfer-Encoding: chunked\r\n"
93
+ -> "Content-Length: 667\r\n"
104
94
  -> "\r\n"
105
- -> "29b\r\n"
106
95
  reading 667 bytes...
107
- -> "{\"id\":\"CARD-02A96142SN154942MKOVRGBY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2017-06-24T00:00:00Z\",\"create_time\":\"2014-06-25T18:20:55Z\",\"update_time\":\"2014-06-25T18:20:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-02A96142SN154942MKOVRGBY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-02A96142SN154942MKOVRGBY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-02A96142SN154942MKOVRGBY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
96
+ -> "{\"id\":\"CARD-5H59874375570124MKOZNA5I\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2017-06-30T00:00:00Z\",\"create_time\":\"2014-07-01T15:15:01Z\",\"update_time\":\"2014-07-01T15:15:01Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
108
97
  read 667 bytes
109
- reading 2 bytes...
110
- -> "\r\n"
111
- read 2 bytes
112
- -> "0\r\n"
113
- -> "\r\n"
114
98
  Conn keep-alive
115
99
  opening connection to api.sandbox.paypal.com:443...
116
100
  opened
117
101
  starting SSL for api.sandbox.paypal.com:443...
118
102
  SSL established
119
- <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015i3t8ei9F.wNyHZRs7RePr0Ofsl2n1G1Z6BpZL4.Dh0A\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.9 (paypal-sdk-core 0.2.9; 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"
103
+ <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015w4xOdsuRFioA4nJQQPtj51urealWpy9RRdeyvUkciyU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
120
104
  -> "HTTP/1.1 404 Not Found\r\n"
121
105
  -> "Server: Apache-Coyote/1.1\r\n"
122
- -> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=14031\r\n"
123
- -> "Paypal-Debug-Id: 5b37cf15b0e65\r\n"
124
- -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=208&TopLevelTxnStartTime=146d4425a71&Host=slcsbjm3.slc.paypal.com&pid=30707\r\n"
125
- -> "CORRELATION-ID: 5b37cf15b0e65\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"
126
110
  -> "Content-Language: *\r\n"
127
- -> "Date: Wed, 25 Jun 2014 18:20:56 GMT\r\n"
111
+ -> "Date: Tue, 01 Jul 2014 15:15:01 GMT\r\n"
128
112
  -> "Content-Type: application/json\r\n"
129
- -> "Transfer-Encoding: chunked\r\n"
113
+ -> "Content-Length: 207\r\n"
130
114
  -> "\r\n"
131
- -> "cf\r\n"
132
115
  reading 207 bytes...
133
- -> "{\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"The requested resource ID was not found\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INVALID_RESOURCE_ID\",\"debug_id\":\"5b37cf15b0e65\"}"
116
+ -> "{\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"The requested resource ID was not found\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INVALID_RESOURCE_ID\",\"debug_id\":\"59e6eafcd9096\"}"
134
117
  read 207 bytes
135
- reading 2 bytes...
136
- -> "\r\n"
137
- read 2 bytes
138
- -> "0\r\n"
139
- -> "\r\n"
140
118
  Conn keep-alive
141
119
  opening connection to api.sandbox.paypal.com:443...
142
120
  opened
143
121
  starting SSL for api.sandbox.paypal.com:443...
144
122
  SSL established
145
- <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015i3t8ei9F.wNyHZRs7RePr0Ofsl2n1G1Z6BpZL4.Dh0A\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.9 (paypal-sdk-core 0.2.9; 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"
123
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015w4xOdsuRFioA4nJQQPtj51urealWpy9RRdeyvUkciyU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 2\r\n\r\n"
146
124
  <- "{}"
147
125
  -> "HTTP/1.1 500 Internal Server Error\r\n"
148
126
  -> "Server: Apache-Coyote/1.1\r\n"
149
- -> "PROXY_SERVER_INFO: host=slcsbjava3.slc.paypal.com;threadId=768254\r\n"
150
- -> "Paypal-Debug-Id: 469a309bada6e\r\n"
151
- -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=63692&TopLevelTxnStartTime=146d4425c64&Host=slcsbjm1.slc.paypal.com&pid=22831\r\n"
152
- -> "CORRELATION-ID: 469a309bada6e\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"
153
131
  -> "Content-Language: *\r\n"
154
- -> "Date: Wed, 25 Jun 2014 18:20:56 GMT\r\n"
132
+ -> "Date: Tue, 01 Jul 2014 15:15:02 GMT\r\n"
155
133
  -> "Connection: close\r\n"
156
134
  -> "Content-Type: application/json\r\n"
157
- -> "Transfer-Encoding: chunked\r\n"
135
+ -> "Content-Length: 212\r\n"
158
136
  -> "Connection: close\r\n"
159
137
  -> "\r\n"
160
- -> "d4\r\n"
161
138
  reading 212 bytes...
162
- -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"469a309bada6e\"}"
139
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"5547f91aa1d8c\"}"
163
140
  read 212 bytes
164
- reading 2 bytes...
165
- -> "\r\n"
166
- read 2 bytes
167
- -> "0\r\n"
168
- -> "\r\n"
169
141
  Conn close
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-25 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple