paypal-sdk-rest 0.7.3 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module REST
4
- VERSION = "0.7.3"
4
+ VERSION = "0.8.1"
5
5
  end
6
6
  end
7
7
  end
data/spec/README.md ADDED
@@ -0,0 +1,34 @@
1
+ How to run tests
2
+ ================
3
+
4
+ The SDK tests are composed of two groups: unit test group and integration (functional) test group. Integration test group is by default set not to run.
5
+
6
+ - run a single test
7
+ - ```
8
+ $ bundle exec rspec <test-file>:<line-number>
9
+ ```
10
+ - e.g., to run payment create test,
11
+ - ```
12
+ $ bundle exec rspec spec/payments_examples_spec.rb:53
13
+ ```
14
+
15
+ - run multiple tests in the same file
16
+ - Add ```:<line-number>``` to the above command. For example, in order to execute payment create and payment list tests,
17
+ - ```
18
+ $ bundle exec rspec spec/payments_examples_spec.rb:53:95
19
+ ```
20
+
21
+ - run integration tests
22
+ - This will set the 'integration' flag and will execute functional tests against sandbox.
23
+ - ```
24
+ $ bundle exec rspec --tag integration
25
+ ```
26
+
27
+ - run tests with a specific String
28
+ - ```
29
+ $ bundle exec rspec -e "<string>"
30
+ ```
31
+ - e.g., to run any tests with "Sa" in test description (for the time being, it will be "Sale" tests)
32
+ - ```
33
+ $ bundle exec rspec -e "Sa"
34
+ ```
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe "Invoice" do
3
+ describe "Invoice", :integration => true do
4
4
 
