paypal-sdk-rest 1.3.4 → 1.3.5
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/core/util/http_helper.rb +1 -1
- data/lib/paypal-sdk/rest/data_types.rb +150 -4
- data/lib/paypal-sdk/rest/version.rb +1 -1
- data/spec/core/api/rest_spec.rb +1 -1
- data/spec/log/http.log +2443 -0
- data/spec/log/rest_http.log +147 -8
- metadata +2 -2
data/spec/log/rest_http.log
CHANGED
@@ -2,24 +2,163 @@ 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.tjER3mfqk3nqb9l0rPDeEF8lZmrl0oismrn9k2XtEvWNG7zPIFLbAKeul2xeUmtv.7aGlsPjl2wuZrkD_EFG3LD2AUOi\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.5 (paypal-sdk-core 1.3.5; 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: Sun, 29 Nov 2015 19:56:21 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=slcsbplatformapiserv3001.slc.paypal.com;threadId=272\r\n"
|
11
|
+
-> "Paypal-Debug-Id: 5ab98f44e5ea7\r\n"
|
12
|
+
-> "CORRELATION-ID: 5ab98f44e5ea7\r\n"
|
13
13
|
-> "Content-Language: *\r\n"
|
14
14
|
-> "Content-Length: 1246\r\n"
|
15
|
-
-> "Paypal-Debug-Id:
|
15
|
+
-> "Paypal-Debug-Id: 5ab98f44e5ea7\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%3D1700289366; 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-6HC82742MV7112802KZNVQZQ\",\"create_time\":\"2015-11-29T19:56:22Z\",\"update_time\":\"2015-11-29T19:56:25Z\",\"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\":\"8K889199N9819660R\",\"create_time\":\"2015-11-29T19:56:22Z\",\"update_time\":\"2015-11-29T19:56:25Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-6HC82742MV7112802KZNVQZQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8K889199N9819660R\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8K889199N9819660R/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6HC82742MV7112802KZNVQZQ\",\"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-6HC82742MV7112802KZNVQZQ\",\"rel\":\"self\",\"method\":\"GET\"}]}"
|
24
24
|
read 1246 bytes
|
25
25
|
Conn close
|
26
|
+
opening connection to api.sandbox.paypal.com:443...
|
27
|
+
opened
|
28
|
+
starting SSL for api.sandbox.paypal.com:443...
|
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.tjER3mfqk3nqb9l0rPDeEF8lZmrl0oismrn9k2XtEvWNG7zPIFLbAKeul2xeUmtv.7aGlsPjl2wuZrkD_EFG3LD2AUOi\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.5 (paypal-sdk-core 1.3.5; 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
|
+
-> "HTTP/1.1 200 OK\r\n"
|
32
|
+
-> "Date: Sun, 29 Nov 2015 19:56:25 GMT\r\n"
|
33
|
+
-> "Server: Apache\r\n"
|
34
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=42633\r\n"
|
35
|
+
-> "Paypal-Debug-Id: ead43523ddf8f\r\n"
|
36
|
+
-> "CORRELATION-ID: ead43523ddf8f\r\n"
|
37
|
+
-> "Content-Language: *\r\n"
|
38
|
+
-> "Paypal-Debug-Id: ead43523ddf8f\r\n"
|
39
|
+
-> "Vary: Authorization\r\n"
|
40
|
+
-> "Content-Type: application/json\r\n"
|
41
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1767398230; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
42
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
43
|
+
-> "Connection: close\r\n"
|
44
|
+
-> "Transfer-Encoding: chunked\r\n"
|
45
|
+
-> "\r\n"
|
46
|
+
-> "2000\r\n"
|
47
|
+
reading 8192 bytes...
|
48
|
+
-> ""
|
49
|
+
-> "{\"payments\":[{\"id\":\"PAY-6HC82742MV7112802KZNVQZQ\",\"create_time\":\"2015-11-29T19:56:22Z\",\"update_time\":\"2015-11-29T19:56:25Z\",\"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\":\"8K889199N9819660R\",\"create_time\":\"2015-11-29T19:56:22Z\",\"update_time\":\"2015-11-29T19:56:25Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-6HC82742MV7112802KZNVQZQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8K889199N9819660R\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8K889199N9819660R/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6HC82742MV7112802KZNVQZQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6HC82742MV7112802KZNVQZQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-6RU830455P2067200KZNVQPA\",\"create_time\":\"2015-11-29T19:55:40Z\",\"update_time\":\"2015-11-29T19:55:42Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"discover\",\"number\":\"xxxxxxxxxxxx4826\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Austin\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"74.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"64.00\",\"tax\":\"5.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"9PM98492N7360463P\",\"create_time\":\"2015-11-29T19:55:40Z\",\"update_time\":\"2015-11-29T19:55:42Z\",\"amount\":{\"total\":\"74.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-6RU830455P2067200KZNVQPA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9PM98492N7360463P\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9PM98492N7360463P/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6RU830455P2067200KZNVQPA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6RU830455P2067200KZNVQPA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3S081402P1380114BKZNVQOI\",\"create_time\":\"2015-11-29T19:55:37Z\",\"update_time\":\"2015-11-29T19:55:38Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"discover\",\"number\":\"xxxxxxxxxxxx4826\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Austin\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"79.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"68.00\",\"tax\":\"6.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"09K78331VE933521M\",\"create_time\":\"2015-11-29T19:55:37Z\",\"update_time\":\"2015-11-29T19:55:38Z\",\"amount\":{\"total\":\"79.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3S081402P1380114BKZNVQOI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/09K78331VE933521M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/09K78331VE933521M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3S081402P1380114BKZNVQOI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3S081402P1380114BKZNVQOI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7DX62358LD051905SKZNVQNI\",\"create_time\":\"2015-11-29T19:55:33Z\",\"update_time\":\"2015-11-29T19:55:35Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"discover\",\"number\":\"xxxxxxxxxxxx4826\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Austin\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"89.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"77.00\",\"tax\":\"7.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"8M80723080904471M\",\"create_time\":\"2015-11-29T19:55:33Z\",\"update_time\":\"2015-11-29T19:55:35Z\",\"amount\":{\"total\":\"89.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-7DX62358LD051905SKZNVQNI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8M80723080904471M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8M80723080904471M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7DX62358LD051905SKZNVQNI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7DX62358LD051905SKZNVQNI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-28K755324J855521WKZNVQMI\",\"create_time\":\"2015-11-29T19:55:29Z\",\"update_time\":\"2015-11-29T19:55:31Z\",\"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\":\"81.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"70.00\",\"tax\":\"6.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"7LA83094UW7571746\",\"create_time\":\"2015-11-29T19:55:29Z\",\"update_time\":\"2015-11-29T19:55:31Z\",\"amount\":{\"total\":\"81.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-28K755324J855521WKZNVQMI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7LA83094UW7571746\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7LA83094UW7571746/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-28K755324J855521WKZNVQMI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-28K755324J855521WKZNVQMI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5NW01323KH082710EKZNVQAY\",\"create_time\":\"2015-11-29T19:54:43Z\",\"update_time\":\"2015-11-29T19:54:45Z\",\"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\":\"69.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"59.00\",\"tax\":\"5.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"84V02498S5698943C\",\"create_time\":\"2015-11-29T19:54:43Z\",\"update_time\":\"2015-11-29T19:54:45Z\",\"amount\":{\"total\":\"69.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5NW01323KH082710EKZNVQAY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84V02498S5698943C\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84V02498S5698943C/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5NW01323KH082710EKZNVQAY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5NW01323KH082710EKZNVQAY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-27D295595X6191737KZNVP7Y\",\"create_time\":\"2015-11-"
|
50
|
+
read 8192 bytes
|
51
|
+
reading 2 bytes...
|
52
|
+
-> ""
|
53
|
+
-> "\r\n"
|
54
|
+
read 2 bytes
|
55
|
+
-> "15b0\r\n"
|
56
|
+
reading 5552 bytes...
|
57
|
+
-> ""
|
58
|
+
-> "29T19:54:39Z\",\"update_time\":\"2015-11-29T19:54:41Z\",\"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\":\"72.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"62.00\",\"tax\":\"5.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"3NP44054UG304300E\",\"create_time\":\"2015-11-29T19:54:39Z\",\"update_time\":\"2015-11-29T19:54:41Z\",\"amount\":{\"total\":\"72.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-27D295595X6191737KZNVP7Y\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3NP44054UG304300E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3NP44054UG304300E/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-27D295595X6191737KZNVP7Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-27D295595X6191737KZNVP7Y\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9GT88616YE4372357KZNVP6Y\",\"create_time\":\"2015-11-29T19:54:35Z\",\"update_time\":\"2015-11-29T19:54:37Z\",\"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\":\"135.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"120.00\",\"tax\":\"10.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"0UM25643L5683303T\",\"create_time\":\"2015-11-29T19:54:35Z\",\"update_time\":\"2015-11-29T19:54:37Z\",\"amount\":{\"total\":\"135.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-9GT88616YE4372357KZNVP6Y\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0UM25643L5683303T\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0UM25643L5683303T/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9GT88616YE4372357KZNVP6Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9GT88616YE4372357KZNVP6Y\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-63Y81635U7581305LKZNVP5Y\",\"create_time\":\"2015-11-29T19:54:31Z\",\"update_time\":\"2015-11-29T19:54:33Z\",\"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\":\"53.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"44.00\",\"tax\":\"4.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"3C310578TP063413U\",\"create_time\":\"2015-11-29T19:54:31Z\",\"update_time\":\"2015-11-29T19:54:33Z\",\"amount\":{\"total\":\"53.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-63Y81635U7581305LKZNVP5Y\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3C310578TP063413U\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3C310578TP063413U/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-63Y81635U7581305LKZNVP5Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-63Y81635U7581305LKZNVP5Y\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3PD18032HS6484911KZNVPRY\",\"create_time\":\"2015-11-29T19:53:43Z\",\"update_time\":\"2015-11-29T19:53:44Z\",\"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\":\"141.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"125.00\",\"tax\":\"11.00\",\"shipping\":\"5.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"9U589094S0127991X\",\"create_time\":\"2015-11-29T19:53:43Z\",\"update_time\":\"2015-11-29T19:53:44Z\",\"amount\":{\"total\":\"141.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3PD18032HS6484911KZNVPRY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9U589094S0127991X\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9U589094S0127991X/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3PD18032HS6484911KZNVPRY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3PD18032HS6484911KZNVPRY\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-3K324017R1141361EKZNVPQY\"}"
|
59
|
+
read 5552 bytes
|
60
|
+
reading 2 bytes...
|
61
|
+
-> ""
|
62
|
+
-> "\r\n"
|
63
|
+
read 2 bytes
|
64
|
+
-> "0\r\n"
|
65
|
+
-> "\r\n"
|
66
|
+
Conn close
|
67
|
+
opening connection to api.sandbox.paypal.com:443...
|
68
|
+
opened
|
69
|
+
starting SSL for api.sandbox.paypal.com:443...
|
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.tjER3mfqk3nqb9l0rPDeEF8lZmrl0oismrn9k2XtEvWNG7zPIFLbAKeul2xeUmtv.7aGlsPjl2wuZrkD_EFG3LD2AUOi\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.5 (paypal-sdk-core 1.3.5; 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
|
+
<- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
|
73
|
+
-> "HTTP/1.1 201 Created\r\n"
|
74
|
+
-> "Date: Sun, 29 Nov 2015 19:56:55 GMT\r\n"
|
75
|
+
-> "Server: Apache\r\n"
|
76
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=197084\r\n"
|
77
|
+
-> "Paypal-Debug-Id: 171e3718bbcc\r\n"
|
78
|
+
-> "Content-Language: *\r\n"
|
79
|
+
-> "CORRELATION-ID: 171e3718bbcc\r\n"
|
80
|
+
-> "Content-Length: 667\r\n"
|
81
|
+
-> "Paypal-Debug-Id: 171e3718bbcc\r\n"
|
82
|
+
-> "Vary: Authorization\r\n"
|
83
|
+
-> "Content-Type: application/json\r\n"
|
84
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2270714710; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
85
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
86
|
+
-> "Connection: close\r\n"
|
87
|
+
-> "\r\n"
|
88
|
+
reading 667 bytes...
|
89
|
+
-> "{\"id\":\"CARD-19637291RS130643CKZNVRBY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-11-28T00:00:00Z\",\"create_time\":\"2015-11-29T19:56:55Z\",\"update_time\":\"2015-11-29T19:56:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-19637291RS130643CKZNVRBY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-19637291RS130643CKZNVRBY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-19637291RS130643CKZNVRBY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
90
|
+
read 667 bytes
|
91
|
+
Conn close
|
92
|
+
opening connection to api.sandbox.paypal.com:443...
|
93
|
+
opened
|
94
|
+
starting SSL for api.sandbox.paypal.com:443...
|
95
|
+
SSL established
|
96
|
+
<- "GET /v1/vault/credit-card/CARD-19637291RS130643CKZNVRBY HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.tjER3mfqk3nqb9l0rPDeEF8lZmrl0oismrn9k2XtEvWNG7zPIFLbAKeul2xeUmtv.7aGlsPjl2wuZrkD_EFG3LD2AUOi\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.5 (paypal-sdk-core 1.3.5; 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
|
+
-> "HTTP/1.1 200 OK\r\n"
|
98
|
+
-> "Date: Sun, 29 Nov 2015 19:56:56 GMT\r\n"
|
99
|
+
-> "Server: Apache\r\n"
|
100
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=42638\r\n"
|
101
|
+
-> "Paypal-Debug-Id: 526365891dae\r\n"
|
102
|
+
-> "Content-Language: *\r\n"
|
103
|
+
-> "CORRELATION-ID: 526365891dae\r\n"
|
104
|
+
-> "Content-Length: 667\r\n"
|
105
|
+
-> "Paypal-Debug-Id: 526365891dae\r\n"
|
106
|
+
-> "Vary: Authorization\r\n"
|
107
|
+
-> "Content-Type: application/json\r\n"
|
108
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2287491926; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
109
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
110
|
+
-> "Connection: close\r\n"
|
111
|
+
-> "\r\n"
|
112
|
+
reading 667 bytes...
|
113
|
+
-> "{\"id\":\"CARD-19637291RS130643CKZNVRBY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-11-28T00:00:00Z\",\"create_time\":\"2015-11-29T19:56:55Z\",\"update_time\":\"2015-11-29T19:56:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-19637291RS130643CKZNVRBY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-19637291RS130643CKZNVRBY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-19637291RS130643CKZNVRBY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
114
|
+
read 667 bytes
|
115
|
+
Conn close
|
116
|
+
opening connection to api.sandbox.paypal.com:443...
|
117
|
+
opened
|
118
|
+
starting SSL for api.sandbox.paypal.com:443...
|
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.tjER3mfqk3nqb9l0rPDeEF8lZmrl0oismrn9k2XtEvWNG7zPIFLbAKeul2xeUmtv.7aGlsPjl2wuZrkD_EFG3LD2AUOi\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.5 (paypal-sdk-core 1.3.5; 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
|
+
-> "HTTP/1.1 404 Not Found\r\n"
|
122
|
+
-> "Date: Sun, 29 Nov 2015 19:56:57 GMT\r\n"
|
123
|
+
-> "Server: Apache\r\n"
|
124
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=436\r\n"
|
125
|
+
-> "Paypal-Debug-Id: d1b616f770e4c\r\n"
|
126
|
+
-> "CORRELATION-ID: d1b616f770e4c\r\n"
|
127
|
+
-> "Content-Language: *\r\n"
|
128
|
+
-> "Content-Length: 207\r\n"
|
129
|
+
-> "Paypal-Debug-Id: d1b616f770e4c\r\n"
|
130
|
+
-> "Vary: Authorization\r\n"
|
131
|
+
-> "Content-Type: application/json\r\n"
|
132
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2304269142; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
133
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
134
|
+
-> "Connection: close\r\n"
|
135
|
+
-> "\r\n"
|
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\":\"d1b616f770e4c\"}"
|
138
|
+
read 207 bytes
|
139
|
+
Conn close
|
140
|
+
opening connection to api.sandbox.paypal.com:443...
|
141
|
+
opened
|
142
|
+
starting SSL for api.sandbox.paypal.com:443...
|
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.tjER3mfqk3nqb9l0rPDeEF8lZmrl0oismrn9k2XtEvWNG7zPIFLbAKeul2xeUmtv.7aGlsPjl2wuZrkD_EFG3LD2AUOi\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.5 (paypal-sdk-core 1.3.5; 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
|
+
<- "{}"
|
146
|
+
-> "HTTP/1.1 500 Internal Server Error\r\n"
|
147
|
+
-> "Date: Sun, 29 Nov 2015 19:56:58 GMT\r\n"
|
148
|
+
-> "Server: Apache\r\n"
|
149
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=39445\r\n"
|
150
|
+
-> "Paypal-Debug-Id: 7ae73be26142a\r\n"
|
151
|
+
-> "CORRELATION-ID: 7ae73be26142a\r\n"
|
152
|
+
-> "Content-Language: *\r\n"
|
153
|
+
-> "Content-Length: 212\r\n"
|
154
|
+
-> "Paypal-Debug-Id: 7ae73be26142a\r\n"
|
155
|
+
-> "Vary: Authorization\r\n"
|
156
|
+
-> "Content-Type: application/json\r\n"
|
157
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2321046358; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
158
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
159
|
+
-> "Connection: close\r\n"
|
160
|
+
-> "\r\n"
|
161
|
+
reading 212 bytes...
|
162
|
+
-> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"7ae73be26142a\"}"
|
163
|
+
read 212 bytes
|
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.3.
|
4
|
+
version: 1.3.5
|
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-
|
11
|
+
date: 2015-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|