paypal-sdk-rest 1.3.5 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paypal-sdk/rest/data_types.rb +1 -1
- data/lib/paypal-sdk/rest/version.rb +1 -1
- data/spec/log/http.log +713 -697
- data/spec/log/rest_http.log +55 -55
- metadata +2 -2
data/spec/log/rest_http.log
CHANGED
@@ -2,43 +2,43 @@ opening connection to api.sandbox.paypal.com:443...
|
|
2
2
|
opened
|
3
3
|
starting SSL for api.sandbox.paypal.com:443...
|
4
4
|
SSL established
|
5
|
-
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.
|
5
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.oQuoc3KVurNOiLYmfugvthwJNo2H8Ux-06-9DDcCmIWFisJ29o4rHrFT6XBszvxF.ytUZV7878EeFbUxWz1KF_94OS9W\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.1 (paypal-sdk-core 1.4.1; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2d 9 Jul 2015)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 286\r\n\r\n"
|
6
6
|
<- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"4567516310777851\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"}}]}"
|
7
7
|
-> "HTTP/1.1 201 Created\r\n"
|
8
|
-
-> "Date:
|
8
|
+
-> "Date: Wed, 02 Dec 2015 20:14:24 GMT\r\n"
|
9
9
|
-> "Server: Apache\r\n"
|
10
|
-
-> "PROXY_SERVER_INFO: host=
|
11
|
-
-> "Paypal-Debug-Id:
|
12
|
-
-> "CORRELATION-ID:
|
10
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=433\r\n"
|
11
|
+
-> "Paypal-Debug-Id: 530449554494e\r\n"
|
12
|
+
-> "CORRELATION-ID: 530449554494e\r\n"
|
13
13
|
-> "Content-Language: *\r\n"
|
14
14
|
-> "Content-Length: 1246\r\n"
|
15
|
-
-> "Paypal-Debug-Id:
|
15
|
+
-> "Paypal-Debug-Id: 530449554494e\r\n"
|
16
16
|
-> "Vary: Authorization\r\n"
|
17
17
|
-> "Content-Type: application/json\r\n"
|
18
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
18
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D542203734; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
19
19
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
20
20
|
-> "Connection: close\r\n"
|
21
21
|
-> "\r\n"
|
22
22
|
reading 1246 bytes...
|
23
|
-
-> "{\"id\":\"PAY-
|
23
|
+
-> "{\"id\":\"PAY-8VM74892A5828264LKZPVCIA\",\"create_time\":\"2015-12-02T20:14:24Z\",\"update_time\":\"2015-12-02T20:14:26Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx7851\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"3RK653684G926153K\",\"create_time\":\"2015-12-02T20:14:24Z\",\"update_time\":\"2015-12-02T20:14:26Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-8VM74892A5828264LKZPVCIA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3RK653684G926153K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3RK653684G926153K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8VM74892A5828264LKZPVCIA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}],\"fmf_details\":{},\"processor_response\":{\"avs_code\":\"X\",\"cvv_code\":\"M\"}}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8VM74892A5828264LKZPVCIA\",\"rel\":\"self\",\"method\":\"GET\"}]}"
|
24
24
|
read 1246 bytes
|
25
25
|
Conn close
|
26
26
|
opening connection to api.sandbox.paypal.com:443...
|
27
27
|
opened
|
28
28
|
starting SSL for api.sandbox.paypal.com:443...
|
29
29
|
SSL established
|
30
|
-
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.
|
30
|
+
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.oQuoc3KVurNOiLYmfugvthwJNo2H8Ux-06-9DDcCmIWFisJ29o4rHrFT6XBszvxF.ytUZV7878EeFbUxWz1KF_94OS9W\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.1 (paypal-sdk-core 1.4.1; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2d 9 Jul 2015)\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"
|
31
31
|
-> "HTTP/1.1 200 OK\r\n"
|
32
|
-
-> "Date:
|
32
|
+
-> "Date: Wed, 02 Dec 2015 20:14:27 GMT\r\n"
|
33
33
|
-> "Server: Apache\r\n"
|
34
|
-
-> "PROXY_SERVER_INFO: host=
|
35
|
-
-> "Paypal-Debug-Id:
|
36
|
-
-> "CORRELATION-ID:
|
34
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=205145\r\n"
|
35
|
+
-> "Paypal-Debug-Id: e6ed3b9175b4\r\n"
|
36
|
+
-> "CORRELATION-ID: e6ed3b9175b4\r\n"
|
37
37
|
-> "Content-Language: *\r\n"
|
38
|
-
-> "Paypal-Debug-Id:
|
38
|
+
-> "Paypal-Debug-Id: e6ed3b9175b4\r\n"
|
39
39
|
-> "Vary: Authorization\r\n"
|
40
40
|
-> "Content-Type: application/json\r\n"
|
41
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
41
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D592535382; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
42
42
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
43
43
|
-> "Connection: close\r\n"
|
44
44
|
-> "Transfer-Encoding: chunked\r\n"
|
@@ -46,17 +46,17 @@ SSL established
|
|
46
46
|
-> "2000\r\n"
|
47
47
|
reading 8192 bytes...
|
48
48
|
-> ""
|
49
|
-
-> "{\"payments\":[{\"id\":\"PAY-
|
49
|
+
-> "{\"payments\":[{\"id\":\"PAY-8VM74892A5828264LKZPVCIA\",\"create_time\":\"2015-12-02T20:14:24Z\",\"update_time\":\"2015-12-02T20:14:26Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx7851\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"3RK653684G926153K\",\"create_time\":\"2015-12-02T20:14:24Z\",\"update_time\":\"2015-12-02T20:14:26Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-8VM74892A5828264LKZPVCIA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3RK653684G926153K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3RK653684G926153K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8VM74892A5828264LKZPVCIA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8VM74892A5828264LKZPVCIA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-86W73924U2796861CKZPVB4I\",\"create_time\":\"2015-12-02T20:13:37Z\",\"update_time\":\"2015-12-02T20:13:44Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-28F73913SF697294LKZNDTOA\",\"last4\":\"0004\",\"type\":\"mastercard\",\"expire_month\":\"1\",\"expire_year\":\"2020\"}}]},\"transactions\":[{\"amount\":{\"total\":\"223.67\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"223.67\"}},\"description\":\"Bidding on Lavincis.\",\"related_resources\":[{\"authorization\":{\"id\":\"6WN8980183557881R\",\"create_time\":\"2015-12-02T20:13:37Z\",\"update_time\":\"2015-12-02T20:13:44Z\",\"amount\":{\"total\":\"223.67\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"223.67\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-86W73924U2796861CKZPVB4I\",\"valid_until\":\"2015-12-31T20:13:37Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/6WN8980183557881R\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-86W73924U2796861CKZPVB4I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-86W73924U2796861CKZPVB4I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9V2656907H159594BKZPVBJI\",\"create_time\":\"2015-12-02T20:12:21Z\",\"update_time\":\"2015-12-02T20:12:29Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-28F73913SF697294LKZNDTOA\",\"last4\":\"0004\",\"type\":\"mastercard\",\"expire_month\":\"1\",\"expire_year\":\"2020\"}}]},\"transactions\":[{\"amount\":{\"total\":\"129.55\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"129.55\"}},\"description\":\"Bidding on Lavincis.\",\"related_resources\":[{\"authorization\":{\"id\":\"91M04075A3215221E\",\"create_time\":\"2015-12-02T20:12:21Z\",\"update_time\":\"2015-12-02T20:12:29Z\",\"amount\":{\"total\":\"129.55\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"129.55\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-9V2656907H159594BKZPVBJI\",\"valid_until\":\"2015-12-31T20:12:21Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/91M04075A3215221E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9V2656907H159594BKZPVBJI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9V2656907H159594BKZPVBJI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-861991772F435624BKZPVAUY\",\"create_time\":\"2015-12-02T20:10:59Z\",\"update_time\":\"2015-12-02T20:11:08Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-28F73913SF697294LKZNDTOA\",\"last4\":\"0004\",\"type\":\"mastercard\",\"expire_month\":\"1\",\"expire_year\":\"2020\"}}]},\"transactions\":[{\"amount\":{\"total\":\"135.22\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"135.22\"}},\"description\":\"Bidding on Lavincis.\",\"related_resources\":[{\"authorization\":{\"id\":\"5PM77282DP696243L\",\"create_time\":\"2015-12-02T20:10:59Z\",\"update_time\":\"2015-12-02T20:11:08Z\",\"amount\":{\"total\":\"135.22\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"135.22\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-861991772F435624BKZPVAUY\",\"valid_until\":\"2015-12-31T20:10:59Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/5PM77282DP696243L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-861991772F435624BKZPVAUY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-861991772F435624BKZPVAUY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-58T67946A6097405SKZPVADI\",\"create_time\":\"2015-12-02T20:09:49Z\",\"update_time\":\"2015-12-02T20:09:56Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-28F73913SF697294LKZNDTOA\",\"last4\":\"0004\",\"type\":\"mastercard\",\"expire_month\":\"1\",\"expire_year\":\"2020\"}}]},\"transactions\":[{\"amount\":{\"total\":\"129.55\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"129.55\"}},\"description\":\"Bidding on Lavincis.\",\"related_resources\":[{\"authorization\":{\"id\":\"37R47509K1026262H\",\"create_time\":\"2015-12-02T20:09:49Z\",\"update_time\":\"2015-12-02T20:09:56Z\",\"amount\":{\"total\":\"129.55\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"129.55\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-58T67946A6097405SKZPVADI\",\"valid_until\":\"2015-12-31T20:09:49Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/37R47509K1026262H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-58T67946A6097405SKZPVADI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-58T67946A6097405SKZPVADI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-4LH08326A1542664MKZPU7YA\",\"create_time\":\"2015-12-02T20:09:04Z\",\"update_time\":\"2015-12-02T20:09:14Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-28F73913SF697294LKZNDTOA\",\"last4\":\"0004\",\"type\":\"mastercard\",\"expire_month\":\"1\",\"expire_year\":\"2020\"}}]},\"transactions\":[{\"amount\":{\"total\":\"121.61\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"121.61\"}},\"description\":\"Bidding on Lavincis.\",\"related_resources\":[{\"authorization\":{\"id\":\"11U40871XE201543J\",\"create_time\":\"2015-12-02T20:09:04Z\",\"update_time\":\"2015-12-02T20:09:14Z\",\"amount\":{\"total\":\"121.61\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"121.61\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-4LH08326A1542664MKZPU7YA\",\"valid_until\":\"2015-12-31T20:09:04Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/11U40871XE201543J\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4LH08326A1542664MKZPU7YA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4LH08326A1542664MKZPU7YA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-54G45150E0154773WKZPUQ3Q\",\"create_time\":\"2015-12-02T19:37:18Z\",\"update_time\":\"2015-12-02T19:37:19Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0984\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Dallas\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"76.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"65.00\",\"tax\":\"6.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"1XD30190N3990043G\",\"create_time\":\"2015-12-02T19:37:18Z\",\"update_time\":\"2015-12-02T19:37:19Z\",\"amount\":{\"total\":\"76.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-54G45150E0154773WKZPUQ3Q\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1XD30190N3990043G\",\"rel\":\"self\",\"method\":\"GE"
|
50
50
|
read 8192 bytes
|
51
51
|
reading 2 bytes...
|
52
52
|
-> ""
|
53
53
|
-> "\r\n"
|
54
54
|
read 2 bytes
|
55
|
-
-> "
|
56
|
-
reading
|
55
|
+
-> "1203\r\n"
|
56
|
+
reading 4611 bytes...
|
57
57
|
-> ""
|
58
|
-
-> "
|
59
|
-
read
|
58
|
+
-> "T\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1XD30190N3990043G/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-54G45150E0154773WKZPUQ3Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-54G45150E0154773WKZPUQ3Q\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7HC80834EY831963RKZPUQ2I\",\"create_time\":\"2015-12-02T19:37:13Z\",\"update_time\":\"2015-12-02T19:37:15Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"mastercard\",\"number\":\"xxxxxxxxxxxx2850\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Houston\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"68.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"58.00\",\"tax\":\"5.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"4A396862RM967881K\",\"create_time\":\"2015-12-02T19:37:14Z\",\"update_time\":\"2015-12-02T19:37:15Z\",\"amount\":{\"total\":\"68.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-7HC80834EY831963RKZPUQ2I\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4A396862RM967881K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4A396862RM967881K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7HC80834EY831963RKZPUQ2I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7HC80834EY831963RKZPUQ2I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-95G879734D014233NKZPUQZQ\",\"create_time\":\"2015-12-02T19:37:10Z\",\"update_time\":\"2015-12-02T19:37:11Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"mastercard\",\"number\":\"xxxxxxxxxxxx2850\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Houston\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"63.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"53.00\",\"tax\":\"5.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"84R851521T638221Y\",\"create_time\":\"2015-12-02T19:37:10Z\",\"update_time\":\"2015-12-02T19:37:11Z\",\"amount\":{\"total\":\"63.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-95G879734D014233NKZPUQZQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84R851521T638221Y\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84R851521T638221Y/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-95G879734D014233NKZPUQZQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-95G879734D014233NKZPUQZQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-74552831R9925351GKZPUQYQ\",\"create_time\":\"2015-12-02T19:37:06Z\",\"update_time\":\"2015-12-02T19:37:07Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0984\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Dallas\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"87.00\",\"tax\":\"8.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"0LJ65396JT958754Y\",\"create_time\":\"2015-12-02T19:37:06Z\",\"update_time\":\"2015-12-02T19:37:07Z\",\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-74552831R9925351GKZPUQYQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0LJ65396JT958754Y\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0LJ65396JT958754Y/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-74552831R9925351GKZPUQYQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-74552831R9925351GKZPUQYQ\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-0XD56047S05435040KZPUQLY\"}"
|
59
|
+
read 4611 bytes
|
60
60
|
reading 2 bytes...
|
61
61
|
-> ""
|
62
62
|
-> "\r\n"
|
@@ -68,97 +68,97 @@ opening connection to api.sandbox.paypal.com:443...
|
|
68
68
|
opened
|
69
69
|
starting SSL for api.sandbox.paypal.com:443...
|
70
70
|
SSL established
|
71
|
-
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.
|
71
|
+
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.oQuoc3KVurNOiLYmfugvthwJNo2H8Ux-06-9DDcCmIWFisJ29o4rHrFT6XBszvxF.ytUZV7878EeFbUxWz1KF_94OS9W\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.1 (paypal-sdk-core 1.4.1; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2d 9 Jul 2015)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 138\r\n\r\n"
|
72
72
|
<- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
|
73
73
|
-> "HTTP/1.1 201 Created\r\n"
|
74
|
-
-> "Date:
|
74
|
+
-> "Date: Wed, 02 Dec 2015 20:14:57 GMT\r\n"
|
75
75
|
-> "Server: Apache\r\n"
|
76
|
-
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=
|
77
|
-
-> "Paypal-Debug-Id:
|
76
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=421\r\n"
|
77
|
+
-> "Paypal-Debug-Id: 7ad48abba3fd9\r\n"
|
78
78
|
-> "Content-Language: *\r\n"
|
79
|
-
-> "CORRELATION-ID:
|
79
|
+
-> "CORRELATION-ID: 7ad48abba3fd9\r\n"
|
80
80
|
-> "Content-Length: 667\r\n"
|
81
|
-
-> "Paypal-Debug-Id:
|
81
|
+
-> "Paypal-Debug-Id: 7ad48abba3fd9\r\n"
|
82
82
|
-> "Vary: Authorization\r\n"
|
83
83
|
-> "Content-Type: application/json\r\n"
|
84
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
84
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1095851862; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
85
85
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
86
86
|
-> "Connection: close\r\n"
|
87
87
|
-> "\r\n"
|
88
88
|
reading 667 bytes...
|
89
|
-
-> "{\"id\":\"CARD-
|
89
|
+
-> "{\"id\":\"CARD-1WK16594MT478041MKZPVCQI\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-12-01T00:00:00Z\",\"create_time\":\"2015-12-02T20:14:57Z\",\"update_time\":\"2015-12-02T20:14:57Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1WK16594MT478041MKZPVCQI\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1WK16594MT478041MKZPVCQI\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1WK16594MT478041MKZPVCQI\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
90
90
|
read 667 bytes
|
91
91
|
Conn close
|
92
92
|
opening connection to api.sandbox.paypal.com:443...
|
93
93
|
opened
|
94
94
|
starting SSL for api.sandbox.paypal.com:443...
|
95
95
|
SSL established
|
96
|
-
<- "GET /v1/vault/credit-card/CARD-
|
96
|
+
<- "GET /v1/vault/credit-card/CARD-1WK16594MT478041MKZPVCQI HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.oQuoc3KVurNOiLYmfugvthwJNo2H8Ux-06-9DDcCmIWFisJ29o4rHrFT6XBszvxF.ytUZV7878EeFbUxWz1KF_94OS9W\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.1 (paypal-sdk-core 1.4.1; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2d 9 Jul 2015)\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"
|
97
97
|
-> "HTTP/1.1 200 OK\r\n"
|
98
|
-
-> "Date:
|
98
|
+
-> "Date: Wed, 02 Dec 2015 20:14:58 GMT\r\n"
|
99
99
|
-> "Server: Apache\r\n"
|
100
|
-
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=
|
101
|
-
-> "Paypal-Debug-Id:
|
100
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=395\r\n"
|
101
|
+
-> "Paypal-Debug-Id: 9547ddf015853\r\n"
|
102
102
|
-> "Content-Language: *\r\n"
|
103
|
-
-> "CORRELATION-ID:
|
103
|
+
-> "CORRELATION-ID: 9547ddf015853\r\n"
|
104
104
|
-> "Content-Length: 667\r\n"
|
105
|
-
-> "Paypal-Debug-Id:
|
105
|
+
-> "Paypal-Debug-Id: 9547ddf015853\r\n"
|
106
106
|
-> "Vary: Authorization\r\n"
|
107
107
|
-> "Content-Type: application/json\r\n"
|
108
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
108
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1112629078; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
109
109
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
110
110
|
-> "Connection: close\r\n"
|
111
111
|
-> "\r\n"
|
112
112
|
reading 667 bytes...
|
113
|
-
-> "{\"id\":\"CARD-
|
113
|
+
-> "{\"id\":\"CARD-1WK16594MT478041MKZPVCQI\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-12-01T00:00:00Z\",\"create_time\":\"2015-12-02T20:14:57Z\",\"update_time\":\"2015-12-02T20:14:57Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1WK16594MT478041MKZPVCQI\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1WK16594MT478041MKZPVCQI\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-1WK16594MT478041MKZPVCQI\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
114
114
|
read 667 bytes
|
115
115
|
Conn close
|
116
116
|
opening connection to api.sandbox.paypal.com:443...
|
117
117
|
opened
|
118
118
|
starting SSL for api.sandbox.paypal.com:443...
|
119
119
|
SSL established
|
120
|
-
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.
|
120
|
+
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.oQuoc3KVurNOiLYmfugvthwJNo2H8Ux-06-9DDcCmIWFisJ29o4rHrFT6XBszvxF.ytUZV7878EeFbUxWz1KF_94OS9W\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.1 (paypal-sdk-core 1.4.1; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2d 9 Jul 2015)\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"
|
121
121
|
-> "HTTP/1.1 404 Not Found\r\n"
|
122
|
-
-> "Date:
|
122
|
+
-> "Date: Wed, 02 Dec 2015 20:14:58 GMT\r\n"
|
123
123
|
-> "Server: Apache\r\n"
|
124
|
-
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=
|
125
|
-
-> "Paypal-Debug-Id:
|
126
|
-
-> "CORRELATION-ID:
|
124
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=211451\r\n"
|
125
|
+
-> "Paypal-Debug-Id: eec09213732c4\r\n"
|
126
|
+
-> "CORRELATION-ID: eec09213732c4\r\n"
|
127
127
|
-> "Content-Language: *\r\n"
|
128
128
|
-> "Content-Length: 207\r\n"
|
129
|
-
-> "Paypal-Debug-Id:
|
129
|
+
-> "Paypal-Debug-Id: eec09213732c4\r\n"
|
130
130
|
-> "Vary: Authorization\r\n"
|
131
131
|
-> "Content-Type: application/json\r\n"
|
132
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
132
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1112629078; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
133
133
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
134
134
|
-> "Connection: close\r\n"
|
135
135
|
-> "\r\n"
|
136
136
|
reading 207 bytes...
|
137
|
-
-> "{\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"The requested resource ID was not found\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INVALID_RESOURCE_ID\",\"debug_id\":\"
|
137
|
+
-> "{\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"The requested resource ID was not found\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INVALID_RESOURCE_ID\",\"debug_id\":\"eec09213732c4\"}"
|
138
138
|
read 207 bytes
|
139
139
|
Conn close
|
140
140
|
opening connection to api.sandbox.paypal.com:443...
|
141
141
|
opened
|
142
142
|
starting SSL for api.sandbox.paypal.com:443...
|
143
143
|
SSL established
|
144
|
-
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.
|
144
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.oQuoc3KVurNOiLYmfugvthwJNo2H8Ux-06-9DDcCmIWFisJ29o4rHrFT6XBszvxF.ytUZV7878EeFbUxWz1KF_94OS9W\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.4.1 (paypal-sdk-core 1.4.1; ruby 2.2.3p173-x86_64-darwin14;OpenSSL 1.0.2d 9 Jul 2015)\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"
|
145
145
|
<- "{}"
|
146
146
|
-> "HTTP/1.1 500 Internal Server Error\r\n"
|
147
|
-
-> "Date:
|
147
|
+
-> "Date: Wed, 02 Dec 2015 20:14:58 GMT\r\n"
|
148
148
|
-> "Server: Apache\r\n"
|
149
|
-
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=
|
150
|
-
-> "Paypal-Debug-Id:
|
151
|
-
-> "CORRELATION-ID:
|
149
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=205112\r\n"
|
150
|
+
-> "Paypal-Debug-Id: 799f718d8668\r\n"
|
151
|
+
-> "CORRELATION-ID: 799f718d8668\r\n"
|
152
152
|
-> "Content-Language: *\r\n"
|
153
|
-
-> "Content-Length:
|
154
|
-
-> "Paypal-Debug-Id:
|
153
|
+
-> "Content-Length: 211\r\n"
|
154
|
+
-> "Paypal-Debug-Id: 799f718d8668\r\n"
|
155
155
|
-> "Vary: Authorization\r\n"
|
156
156
|
-> "Content-Type: application/json\r\n"
|
157
|
-
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%
|
157
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1112629078; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
158
158
|
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
159
159
|
-> "Connection: close\r\n"
|
160
160
|
-> "\r\n"
|
161
|
-
reading
|
162
|
-
-> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"
|
163
|
-
read
|
161
|
+
reading 211 bytes...
|
162
|
+
-> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"799f718d8668\"}"
|
163
|
+
read 211 bytes
|
164
164
|
Conn close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|