5
5
  InvoiceAttributes = {
6
6
  "merchant_info" => {
@@ -22,17 +22,17 @@ describe "Invoice" do
22
22
 
23
23
  it "create invoice" do
24
24
  invoice = PayPal::SDK::REST::Invoice.new(InvoiceAttributes)
25
- invoice.create.should be_true
25
+ expect(invoice.create).to be_truthy
26
26
  end
27
27
 
28
28
  it "list invoice" do
29
29
  history = PayPal::SDK::REST::Invoice.get_all( :total_count_required =>true )
30
- history.total_count.should_not be_nil
30
+ expect(history.total_count).not_to be_nil
31
31
  end
32
32
 
33
33
  it "get invoice" do
34
34
  invoice = PayPal::SDK::REST::Invoice.find("INV2-P6VJ-36HG-BBVT-M2MA")
35
35
  invoice.should be_a PayPal::SDK::REST::Invoice
36
- invoice.id.should eql "INV2-P6VJ-36HG-BBVT-M2MA"
36
+ expect(invoice.id).to eql "INV2-P6VJ-36HG-BBVT-M2MA"
37
37
  end
38
38
  end
data/spec/log/http.log CHANGED
@@ -0,0 +1,755 @@
1
+ opening connection to api.sandbox.paypal.com:443...
2
+ opened
3
+ starting SSL for api.sandbox.paypal.com:443...
4
+ SSL established
5
+ <- "POST /v1/invoicing/invoices HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: b82b24fd-f622-4b0c-b4a7-167e59b95855\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: 243\r\n\r\n"
6
+ <- "{\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\"},\"billing_info\":[{\"email\":\"example@example.com\"}],\"items\":[{\"name\":\"Sutures\",\"quantity\":100.0,\"unit_price\":{\"currency\":\"USD\",\"value\":\"5\"}}],\"note\":\"Medical Invoice 16 Jul, 2013 PST\"}"
7
+ -> "HTTP/1.1 201 Created\r\n"
8
+ -> "Server: Apache-Coyote/1.1\r\n"
9
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1135\r\n"
10
+ -> "Paypal-Debug-Id: e992d8ad78f5c\r\n"
11
+ -> "Date: Thu, 11 Dec 2014 20:58:14 GMT\r\n"
12
+ -> "Location: https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-K96B-RS9V-9D7B-Q8JT\r\n"
13
+ -> "Content-Type: application/json\r\n"
14
+ -> "Content-Length: 536\r\n"
15
+ -> "\r\n"
16
+ reading 536 bytes...
17
+ -> "{\"id\":\"INV2-K96B-RS9V-9D7B-Q8JT\",\"number\":\"2599\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"items\":[{\"name\":\"Sutures\",\"quantity\":100.0,\"unit_price\":{\"currency\":\"USD\",\"value\":\"5.00\"}}],\"invoice_date\":\"2014-12-11 PST\",\"discount\":{\"amount\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"tax_calculated_after_discount\":false,\"tax_inclusive\":false,\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"}}"
18
+ read 536 bytes
19
+ Conn keep-alive
20
+ opening connection to api.sandbox.paypal.com:443...
21
+ opened
22
+ starting SSL for api.sandbox.paypal.com:443...
23
+ SSL established
24
+ <- "GET /v1/invoicing/invoices/?total_count_required=true HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
25
+ -> "HTTP/1.1 200 OK\r\n"
26
+ -> "Server: Apache-Coyote/1.1\r\n"
27
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=3551\r\n"
28
+ -> "Paypal-Debug-Id: 3d8d7c8f79a65\r\n"
29
+ -> "Date: Thu, 11 Dec 2014 20:58:15 GMT\r\n"
30
+ -> "Content-Type: application/json\r\n"
31
+ -> "Transfer-Encoding: chunked\r\n"
32
+ -> "\r\n"
33
+ -> "2000\r\n"
34
+ reading 8192 bytes...
35
+ -> "{\"total_count\":2588,\"invoices\":[{\"id\":\"INV2-K96B-RS9V-9D7B-Q8JT\",\"number\":\"2599\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 12:58:14 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-K96B-RS9V-9D7B-Q8JT\"}},{\"id\":\"INV2-2Y5D-76H4-QLEJ-G9HF\",\"number\":\"2598\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 12:10:50 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-2Y5D-76H4-QLEJ-G9HF\"}},{\"id\":\"INV2-CPGD-ETU8-LSHR-RLZH\",\"number\":\"2597\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 11:37:19 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-CPGD-ETU8-LSHR-RLZH\"}},{\"id\":\"INV2-PQ8Q-MPSY-K94T-YDTS\",\"number\":\"2596\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 11:23:50 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-PQ8Q-MPSY-K94T-YDTS\"}},{\"id\":\"INV2-9574-JATY-FP9P-YJVE\",\"number\":\"2595\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 11:15:09 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-9574-JATY-FP9P-YJVE\"}},{\"id\":\"INV2-S9K2-PAZS-2NMK-9E5X\",\"number\":\"2594\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 07:25:12 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-S9K2-PAZS-2NMK-9E5X\"}},{\"id\":\"INV2-9Q3T-ZR9P-8H3G-ADQK\",\"number\":\"2593\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 07:17:15 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-9Q3T-ZR9P-8H3G-ADQK\"}},{\"id\":\"INV2-94KB-H8ZJ-84XX-ZY36\",\"number\":\"2592\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 07:10:08 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-94KB-H8ZJ-84XX-ZY36\"}},{\"id\":\"INV2-DCN4-DLQ9-SZNS-ZEAK\",\"number\":\"2591\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 07:01:27 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-DCN4-DLQ9-SZNS-ZEAK\"}},{\"id\":\"INV2-KPBL-Y48B-QQ56-P2CH\",\"number\":\"2590\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 06:43:40 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-KPBL-Y48B-QQ56-P2CH\"}},{\"id\":\"INV2-BMEG-N6NB-FRBE-GP2L\",\"number\":\"2589\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"payment_term\":{\"due_date\":\"2015-01-25 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 03:06:38 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-BMEG-N6NB-FRBE-GP2L\"}},{\"id\":\"INV2-LXDB-WG8J-9MAU-5BJJ\",\"number\":\"2588\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"payment_term\":{\"due_date\":\"2015-01-25 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 03:05:06 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-LXDB-WG8J-9MAU-5BJJ\"}},{\"id\":\"INV2-6FPJ-GJDU-D8NQ-A6Y5\",\"number\":\"2587\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"payment_term\":{\"due_date\":\"2015-01-25 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 03:02:27 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-6FPJ-GJDU-D8NQ-A6Y5\"}},{\"id\":\"INV2-VR9F-UBAF-TRJP-VBPT\",\"number\":\"2586\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"payment_term\":{\"due_date\":\"2015-01-25 PST\"},\"note\":\"Medical Invoice"
36
+ read 8192 bytes
37
+ reading 2 bytes...
38
+ -> "\r\n"
39
+ read 2 bytes
40
+ -> "eb6\r\n"
41
+ reading 3766 bytes...
42
+ -> " 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 02:51:20 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-VR9F-UBAF-TRJP-VBPT\"}},{\"id\":\"INV2-2WTR-KTRJ-7PWF-KJ2S\",\"number\":\"2585\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"first_name\":\"Sally\",\"last_name\":\"Patient\",\""
43
+ -> "business_name\":\"Not applicable\",\"address\":{}},\"invoice_date\":\"2014-12-11 PST\",\"payment_term\":{\"due_date\":\"2015-01-25 PST\"},\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-11 02:47:30 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-2WTR-KTRJ-7PWF-KJ2S\"}},{\"id\":\"INV2-39LH-HQ6V-8Q24-8MJ5\",\"number\":\"2584\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-10 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-10 10:30:00 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-39LH-HQ6V-8Q24-8MJ5\"}},{\"id\":\"INV2-98SC-Q8QD-9TKZ-V33P\",\"number\":\"2583\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-10 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-10 09:52:06 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-98SC-Q8QD-9TKZ-V33P\"}},{\"id\":\"INV2-BAEV-F228-6C7X-TN9F\",\"number\":\"2582\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-10 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-10 09:33:47 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-BAEV-F228-6C7X-TN9F\"}},{\"id\":\"INV2-CQUN-ZGCN-Z265-YT3X\",\"number\":\"2581\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-10 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-10 08:41:22 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-CQUN-ZGCN-Z265-YT3X\"}},{\"id\":\"INV2-EYCG-TZUE-8E2T-7XJX\",\"number\":\"2580\",\"status\":\"DRAFT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"address\":{}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"email\":\"example@example.com\",\"address\":{}},\"invoice_date\":\"2014-12-10 PST\",\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-12-10 08:20:16 PST\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-EYCG-TZUE-8E2T-7XJX\"}}]}"
44
+ read 3766 bytes
45
+ reading 2 bytes...
46
+ -> "\r\n"
47
+ read 2 bytes
48
+ -> "0\r\n"
49
+ -> "\r\n"
50
+ Conn keep-alive
51
+ opening connection to api.sandbox.paypal.com:443...
52
+ opened
53
+ starting SSL for api.sandbox.paypal.com:443...
54
+ SSL established
55
+ <- "GET /v1/invoicing/invoices/INV2-P6VJ-36HG-BBVT-M2MA HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
56
+ -> "HTTP/1.1 200 OK\r\n"
57
+ -> "Server: Apache-Coyote/1.1\r\n"
58
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=3551\r\n"
59
+ -> "Paypal-Debug-Id: 1b472b8b79931\r\n"
60
+ -> "Date: Thu, 11 Dec 2014 20:58:15 GMT\r\n"
61
+ -> "Content-Type: application/json\r\n"
62
+ -> "Content-Length: 1197\r\n"
63
+ -> "\r\n"
64
+ reading 1197 bytes...
65
+ -> "{\"id\":\"INV2-P6VJ-36HG-BBVT-M2MA\",\"number\":\"0001\",\"status\":\"SENT\",\"merchant_info\":{\"email\":\"PPX.DevNet-facilitator@gmail.com\",\"first_name\":\"Dennis\",\"last_name\":\"Doctor\",\"business_name\":\"Medical Professionals, LLC\",\"address\":{\"line1\":\"1234 Main St.\",\"city\":\"Portland\",\"state\":\"OR\",\"postal_code\":\"97217\",\"country_code\":\"US\"}},\"billing_info\":[{\"email\":\"example@example.com\",\"address\":{}}],\"shipping_info\":{\"first_name\":\"Sally\",\"last_name\":\"Patient\",\"business_name\":\"Not applicable\",\"address\":{\"line1\":\"1234 Broad St.\",\"city\":\"Portland\",\"state\":\"OR\",\"postal_code\":\"97216\",\"country_code\":\"US\"}},\"items\":[{\"name\":\"Sutures\",\"quantity\":100.0,\"unit_price\":{\"currency\":\"USD\",\"value\":\"5.00\"}}],\"invoice_date\":\"2014-04-03 PDT\",\"payment_term\":{\"term_type\":\"NET_45\",\"due_date\":\"2014-05-18 PDT\"},\"tax_calculated_after_discount\":false,\"tax_inclusive\":false,\"note\":\"Medical Invoice 16 Jul, 2013 PST\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"500.00\"},\"metadata\":{\"created_date\":\"2014-04-03 22:30:15 PDT\",\"first_sent_date\":\"2014-04-03 22:48:22 PDT\",\"last_sent_date\":\"2014-04-03 22:48:22 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-P6VJ-36HG-BBVT-M2MA\"}}"
66
+ read 1197 bytes
67
+ Conn keep-alive
68
+ opening connection to api.sandbox.paypal.com:443...
69
+ opened
70
+ starting SSL for api.sandbox.paypal.com:443...
71
+ SSL established
72
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 5e38e81b-fda9-44a8-8b39-a4b7c33e0b84\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: 473\r\n\r\n"
73
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
74
+ -> "HTTP/1.1 201 Created\r\n"
75
+ -> "Server: Apache-Coyote/1.1\r\n"
76
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=449\r\n"
77
+ -> "Paypal-Debug-Id: d4779b197b7d6\r\n"
78
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79043&TopLevelTxnStartTime=14a3b252183&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
79
+ -> "Content-Language: *\r\n"
80
+ -> "Date: Thu, 11 Dec 2014 20:58:39 GMT\r\n"
81
+ -> "Content-Type: application/json\r\n"
82
+ -> "Content-Length: 1354\r\n"
83
+ -> "\r\n"
84
+ reading 1354 bytes...
85
+ -> "{\"id\":\"PAY-58X452252U8625039KSFAK2A\",\"create_time\":\"2014-12-11T20:58:16Z\",\"update_time\":\"2014-12-11T20:58: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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"8BC30446LF3501614\",\"create_time\":\"2014-12-11T20:58:16Z\",\"update_time\":\"2014-12-11T20:58:39Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-58X452252U8625039KSFAK2A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8BC30446LF3501614\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8BC30446LF3501614/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-58X452252U8625039KSFAK2A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-58X452252U8625039KSFAK2A\",\"rel\":\"self\",\"method\":\"GET\"}]}"
86
+ read 1354 bytes
87
+ Conn keep-alive
88
+ opening connection to api.sandbox.paypal.com:443...
89
+ opened
90
+ starting SSL for api.sandbox.paypal.com:443...
91
+ SSL established
92
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: c3f2f705-0f3c-4445-abe6-611ba7417a83\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: 473\r\n\r\n"
93
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
94
+ -> "HTTP/1.1 201 Created\r\n"
95
+ -> "Server: Apache-Coyote/1.1\r\n"
96
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1200\r\n"
97
+ -> "Paypal-Debug-Id: 4251581d7fbc5\r\n"
98
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=80205&TopLevelTxnStartTime=14a3b257dcf&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
99
+ -> "Content-Language: *\r\n"
100
+ -> "Date: Thu, 11 Dec 2014 20:59:01 GMT\r\n"
101
+ -> "Content-Type: application/json\r\n"
102
+ -> "Content-Length: 1354\r\n"
103
+ -> "\r\n"
104
+ reading 1354 bytes...
105
+ -> "{\"id\":\"PAY-6T666806HF5077334KSFALAA\",\"create_time\":\"2014-12-11T20:58:40Z\",\"update_time\":\"2014-12-11T20:59:01Z\",\"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\":\"2HR43398D75754441\",\"create_time\":\"2014-12-11T20:58:40Z\",\"update_time\":\"2014-12-11T20:59:01Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-6T666806HF5077334KSFALAA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2HR43398D75754441\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2HR43398D75754441/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6T666806HF5077334KSFALAA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6T666806HF5077334KSFALAA\",\"rel\":\"self\",\"method\":\"GET\"}]}"
106
+ read 1354 bytes
107
+ Conn keep-alive
108
+ opening connection to api.sandbox.paypal.com:443...
109
+ opened
110
+ starting SSL for api.sandbox.paypal.com:443...
111
+ SSL established
112
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: c3f2f705-0f3c-4445-abe6-611ba7417a83\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: 473\r\n\r\n"
113
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
114
+ -> "HTTP/1.1 200 OK\r\n"
115
+ -> "Server: Apache-Coyote/1.1\r\n"
116
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1647\r\n"
117
+ -> "Paypal-Debug-Id: 5bc99057755e4\r\n"
118
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=80205&TopLevelTxnStartTime=14a3b25d3d4&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
119
+ -> "Content-Language: *\r\n"
120
+ -> "Date: Thu, 11 Dec 2014 20:59:03 GMT\r\n"
121
+ -> "Content-Type: application/json\r\n"
122
+ -> "Content-Length: 1354\r\n"
123
+ -> "\r\n"
124
+ reading 1354 bytes...
125
+ -> "{\"id\":\"PAY-6T666806HF5077334KSFALAA\",\"create_time\":\"2014-12-11T20:58:40Z\",\"update_time\":\"2014-12-11T20:59:01Z\",\"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\":\"2HR43398D75754441\",\"create_time\":\"2014-12-11T20:58:40Z\",\"update_time\":\"2014-12-11T20:59:01Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-6T666806HF5077334KSFALAA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2HR43398D75754441\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2HR43398D75754441/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6T666806HF5077334KSFALAA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6T666806HF5077334KSFALAA\",\"rel\":\"self\",\"method\":\"GET\"}]}"
126
+ read 1354 bytes
127
+ Conn keep-alive
128
+ opening connection to api.sandbox.paypal.com:443...
129
+ opened
130
+ starting SSL for api.sandbox.paypal.com:443...
131
+ SSL established
132
+ <- "GET /v1/payments/payment?count=5 HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
133
+ -> "HTTP/1.1 200 OK\r\n"
134
+ -> "Server: Apache-Coyote/1.1\r\n"
135
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1063\r\n"
136
+ -> "Paypal-Debug-Id: 456b3e5140b57\r\n"
137
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79040&TopLevelTxnStartTime=14a3b268d84&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
138
+ -> "Content-Language: *\r\n"
139
+ -> "Date: Thu, 11 Dec 2014 21:00:02 GMT\r\n"
140
+ -> "Content-Type: application/json\r\n"
141
+ -> "Content-Length: 6871\r\n"
142
+ -> "\r\n"
143
+ reading 6871 bytes...
144
+ -> "{\"payments\":[{\"id\":\"PAY-4FU28626EL681700SKSFALLY\",\"create_time\":\"2014-12-11T20:59:27Z\",\"update_time\":\"2014-12-11T20:59:49Z\",\"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\":\"6T672882ML1364646\",\"create_time\":\"2014-12-11T20:59:27Z\",\"update_time\":\"2014-12-11T20:59:49Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-4FU28626EL681700SKSFALLY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6T672882ML1364646\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6T672882ML1364646/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4FU28626EL681700SKSFALLY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4FU28626EL681700SKSFALLY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1AF39576DN670642JKSFALGA\",\"create_time\":\"2014-12-11T20:59:04Z\",\"update_time\":\"2014-12-11T20:59:25Z\",\"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\":\"5XU538571G163023N\",\"create_time\":\"2014-12-11T20:59:04Z\",\"update_time\":\"2014-12-11T20:59:25Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-1AF39576DN670642JKSFALGA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/5XU538571G163023N\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/5XU538571G163023N/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1AF39576DN670642JKSFALGA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1AF39576DN670642JKSFALGA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-6T666806HF5077334KSFALAA\",\"create_time\":\"2014-12-11T20:58:40Z\",\"update_time\":\"2014-12-11T20:59:01Z\",\"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\":\"2HR43398D75754441\",\"create_time\":\"2014-12-11T20:58:40Z\",\"update_time\":\"2014-12-11T20:59:01Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-6T666806HF5077334KSFALAA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2HR43398D75754441\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2HR43398D75754441/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6T666806HF5077334KSFALAA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6T666806HF5077334KSFALAA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-58X452252U8625039KSFAK2A\",\"create_time\":\"2014-12-11T20:58:16Z\",\"update_time\":\"2014-12-11T20:58: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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"8BC30446LF3501614\",\"create_time\":\"2014-12-11T20:58:16Z\",\"update_time\":\"2014-12-11T20:58:39Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-58X452252U8625039KSFAK2A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8BC30446LF3501614\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8BC30446LF3501614/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-58X452252U8625039KSFAK2A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-58X452252U8625039KSFAK2A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5F597441Y27308919KSFAAMA\",\"create_time\":\"2014-12-11T20:36:00Z\",\"update_time\":\"2014-12-11T20:36:21Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"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\":\"8RG745990U658222A\",\"create_time\":\"2014-12-11T20:36:00Z\",\"update_time\":\"2014-12-11T20:36:21Z\",\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5F597441Y27308919KSFAAMA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8RG745990U658222A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8RG745990U658222A/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5F597441Y27308919KSFAAMA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5F597441Y27308919KSFAAMA\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":5,\"next_id\":\"PAY-1MN128532R642144YKSE755Y\"}"
145
+ read 6871 bytes
146
+ Conn keep-alive
147
+ opening connection to api.sandbox.paypal.com:443...
148
+ opened
149
+ starting SSL for api.sandbox.paypal.com:443...
150
+ SSL established
151
+ <- "GET /v1/payments/payment?count=1 HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
152
+ -> "HTTP/1.1 200 OK\r\n"
153
+ -> "Server: Apache-Coyote/1.1\r\n"
154
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1063\r\n"
155
+ -> "Paypal-Debug-Id: b7cfdf2b438a7\r\n"
156
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79040&TopLevelTxnStartTime=14a3b26bef3&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
157
+ -> "Content-Language: *\r\n"
158
+ -> "Date: Thu, 11 Dec 2014 21:00:12 GMT\r\n"
159
+ -> "Content-Type: application/json\r\n"
160
+ -> "Content-Length: 1420\r\n"
161
+ -> "\r\n"
162
+ reading 1420 bytes...
163
+ -> "{\"payments\":[{\"id\":\"PAY-4FU28626EL681700SKSFALLY\",\"create_time\":\"2014-12-11T20:59:27Z\",\"update_time\":\"2014-12-11T20:59:49Z\",\"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\":\"6T672882ML1364646\",\"create_time\":\"2014-12-11T20:59:27Z\",\"update_time\":\"2014-12-11T20:59:49Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-4FU28626EL681700SKSFALLY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6T672882ML1364646\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6T672882ML1364646/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4FU28626EL681700SKSFALLY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4FU28626EL681700SKSFALLY\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":1,\"next_id\":\"PAY-1AF39576DN670642JKSFALGA\"}"
164
+ read 1420 bytes
165
+ Conn keep-alive
166
+ opening connection to api.sandbox.paypal.com:443...
167
+ opened
168
+ starting SSL for api.sandbox.paypal.com:443...
169
+ SSL established
170
+ <- "GET /v1/payments/payment/PAY-4FU28626EL681700SKSFALLY HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
171
+ -> "HTTP/1.1 200 OK\r\n"
172
+ -> "Server: Apache-Coyote/1.1\r\n"
173
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=2079\r\n"
174
+ -> "Paypal-Debug-Id: b714ac6b46190\r\n"
175
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79040&TopLevelTxnStartTime=14a3b26e812&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
176
+ -> "Content-Language: *\r\n"
177
+ -> "Date: Thu, 11 Dec 2014 21:00:12 GMT\r\n"
178
+ -> "Content-Type: application/json\r\n"
179
+ -> "Content-Length: 1354\r\n"
180
+ -> "\r\n"
181
+ reading 1354 bytes...
182
+ -> "{\"id\":\"PAY-4FU28626EL681700SKSFALLY\",\"create_time\":\"2014-12-11T20:59:27Z\",\"update_time\":\"2014-12-11T20:59:49Z\",\"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\":\"6T672882ML1364646\",\"create_time\":\"2014-12-11T20:59:27Z\",\"update_time\":\"2014-12-11T20:59:49Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-4FU28626EL681700SKSFALLY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6T672882ML1364646\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6T672882ML1364646/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4FU28626EL681700SKSFALLY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4FU28626EL681700SKSFALLY\",\"rel\":\"self\",\"method\":\"GET\"}]}"
183
+ read 1354 bytes
184
+ Conn keep-alive
185
+ opening connection to api.sandbox.paypal.com:443...
186
+ opened
187
+ starting SSL for api.sandbox.paypal.com:443...
188
+ SSL established
189
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 6c83d0f6-9c14-4958-8b4a-8284e3085e91\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"
190
+ <- "{}"
191
+ -> "HTTP/1.1 400 Bad Request\r\n"
192
+ -> "Server: Apache-Coyote/1.1\r\n"
193
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=2079\r\n"
194
+ -> "Paypal-Debug-Id: 97a74c0846c83\r\n"
195
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79040&TopLevelTxnStartTime=14a3b26eb1e&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
196
+ -> "Content-Language: *\r\n"
197
+ -> "Date: Thu, 11 Dec 2014 21:00:13 GMT\r\n"
198
+ -> "Connection: close\r\n"
199
+ -> "Content-Type: application/json\r\n"
200
+ -> "Content-Length: 306\r\n"
201
+ -> "Connection: close\r\n"
202
+ -> "\r\n"
203
+ reading 306 bytes...
204
+ -> "{\"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\":\"97a74c0846c83\"}"
205
+ read 306 bytes
206
+ Conn close
207
+ opening connection to api.sandbox.paypal.com:443...
208
+ opened
209
+ starting SSL for api.sandbox.paypal.com:443...
210
+ SSL established
211
+ <- "GET /v1/payments/payment/Invalid HTTP/1.1\r\nAuthorization: Bearer A015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
212
+ -> "HTTP/1.1 404 Not Found\r\n"
213
+ -> "Server: Apache-Coyote/1.1\r\n"
214
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1216\r\n"
215
+ -> "Paypal-Debug-Id: 3060cb2447b18\r\n"
216
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=80205&TopLevelTxnStartTime=14a3b26ed15&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
217
+ -> "Content-Language: *\r\n"
218
+ -> "Date: Thu, 11 Dec 2014 21:00:13 GMT\r\n"
219
+ -> "Content-Type: application/json\r\n"
220
+ -> "Content-Length: 207\r\n"
221
+ -> "\r\n"
222
+ reading 207 bytes...
223
+ -> "{\"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\":\"3060cb2447b18\"}"
224
+ read 207 bytes
225
+ Conn keep-alive
226
+ opening connection to api.sandbox.paypal.com:443...
227
+ opened
228
+ starting SSL for api.sandbox.paypal.com:443...
229
+ SSL established
230
+ <- "GET /v1/payments/payment?count=1 HTTP/1.1\r\nAuthorization: Bearer ExpiredA015ShxvlpxM0bxgurhJby37iwjNEVkHofguOf-ZjSjDbuA\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
231
+ -> "HTTP/1.1 401 Unauthorized\r\n"
232
+ -> "Server: Apache-Coyote/1.1\r\n"
233
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=2079\r\n"
234
+ -> "Paypal-Debug-Id: eaa1d1eb4683e\r\n"
235
+ -> "Content-Type: application/json\r\n"
236
+ -> "Content-Length: 0\r\n"
237
+ -> "Date: Thu, 11 Dec 2014 21:00:13 GMT\r\n"
238
+ -> "\r\n"
239
+ reading 0 bytes...
240
+ -> ""
241
+ read 0 bytes
242
+ Conn keep-alive
243
+ opening connection to api.sandbox.paypal.com:443...
244
+ opened
245
+ starting SSL for api.sandbox.paypal.com:443...
246
+ SSL established
247
+ <- "GET /v1/payments/payment?count=1 HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
248
+ -> "HTTP/1.1 200 OK\r\n"
249
+ -> "Server: Apache-Coyote/1.1\r\n"
250
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1216\r\n"
251
+ -> "Paypal-Debug-Id: ec2bbf77464fe\r\n"
252
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79040&TopLevelTxnStartTime=14a3b26f34a&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
253
+ -> "Content-Language: *\r\n"
254
+ -> "Date: Thu, 11 Dec 2014 21:00:26 GMT\r\n"
255
+ -> "Content-Type: application/json\r\n"
256
+ -> "Content-Length: 1420\r\n"
257
+ -> "\r\n"
258
+ reading 1420 bytes...
259
+ -> "{\"payments\":[{\"id\":\"PAY-4FU28626EL681700SKSFALLY\",\"create_time\":\"2014-12-11T20:59:27Z\",\"update_time\":\"2014-12-11T20:59:49Z\",\"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\":\"6T672882ML1364646\",\"create_time\":\"2014-12-11T20:59:27Z\",\"update_time\":\"2014-12-11T20:59:49Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-4FU28626EL681700SKSFALLY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6T672882ML1364646\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6T672882ML1364646/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4FU28626EL681700SKSFALLY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4FU28626EL681700SKSFALLY\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":1,\"next_id\":\"PAY-1AF39576DN670642JKSFALGA\"}"
260
+ read 1420 bytes
261
+ Conn keep-alive
262
+ opening connection to api.sandbox.paypal.com:443...
263
+ opened
264
+ starting SSL for api.sandbox.paypal.com:443...
265
+ SSL established
266
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: a0d2c033-bb68-412f-b9ba-d5b7850db404\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: 473\r\n\r\n"
267
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
268
+ -> "HTTP/1.1 201 Created\r\n"
269
+ -> "Server: Apache-Coyote/1.1\r\n"
270
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=2079\r\n"
271
+ -> "Paypal-Debug-Id: 52fde85a599a1\r\n"
272
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=80205&TopLevelTxnStartTime=14a3b271f60&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
273
+ -> "Content-Language: *\r\n"
274
+ -> "Date: Thu, 11 Dec 2014 21:00:49 GMT\r\n"
275
+ -> "Content-Type: application/json\r\n"
276
+ -> "Content-Length: 1354\r\n"
277
+ -> "\r\n"
278
+ reading 1354 bytes...
279
+ -> "{\"id\":\"PAY-4TA41336GU250842DKSFAL2Y\",\"create_time\":\"2014-12-11T21:00:27Z\",\"update_time\":\"2014-12-11T21:00:49Z\",\"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\":\"9RN89019AM1029136\",\"create_time\":\"2014-12-11T21:00:27Z\",\"update_time\":\"2014-12-11T21:00:49Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-4TA41336GU250842DKSFAL2Y\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9RN89019AM1029136\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9RN89019AM1029136/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4TA41336GU250842DKSFAL2Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4TA41336GU250842DKSFAL2Y\",\"rel\":\"self\",\"method\":\"GET\"}]}"
280
+ read 1354 bytes
281
+ Conn keep-alive
282
+ opening connection to api.sandbox.paypal.com:443...
283
+ opened
284
+ starting SSL for api.sandbox.paypal.com:443...
285
+ SSL established
286
+ <- "GET /v1/payments/sale/9RN89019AM1029136 HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
287
+ -> "HTTP/1.1 200 OK\r\n"
288
+ -> "Server: Apache-Coyote/1.1\r\n"
289
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=2079\r\n"
290
+ -> "Paypal-Debug-Id: 2186ec6b5f05a\r\n"
291
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.sale&CalThreadId=79040&TopLevelTxnStartTime=14a3b27770e&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
292
+ -> "Content-Language: *\r\n"
293
+ -> "Date: Thu, 11 Dec 2014 21:00:49 GMT\r\n"
294
+ -> "Content-Type: application/json\r\n"
295
+ -> "Content-Length: 729\r\n"
296
+ -> "\r\n"
297
+ reading 729 bytes...
298
+ -> "{\"id\":\"9RN89019AM1029136\",\"create_time\":\"2014-12-11T21:00:27Z\",\"update_time\":\"2014-12-11T21:00:49Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-4TA41336GU250842DKSFAL2Y\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9RN89019AM1029136\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9RN89019AM1029136/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4TA41336GU250842DKSFAL2Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
299
+ read 729 bytes
300
+ Conn keep-alive
301
+ opening connection to api.sandbox.paypal.com:443...
302
+ opened
303
+ starting SSL for api.sandbox.paypal.com:443...
304
+ SSL established
305
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 1b70012e-8586-4849-b2e8-8650a64c59e7\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: 473\r\n\r\n"
306
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
307
+ -> "HTTP/1.1 201 Created\r\n"
308
+ -> "Server: Apache-Coyote/1.1\r\n"
309
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1333\r\n"
310
+ -> "Paypal-Debug-Id: 128e9b985e15e\r\n"
311
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79043&TopLevelTxnStartTime=14a3b2779c7&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
312
+ -> "Content-Language: *\r\n"
313
+ -> "Date: Thu, 11 Dec 2014 21:01:14 GMT\r\n"
314
+ -> "Content-Type: application/json\r\n"
315
+ -> "Content-Length: 1354\r\n"
316
+ -> "\r\n"
317
+ reading 1354 bytes...
318
+ -> "{\"id\":\"PAY-02238720UV416440LKSFAMAQ\",\"create_time\":\"2014-12-11T21:00:50Z\",\"update_time\":\"2014-12-11T21:01:14Z\",\"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\":\"9C242205NR614711N\",\"create_time\":\"2014-12-11T21:00:50Z\",\"update_time\":\"2014-12-11T21:01:14Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-02238720UV416440LKSFAMAQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9C242205NR614711N\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9C242205NR614711N/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02238720UV416440LKSFAMAQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02238720UV416440LKSFAMAQ\",\"rel\":\"self\",\"method\":\"GET\"}]}"
319
+ read 1354 bytes
320
+ Conn keep-alive
321
+ opening connection to api.sandbox.paypal.com:443...
322
+ opened
323
+ starting SSL for api.sandbox.paypal.com:443...
324
+ SSL established
325
+ <- "POST /v1/payments/sale/9C242205NR614711N/refund HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 5d9395fc-2de2-4467-8da7-7fb64ce37d1c\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: 44\r\n\r\n"
326
+ <- "{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"}}"
327
+ -> "HTTP/1.1 201 Created\r\n"
328
+ -> "Server: Apache-Coyote/1.1\r\n"
329
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1067\r\n"
330
+ -> "Paypal-Debug-Id: c607841255da8\r\n"
331
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.sale&CalThreadId=173&TopLevelTxnStartTime=14a3b27db73&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
332
+ -> "Content-Language: *\r\n"
333
+ -> "Date: Thu, 11 Dec 2014 21:01:17 GMT\r\n"
334
+ -> "Content-Type: application/json\r\n"
335
+ -> "Content-Length: 592\r\n"
336
+ -> "\r\n"
337
+ reading 592 bytes...
338
+ -> "{\"id\":\"9FW832024P4650306\",\"create_time\":\"2014-12-11T21:01:16Z\",\"update_time\":\"2014-12-11T21:01:16Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"sale_id\":\"9C242205NR614711N\",\"parent_payment\":\"PAY-02238720UV416440LKSFAMAQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/9FW832024P4650306\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02238720UV416440LKSFAMAQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9C242205NR614711N\",\"rel\":\"sale\",\"method\":\"GET\"}]}"
339
+ read 592 bytes
340
+ Conn keep-alive
341
+ opening connection to api.sandbox.paypal.com:443...
342
+ opened
343
+ starting SSL for api.sandbox.paypal.com:443...
344
+ SSL established
345
+ <- "GET /v1/payments/refund/9FW832024P4650306 HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
346
+ -> "HTTP/1.1 200 OK\r\n"
347
+ -> "Server: Apache-Coyote/1.1\r\n"
348
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1333\r\n"
349
+ -> "Paypal-Debug-Id: 9d2bef2157b45\r\n"
350
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.refund&CalThreadId=79043&TopLevelTxnStartTime=14a3b27e33f&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
351
+ -> "Content-Language: *\r\n"
352
+ -> "Date: Thu, 11 Dec 2014 21:01:16 GMT\r\n"
353
+ -> "Content-Type: application/json\r\n"
354
+ -> "Content-Length: 593\r\n"
355
+ -> "\r\n"
356
+ reading 593 bytes...
357
+ -> "{\"id\":\"9FW832024P4650306\",\"create_time\":\"2014-12-11T21:01:16Z\",\"update_time\":\"2014-12-11T21:01:16Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-1.00\",\"currency\":\"USD\"},\"sale_id\":\"9C242205NR614711N\",\"parent_payment\":\"PAY-02238720UV416440LKSFAMAQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/9FW832024P4650306\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02238720UV416440LKSFAMAQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9C242205NR614711N\",\"rel\":\"sale\",\"method\":\"GET\"}]}"
358
+ read 593 bytes
359
+ Conn keep-alive
360
+ opening connection to api.sandbox.paypal.com:443...
361
+ opened
362
+ starting SSL for api.sandbox.paypal.com:443...
363
+ SSL established
364
+ <- "GET /v1/payments/orders/O-2HT09787H36911800 HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
365
+ -> "HTTP/1.1 200 OK\r\n"
366
+ -> "Server: Apache-Coyote/1.1\r\n"
367
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=922\r\n"
368
+ -> "Paypal-Debug-Id: ecbbe86c56351\r\n"
369
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.orders&CalThreadId=173&TopLevelTxnStartTime=14a3b27e608&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
370
+ -> "Content-Language: *\r\n"
371
+ -> "Date: Thu, 11 Dec 2014 21:01:18 GMT\r\n"
372
+ -> "Content-Type: application/json\r\n"
373
+ -> "Content-Length: 489\r\n"
374
+ -> "\r\n"
375
+ reading 489 bytes...
376
+ -> "{\"id\":\"O-2HT09787H36911800\",\"create_time\":\"2014-09-05T15:35:51Z\",\"update_time\":\"2014-09-05T15:36:47Z\",\"state\":\"expired\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"parent_payment\":\"PAY-9KG19994R2259015YKQE5QVY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/orders/O-2HT09787H36911800\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9KG19994R2259015YKQE5QVY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
377
+ read 489 bytes
378
+ Conn keep-alive
379
+ opening connection to api.sandbox.paypal.com:443...
380
+ opened
381
+ starting SSL for api.sandbox.paypal.com:443...
382
+ SSL established
383
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 6a4a0252-6ef7-4792-b02a-bc98b1dd319e\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: 478\r\n\r\n"
384
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
385
+ -> "HTTP/1.1 201 Created\r\n"
386
+ -> "Server: Apache-Coyote/1.1\r\n"
387
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1067\r\n"
388
+ -> "Paypal-Debug-Id: ff4f6c9456e31\r\n"
389
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=173&TopLevelTxnStartTime=14a3b27e8a6&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
390
+ -> "Content-Language: *\r\n"
391
+ -> "Date: Thu, 11 Dec 2014 21:01:38 GMT\r\n"
392
+ -> "Content-Type: application/json\r\n"
393
+ -> "Content-Length: 1576\r\n"
394
+ -> "\r\n"
395
+ reading 1576 bytes...
396
+ -> "{\"id\":\"PAY-39U73679H2981102FKSFAMHY\",\"create_time\":\"2014-12-11T21:01:19Z\",\"update_time\":\"2014-12-11T21:01:39Z\",\"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\":\"0R221031N1313411S\",\"create_time\":\"2014-12-11T21:01:19Z\",\"update_time\":\"2014-12-11T21:01:39Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-39U73679H2981102FKSFAMHY\",\"valid_until\":\"2015-01-09T21:01:19Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0R221031N1313411S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0R221031N1313411S/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0R221031N1313411S/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-39U73679H2981102FKSFAMHY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-39U73679H2981102FKSFAMHY\",\"rel\":\"self\",\"method\":\"GET\"}]}"
397
+ read 1576 bytes
398
+ Conn keep-alive
399
+ opening connection to api.sandbox.paypal.com:443...
400
+ opened
401
+ starting SSL for api.sandbox.paypal.com:443...
402
+ SSL established
403
+ <- "GET /v1/payments/authorization/0R221031N1313411S HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
404
+ -> "HTTP/1.1 200 OK\r\n"
405
+ -> "Server: Apache-Coyote/1.1\r\n"
406
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1964\r\n"
407
+ -> "Paypal-Debug-Id: c02a1665abb6a\r\n"
408
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.authorization&CalThreadId=173&TopLevelTxnStartTime=14a3b283ddb&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
409
+ -> "Content-Language: *\r\n"
410
+ -> "Date: Thu, 11 Dec 2014 21:01:40 GMT\r\n"
411
+ -> "Content-Type: application/json\r\n"
412
+ -> "Content-Length: 937\r\n"
413
+ -> "\r\n"
414
+ reading 937 bytes...
415
+ -> "{\"id\":\"0R221031N1313411S\",\"create_time\":\"2014-12-11T21:01:19Z\",\"update_time\":\"2014-12-11T21:01:39Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"authorized\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-39U73679H2981102FKSFAMHY\",\"valid_until\":\"2015-01-09T21:01:19Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0R221031N1313411S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0R221031N1313411S/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0R221031N1313411S/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-39U73679H2981102FKSFAMHY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
416
+ read 937 bytes
417
+ Conn keep-alive
418
+ opening connection to api.sandbox.paypal.com:443...
419
+ opened
420
+ starting SSL for api.sandbox.paypal.com:443...
421
+ SSL established
422
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 2095b418-ebd0-43ce-b251-469037012f98\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: 478\r\n\r\n"
423
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
424
+ -> "HTTP/1.1 201 Created\r\n"
425
+ -> "Server: Apache-Coyote/1.1\r\n"
426
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=774\r\n"
427
+ -> "Paypal-Debug-Id: 3fa1cb50ad8fd\r\n"
428
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79043&TopLevelTxnStartTime=14a3b2840c2&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
429
+ -> "Content-Language: *\r\n"
430
+ -> "Date: Thu, 11 Dec 2014 21:02:01 GMT\r\n"
431
+ -> "Content-Type: application/json\r\n"
432
+ -> "Content-Length: 1576\r\n"
433
+ -> "\r\n"
434
+ reading 1576 bytes...
435
+ -> "{\"id\":\"PAY-2GF03137GH9777329KSFAMNI\",\"create_time\":\"2014-12-11T21:01:41Z\",\"update_time\":\"2014-12-11T21:02:01Z\",\"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\":\"4Y0965198U320580W\",\"create_time\":\"2014-12-11T21:01:41Z\",\"update_time\":\"2014-12-11T21:02:01Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-2GF03137GH9777329KSFAMNI\",\"valid_until\":\"2015-01-09T21:01:41Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/4Y0965198U320580W\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/4Y0965198U320580W/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/4Y0965198U320580W/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2GF03137GH9777329KSFAMNI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2GF03137GH9777329KSFAMNI\",\"rel\":\"self\",\"method\":\"GET\"}]}"
436
+ read 1576 bytes
437
+ Conn keep-alive
438
+ opening connection to api.sandbox.paypal.com:443...
439
+ opened
440
+ starting SSL for api.sandbox.paypal.com:443...
441
+ SSL established
442
+ <- "POST /v1/payments/authorization/4Y0965198U320580W/capture HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: dfe7e405-7e79-4639-9ea1-142102eb036a\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: 44\r\n\r\n"
443
+ <- "{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"}}"
444
+ -> "HTTP/1.1 200 OK\r\n"
445
+ -> "Server: Apache-Coyote/1.1\r\n"
446
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=3551\r\n"
447
+ -> "Paypal-Debug-Id: 0dfae683a14b6\r\n"
448
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.authorization&CalThreadId=80166&TopLevelTxnStartTime=14a3b28929a&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
449
+ -> "Content-Language: *\r\n"
450
+ -> "Date: Thu, 11 Dec 2014 21:02:21 GMT\r\n"
451
+ -> "Content-Type: application/json\r\n"
452
+ -> "Content-Length: 724\r\n"
453
+ -> "\r\n"
454
+ reading 724 bytes...
455
+ -> "{\"id\":\"30S49374Y03361254\",\"create_time\":\"2014-12-11T21:02:02Z\",\"update_time\":\"2014-12-11T21:02:21Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"is_final_capture\":false,\"state\":\"completed\",\"parent_payment\":\"PAY-2GF03137GH9777329KSFAMNI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/30S49374Y03361254\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/30S49374Y03361254/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/4Y0965198U320580W\",\"rel\":\"authorization\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2GF03137GH9777329KSFAMNI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
456
+ read 724 bytes
457
+ Conn keep-alive
458
+ opening connection to api.sandbox.paypal.com:443...
459
+ opened
460
+ starting SSL for api.sandbox.paypal.com:443...
461
+ SSL established
462
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: f4f39ab8-60ef-45d3-93f8-be810b53213a\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: 478\r\n\r\n"
463
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
464
+ -> "HTTP/1.1 201 Created\r\n"
465
+ -> "Server: Apache-Coyote/1.1\r\n"
466
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=3551\r\n"
467
+ -> "Paypal-Debug-Id: 171fb246a5b4a\r\n"
468
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=80166&TopLevelTxnStartTime=14a3b28ddd3&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
469
+ -> "Content-Language: *\r\n"
470
+ -> "Date: Thu, 11 Dec 2014 21:02:42 GMT\r\n"
471
+ -> "Content-Type: application/json\r\n"
472
+ -> "Content-Length: 1576\r\n"
473
+ -> "\r\n"
474
+ reading 1576 bytes...
475
+ -> "{\"id\":\"PAY-3WE51652HY971343AKSFAMXI\",\"create_time\":\"2014-12-11T21:02:21Z\",\"update_time\":\"2014-12-11T21:02:42Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"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\":\"0U717940PX656341J\",\"create_time\":\"2014-12-11T21:02:21Z\",\"update_time\":\"2014-12-11T21:02:42Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-3WE51652HY971343AKSFAMXI\",\"valid_until\":\"2015-01-09T21:02:21Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0U717940PX656341J\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0U717940PX656341J/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0U717940PX656341J/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3WE51652HY971343AKSFAMXI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3WE51652HY971343AKSFAMXI\",\"rel\":\"self\",\"method\":\"GET\"}]}"
476
+ read 1576 bytes
477
+ Conn keep-alive
478
+ opening connection to api.sandbox.paypal.com:443...
479
+ opened
480
+ starting SSL for api.sandbox.paypal.com:443...
481
+ SSL established
482
+ <- "POST /v1/payments/authorization/0U717940PX656341J/void HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 167b82c9-9e8c-4a43-bcd9-d4f00c0e434a\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"
483
+ <- "{}"
484
+ -> "HTTP/1.1 200 OK\r\n"
485
+ -> "Server: Apache-Coyote/1.1\r\n"
486
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1216\r\n"
487
+ -> "Paypal-Debug-Id: 30687dd9bab84\r\n"
488
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.authorization&CalThreadId=79043&TopLevelTxnStartTime=14a3b293303&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
489
+ -> "Content-Language: *\r\n"
490
+ -> "Date: Thu, 11 Dec 2014 21:02:43 GMT\r\n"
491
+ -> "Content-Type: application/json\r\n"
492
+ -> "Content-Length: 491\r\n"
493
+ -> "\r\n"
494
+ reading 491 bytes...
495
+ -> "{\"id\":\"0U717940PX656341J\",\"create_time\":\"2014-12-11T21:02:21Z\",\"update_time\":\"2014-12-11T21:02:42Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-3WE51652HY971343AKSFAMXI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0U717940PX656341J\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3WE51652HY971343AKSFAMXI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
496
+ read 491 bytes
497
+ Conn keep-alive
498
+ opening connection to api.sandbox.paypal.com:443...
499
+ opened
500
+ starting SSL for api.sandbox.paypal.com:443...
501
+ SSL established
502
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 05e7fb84-354a-4124-a8c2-64a5c432024f\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: 478\r\n\r\n"
503
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
504
+ -> "HTTP/1.1 201 Created\r\n"
505
+ -> "Server: Apache-Coyote/1.1\r\n"
506
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1200\r\n"
507
+ -> "Paypal-Debug-Id: 079dc3bcbb1d4\r\n"
508
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=80166&TopLevelTxnStartTime=14a3b293715&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
509
+ -> "Content-Language: *\r\n"
510
+ -> "Date: Thu, 11 Dec 2014 21:03:04 GMT\r\n"
511
+ -> "Content-Type: application/json\r\n"
512
+ -> "Content-Length: 1576\r\n"
513
+ -> "\r\n"
514
+ reading 1576 bytes...
515
+ -> "{\"id\":\"PAY-8DK55949RL399743CKSFAM5A\",\"create_time\":\"2014-12-11T21:02:44Z\",\"update_time\":\"2014-12-11T21:03: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\":\"4AV77320825512530\",\"create_time\":\"2014-12-11T21:02:44Z\",\"update_time\":\"2014-12-11T21:03:05Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-8DK55949RL399743CKSFAM5A\",\"valid_until\":\"2015-01-09T21:02:44Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/4AV77320825512530\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/4AV77320825512530/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/4AV77320825512530/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8DK55949RL399743CKSFAM5A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8DK55949RL399743CKSFAM5A\",\"rel\":\"self\",\"method\":\"GET\"}]}"
516
+ read 1576 bytes
517
+ Conn keep-alive
518
+ opening connection to api.sandbox.paypal.com:443...
519
+ opened
520
+ starting SSL for api.sandbox.paypal.com:443...
521
+ SSL established
522
+ <- "GET /v1/payments/authorization/7GH53639GA425732B HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
523
+ -> "HTTP/1.1 200 OK\r\n"
524
+ -> "Server: Apache-Coyote/1.1\r\n"
525
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1216\r\n"
526
+ -> "Paypal-Debug-Id: 78da1001b101b\r\n"
527
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.authorization&CalThreadId=79043&TopLevelTxnStartTime=14a3b29898c&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
528
+ -> "Content-Language: *\r\n"
529
+ -> "Date: Thu, 11 Dec 2014 21:03:05 GMT\r\n"
530
+ -> "Content-Type: application/json\r\n"
531
+ -> "Content-Length: 1070\r\n"
532
+ -> "\r\n"
533
+ reading 1070 bytes...
534
+ -> "{\"id\":\"7GH53639GA425732B\",\"create_time\":\"2013-07-31T06:20:41Z\",\"update_time\":\"2013-07-31T06:21:06Z\",\"amount\":{\"total\":\"12.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"12.00\"}},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"expired\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-98F50122XA6137358KH4KZOI\",\"valid_until\":\"2013-08-29T06:20:41Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7GH53639GA425732B\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7GH53639GA425732B/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7GH53639GA425732B/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7GH53639GA425732B/reauthorize\",\"rel\":\"reauthorize\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-98F50122XA6137358KH4KZOI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
535
+ read 1070 bytes
536
+ Conn keep-alive
537
+ opening connection to api.sandbox.paypal.com:443...
538
+ opened
539
+ starting SSL for api.sandbox.paypal.com:443...
540
+ SSL established
541
+ <- "POST /v1/payments/authorization/7GH53639GA425732B/reauthorize HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: dcd096bf-8e48-42bf-b287-c12fff170fdd\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: 1038\r\n\r\n"
542
+ <- "{\"id\":\"7GH53639GA425732B\",\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"expired\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-98F50122XA6137358KH4KZOI\",\"valid_until\":\"2013-08-29T06:20:41Z\",\"create_time\":\"2013-07-31T06:20:41Z\",\"update_time\":\"2013-07-31T06:21:06Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7GH53639GA425732B\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7GH53639GA425732B/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7GH53639GA425732B/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7GH53639GA425732B/reauthorize\",\"rel\":\"reauthorize\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-98F50122XA6137358KH4KZOI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
543
+ -> "HTTP/1.1 400 Bad Request\r\n"
544
+ -> "Server: Apache-Coyote/1.1\r\n"
545
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1200\r\n"
546
+ -> "Paypal-Debug-Id: 6db506c3b0ce1\r\n"
547
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.authorization&CalThreadId=80166&TopLevelTxnStartTime=14a3b298bf6&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
548
+ -> "Content-Language: *\r\n"
549
+ -> "Date: Thu, 11 Dec 2014 21:03:06 GMT\r\n"
550
+ -> "Connection: close\r\n"
551
+ -> "Content-Type: application/json\r\n"
552
+ -> "Content-Length: 197\r\n"
553
+ -> "Connection: close\r\n"
554
+ -> "\r\n"
555
+ reading 197 bytes...
556
+ -> "{\"name\":\"AUTHORIZATION_EXPIRED\",\"message\":\"Authorization has expired\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#AUTHORIZATION_EXPIRED\",\"debug_id\":\"6db506c3b0ce1\"}"
557
+ read 197 bytes
558
+ Conn close
559
+ opening connection to api.sandbox.paypal.com:443...
560
+ opened
561
+ starting SSL for api.sandbox.paypal.com:443...
562
+ SSL established
563
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 8719e2fb-e722-46f9-8921-83300dffa6b2\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: 478\r\n\r\n"
564
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
565
+ -> "HTTP/1.1 201 Created\r\n"
566
+ -> "Server: Apache-Coyote/1.1\r\n"
567
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1200\r\n"
568
+ -> "Paypal-Debug-Id: e15c8c50b09f4\r\n"
569
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=173&TopLevelTxnStartTime=14a3b298f12&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
570
+ -> "Content-Language: *\r\n"
571
+ -> "Date: Thu, 11 Dec 2014 21:03:27 GMT\r\n"
572
+ -> "Content-Type: application/json\r\n"
573
+ -> "Content-Length: 1576\r\n"
574
+ -> "\r\n"
575
+ reading 1576 bytes...
576
+ -> "{\"id\":\"PAY-9SD18843WY545783DKSFANCY\",\"create_time\":\"2014-12-11T21:03:07Z\",\"update_time\":\"2014-12-11T21: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\":\"5SL16408B0837902F\",\"create_time\":\"2014-12-11T21:03:07Z\",\"update_time\":\"2014-12-11T21:03:27Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-9SD18843WY545783DKSFANCY\",\"valid_until\":\"2015-01-09T21:03:07Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/5SL16408B0837902F\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/5SL16408B0837902F/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/5SL16408B0837902F/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9SD18843WY545783DKSFANCY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9SD18843WY545783DKSFANCY\",\"rel\":\"self\",\"method\":\"GET\"}]}"
577
+ read 1576 bytes
578
+ Conn keep-alive
579
+ opening connection to api.sandbox.paypal.com:443...
580
+ opened
581
+ starting SSL for api.sandbox.paypal.com:443...
582
+ SSL established
583
+ <- "POST /v1/payments/authorization/5SL16408B0837902F/capture HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: e2f4e32e-cd9f-4719-a7bc-a32005cb26f0\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: 44\r\n\r\n"
584
+ <- "{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"}}"
585
+ -> "HTTP/1.1 500 Internal Server Error\r\n"
586
+ -> "Server: Apache-Coyote/1.1\r\n"
587
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1085\r\n"
588
+ -> "Paypal-Debug-Id: b5eb85fdb7d90\r\n"
589
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.authorization&CalThreadId=79043&TopLevelTxnStartTime=14a3b29e48d&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
590
+ -> "Content-Language: *\r\n"
591
+ -> "Date: Thu, 11 Dec 2014 21:03:58 GMT\r\n"
592
+ -> "Connection: close\r\n"
593
+ -> "Content-Type: application/json\r\n"
594
+ -> "Content-Length: 212\r\n"
595
+ -> "Connection: close\r\n"
596
+ -> "\r\n"
597
+ reading 212 bytes...
598
+ -> "{\"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\":\"b5eb85fdb7d90\"}"
599
+ read 212 bytes
600
+ Conn close
601
+ opening connection to api.sandbox.paypal.com:443...
602
+ opened
603
+ starting SSL for api.sandbox.paypal.com:443...
604
+ SSL established
605
+ <- "POST /v1/payments/payment HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: d58cfffb-031f-4fe8-8f0e-8e82b9dca547\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: 478\r\n\r\n"
606
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
607
+ -> "HTTP/1.1 201 Created\r\n"
608
+ -> "Server: Apache-Coyote/1.1\r\n"
609
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1085\r\n"
610
+ -> "Paypal-Debug-Id: 1e43ecac8c4d0\r\n"
611
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=79043&TopLevelTxnStartTime=14a3b2a5d8f&Host=slcsbpaymentsplatformserv3002.slc.paypal.com&pid=25185\r\n"
612
+ -> "Content-Language: *\r\n"
613
+ -> "Date: Thu, 11 Dec 2014 21:04:20 GMT\r\n"
614
+ -> "Content-Type: application/json\r\n"
615
+ -> "Content-Length: 1576\r\n"
616
+ -> "\r\n"
617
+ reading 1576 bytes...
618
+ -> "{\"id\":\"PAY-1UF803226B225300LKSFANQA\",\"create_time\":\"2014-12-11T21:04:00Z\",\"update_time\":\"2014-12-11T21:04:21Z\",\"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\":\"28W336761B604881L\",\"create_time\":\"2014-12-11T21:04:00Z\",\"update_time\":\"2014-12-11T21:04:21Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-1UF803226B225300LKSFANQA\",\"valid_until\":\"2015-01-09T21:04:00Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/28W336761B604881L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/28W336761B604881L/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/28W336761B604881L/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1UF803226B225300LKSFANQA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1UF803226B225300LKSFANQA\",\"rel\":\"self\",\"method\":\"GET\"}]}"
619
+ read 1576 bytes
620
+ Conn keep-alive
621
+ opening connection to api.sandbox.paypal.com:443...
622
+ opened
623
+ starting SSL for api.sandbox.paypal.com:443...
624
+ SSL established
625
+ <- "POST /v1/payments/authorization/28W336761B604881L/capture HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 116021cb-bfbb-4ab3-986e-fd8d309acff2\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: 44\r\n\r\n"
626
+ <- "{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"}}"
627
+ -> "HTTP/1.1 200 OK\r\n"
628
+ -> "Server: Apache-Coyote/1.1\r\n"
629
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1200\r\n"
630
+ -> "Paypal-Debug-Id: ddda4e028337b\r\n"
631
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.authorization&CalThreadId=80165&TopLevelTxnStartTime=14a3b2ab86b&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
632
+ -> "Content-Language: *\r\n"
633
+ -> "Date: Thu, 11 Dec 2014 21:04:41 GMT\r\n"
634
+ -> "Content-Type: application/json\r\n"
635
+ -> "Content-Length: 724\r\n"
636
+ -> "\r\n"
637
+ reading 724 bytes...
638
+ -> "{\"id\":\"046408746P803482F\",\"create_time\":\"2014-12-11T21:04:23Z\",\"update_time\":\"2014-12-11T21:04:41Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"is_final_capture\":false,\"state\":\"completed\",\"parent_payment\":\"PAY-1UF803226B225300LKSFANQA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/046408746P803482F\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/046408746P803482F/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/28W336761B604881L\",\"rel\":\"authorization\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1UF803226B225300LKSFANQA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
639
+ read 724 bytes
640
+ Conn keep-alive
641
+ opening connection to api.sandbox.paypal.com:443...
642
+ opened
643
+ starting SSL for api.sandbox.paypal.com:443...
644
+ SSL established
645
+ <- "POST /v1/payments/capture/046408746P803482F/refund HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 7c142947-5b66-4ed4-a45c-f470beb94fa6\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"
646
+ <- "{}"
647
+ -> "HTTP/1.1 201 Created\r\n"
648
+ -> "Server: Apache-Coyote/1.1\r\n"
649
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1306\r\n"
650
+ -> "Paypal-Debug-Id: 5d92b8d899aaa\r\n"
651
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.capture&CalThreadId=80173&TopLevelTxnStartTime=14a3b2b0103&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=11123\r\n"
652
+ -> "Content-Language: *\r\n"
653
+ -> "Date: Thu, 11 Dec 2014 21:04:42 GMT\r\n"
654
+ -> "Content-Type: application/json\r\n"
655
+ -> "Content-Length: 601\r\n"
656
+ -> "\r\n"
657
+ reading 601 bytes...
658
+ -> "{\"id\":\"5ND02012H57421547\",\"create_time\":\"2014-12-11T21:04:43Z\",\"update_time\":\"2014-12-11T21:04:43Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"capture_id\":\"046408746P803482F\",\"parent_payment\":\"PAY-1UF803226B225300LKSFANQA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/5ND02012H57421547\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1UF803226B225300LKSFANQA\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/046408746P803482F\",\"rel\":\"capture\",\"method\":\"GET\"}]}"
659
+ read 601 bytes
660
+ Conn keep-alive
661
+ opening connection to api.sandbox.paypal.com:443...
662
+ opened
663
+ starting SSL for api.sandbox.paypal.com:443...
664
+ SSL established
665
+ <- "POST /v1/vault/credit-card HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 7d103c0b-a668-478f-8c73-2f8c1e201a54\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: 251\r\n\r\n"
666
+ <- "{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}"
667
+ -> "HTTP/1.1 201 Created\r\n"
668
+ -> "Server: Apache-Coyote/1.1\r\n"
669
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1029\r\n"
670
+ -> "Paypal-Debug-Id: 2edb5f0a98f1b\r\n"
671
+ -> "Content-Language: *\r\n"
672
+ -> "Date: Thu, 11 Dec 2014 21:04:42 GMT\r\n"
673
+ -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=2622&TopLevelTxnStartTime=14a3b2b0887&Host=slcsbvaultplatformserv501.slc.paypal.com&pid=8529\r\n"
674
+ -> "Content-Type: application/json\r\n"
675
+ -> "Content-Length: 784\r\n"
676
+ -> "\r\n"
677
+ reading 784 bytes...
678
+ -> "{\"id\":\"CARD-24M30903HJ326352DKSFAN2Y\",\"state\":\"ok\",\"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\"},\"valid_until\":\"2017-12-10T00:00:00Z\",\"create_time\":\"2014-12-11T21:04:43Z\",\"update_time\":\"2014-12-11T21:04:43Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-24M30903HJ326352DKSFAN2Y\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-24M30903HJ326352DKSFAN2Y\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-24M30903HJ326352DKSFAN2Y\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
679
+ read 784 bytes
680
+ Conn keep-alive
681
+ opening connection to api.sandbox.paypal.com:443...
682
+ opened
683
+ starting SSL for api.sandbox.paypal.com:443...
684
+ SSL established
685
+ <- "GET /v1/vault/credit-card/CARD-24M30903HJ326352DKSFAN2Y HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
686
+ -> "HTTP/1.1 200 OK\r\n"
687
+ -> "Server: Apache-Coyote/1.1\r\n"
688
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1306\r\n"
689
+ -> "Paypal-Debug-Id: f5d26875990cd\r\n"
690
+ -> "Content-Language: *\r\n"
691
+ -> "Date: Thu, 11 Dec 2014 21:04:43 GMT\r\n"
692
+ -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=22399&TopLevelTxnStartTime=14a3b2b0abd&Host=slcsbvaultplatformserv502.slc.paypal.com&pid=5425\r\n"
693
+ -> "Content-Type: application/json\r\n"
694
+ -> "Content-Length: 784\r\n"
695
+ -> "\r\n"
696
+ reading 784 bytes...
697
+ -> "{\"id\":\"CARD-24M30903HJ326352DKSFAN2Y\",\"state\":\"ok\",\"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\"},\"valid_until\":\"2017-12-10T00:00:00Z\",\"create_time\":\"2014-12-11T21:04:43Z\",\"update_time\":\"2014-12-11T21:04:43Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-24M30903HJ326352DKSFAN2Y\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-24M30903HJ326352DKSFAN2Y\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-24M30903HJ326352DKSFAN2Y\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
698
+ read 784 bytes
699
+ Conn keep-alive
700
+ opening connection to api.sandbox.paypal.com:443...
701
+ opened
702
+ starting SSL for api.sandbox.paypal.com:443...
703
+ SSL established
704
+ <- "POST /v1/vault/credit-card HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: c0c9edfb-640c-4a42-ba9e-ce0efcae2f45\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: 80\r\n\r\n"
705
+ <- "{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018}"
706
+ -> "HTTP/1.1 201 Created\r\n"
707
+ -> "Server: Apache-Coyote/1.1\r\n"
708
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1155\r\n"
709
+ -> "Paypal-Debug-Id: 2998fa5e9962e\r\n"
710
+ -> "Content-Language: *\r\n"
711
+ -> "Date: Thu, 11 Dec 2014 21:04:44 GMT\r\n"
712
+ -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=22399&TopLevelTxnStartTime=14a3b2b0ca1&Host=slcsbvaultplatformserv502.slc.paypal.com&pid=5425\r\n"
713
+ -> "Content-Type: application/json\r\n"
714
+ -> "Content-Length: 626\r\n"
715
+ -> "\r\n"
716
+ reading 626 bytes...
717
+ -> "{\"id\":\"CARD-66771946D8224353WKSFAN3A\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"valid_until\":\"2017-12-10T00:00:00Z\",\"create_time\":\"2014-12-11T21:04:44Z\",\"update_time\":\"2014-12-11T21:04:44Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-66771946D8224353WKSFAN3A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-66771946D8224353WKSFAN3A\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-66771946D8224353WKSFAN3A\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
718
+ read 626 bytes
719
+ Conn keep-alive
720
+ opening connection to api.sandbox.paypal.com:443...
721
+ opened
722
+ starting SSL for api.sandbox.paypal.com:443...
723
+ SSL established
724
+ <- "DELETE /v1/vault/credit-card/CARD-66771946D8224353WKSFAN3A HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; 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"
725
+ -> "HTTP/1.1 204 No Content\r\n"
726
+ -> "Server: Apache-Coyote/1.1\r\n"
727
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=1029\r\n"
728
+ -> "Paypal-Debug-Id: 2340d37b989c3\r\n"
729
+ -> "Content-Language: *\r\n"
730
+ -> "Date: Thu, 11 Dec 2014 21:04:45 GMT\r\n"
731
+ -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=2622&TopLevelTxnStartTime=14a3b2b0eda&Host=slcsbvaultplatformserv501.slc.paypal.com&pid=8529\r\n"
732
+ -> "\r\n"
733
+ Conn keep-alive
734
+ opening connection to api.sandbox.paypal.com:443...
735
+ opened
736
+ starting SSL for api.sandbox.paypal.com:443...
737
+ SSL established
738
+ <- "POST /v1/vault/credit-card HTTP/1.1\r\nAuthorization: Bearer A0150p842rqMbohzKHBX-2CeBlo.LNjHU1bsBhdNgXIVwhs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 0.8.0 (paypal-sdk-core 0.3.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: deede90d-3649-4e04-98b3-37d4c53bbce2\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: 43\r\n\r\n"
739
+ <- "{\"number\":\"4111111111111111\",\"type\":\"visa\"}"
740
+ -> "HTTP/1.1 400 Bad Request\r\n"
741
+ -> "Server: Apache-Coyote/1.1\r\n"
742
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1155\r\n"
743
+ -> "Paypal-Debug-Id: 2b51d23498ad0\r\n"
744
+ -> "Content-Language: *\r\n"
745
+ -> "Date: Thu, 11 Dec 2014 21:04:44 GMT\r\n"
746
+ -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=22399&TopLevelTxnStartTime=14a3b2b10a9&Host=slcsbvaultplatformserv502.slc.paypal.com&pid=5425\r\n"
747
+ -> "Connection: close\r\n"
748
+ -> "Content-Type: application/json\r\n"
749
+ -> "Content-Length: 300\r\n"
750
+ -> "Connection: close\r\n"
751
+ -> "\r\n"
752
+ reading 300 bytes...
753
+ -> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"expire_year\",\"issue\":\"Required field missing\"},{\"field\":\"expire_month\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"2b51d23498ad0\"}"
754
+ read 300 bytes
755
+ Conn close