paypal-sdk-rest 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,110 +2,24 @@ 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 A015Tku-A.ysSqWwomNX7NKBrGnF7y89xCMhi38iMD7Qyn0\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.3 (paypal-sdk-core 1.3.3; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 286\r\n\r\n"
5
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.tsh3Ro2nkZnWX6PR8zQhszCpm2eApCFzKV3k1IdeSk0qtNChBJ95vdM0tpeo0Ee4.VlbxqEJcQc8ISTcpnP9vQoWPjEa\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.3 (platform=ruby; platform-ver=2.1.2p95; os=x86_64-darwin13.0; cypto-lib-ver=OpenSSL 1.0.1k 8 Jan 2015; OPENSSL_VERSION_NUMBER=268439743; VERSION=1.1.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 286\r\n\r\n"
6
6
  <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"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: Fri, 14 Aug 2015 19:27:00 GMT\r\n"
8
+ -> "Date: Tue, 27 Oct 2015 01:20:40 GMT\r\n"
9
9
  -> "Server: Apache\r\n"
10
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=251\r\n"
11
- -> "Paypal-Debug-Id: 57c5c08eafc3a\r\n"
12
- -> "CORRELATION-ID: 57c5c08eafc3a\r\n"
10
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=57412\r\n"
11
+ -> "Paypal-Debug-Id: 792746335470e\r\n"
12
+ -> "CORRELATION-ID: 792746335470e\r\n"
13
13
  -> "Content-Language: *\r\n"
14
- -> "Content-Length: 1176\r\n"
15
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D71421525; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
16
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
17
- -> "Vary: Authorization\r\n"
18
- -> "Connection: close\r\n"
19
- -> "Content-Type: application/json\r\n"
20
- -> "\r\n"
21
- reading 1176 bytes...
22
- -> "{\"id\":\"PAY-5MD80579TN219810MKXHECBA\",\"create_time\":\"2015-08-14T19:27:00Z\",\"update_time\":\"2015-08-14T19:27:04Z\",\"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\":\"6H321807DK861205V\",\"create_time\":\"2015-08-14T19:27:00Z\",\"update_time\":\"2015-08-14T19:27:04Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5MD80579TN219810MKXHECBA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6H321807DK861205V\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6H321807DK861205V/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5MD80579TN219810MKXHECBA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5MD80579TN219810MKXHECBA\",\"rel\":\"self\",\"method\":\"GET\"}]}"
23
- read 1176 bytes
24
- Conn close
25
- opening connection to api.sandbox.paypal.com:443...
26
- opened
27
- starting SSL for api.sandbox.paypal.com:443...
28
- SSL established
29
- <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015Tku-A.ysSqWwomNX7NKBrGnF7y89xCMhi38iMD7Qyn0\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.3 (paypal-sdk-core 1.3.3; 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"
30
- -> "HTTP/1.1 200 OK\r\n"
31
- -> "Date: Fri, 14 Aug 2015 19:27:05 GMT\r\n"
32
- -> "Server: Apache\r\n"
33
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=14655\r\n"
34
- -> "Paypal-Debug-Id: b474d270c9213\r\n"
35
- -> "CORRELATION-ID: b474d270c9213\r\n"
36
- -> "Content-Language: *\r\n"
37
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D155307605; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
38
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
39
- -> "Vary: Authorization\r\n"
40
- -> "Connection: close\r\n"
41
- -> "Transfer-Encoding: chunked\r\n"
42
- -> "Content-Type: application/json\r\n"
43
- -> "\r\n"
44
- -> "2000\r\n"
45
- reading 8192 bytes...
46
- -> ""
47
- -> "{\"payments\":[{\"id\":\"PAY-5MD80579TN219810MKXHECBA\",\"create_time\":\"2015-08-14T19:27:00Z\",\"update_time\":\"2015-08-14T19:27:04Z\",\"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\":\"6H321807DK861205V\",\"create_time\":\"2015-08-14T19:27:00Z\",\"update_time\":\"2015-08-14T19:27:04Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5MD80579TN219810MKXHECBA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6H321807DK861205V\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6H321807DK861205V/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5MD80579TN219810MKXHECBA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5MD80579TN219810MKXHECBA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-01U12304WP305223HKXHD4FI\",\"create_time\":\"2015-08-14T19:14:29Z\",\"update_time\":\"2015-08-14T19:14:34Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"sample@buy.com\",\"first_name\":\"SandboxTest\",\"last_name\":\"Account\",\"payer_id\":\"REABK2UGK7PLW\",\"shipping_address\":{\"line1\":\"111 First Street\",\"city\":\"Saratoga\",\"state\":\"CA\",\"postal_code\":\"95070\",\"country_code\":\"US\",\"recipient_name\":\"SandboxTest Account\"}}},\"transactions\":[{\"amount\":{\"total\":\"414.82\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"402.94\",\"tax\":\"4.67\",\"shipping\":\"7.21\"}},\"description\":\"sample item\",\"custom\":\"This is text that will be associated with the payment that the app can use.\",\"item_list\":{\"items\":[{\"name\":\"sample item #1\",\"sku\":\"sku-12345678\",\"price\":\"87.50\",\"currency\":\"USD\",\"quantity\":\"2\"},{\"name\":\"free sample item #2\",\"sku\":\"sku-zero-price\",\"price\":\"0.00\",\"currency\":\"USD\",\"quantity\":\"1\"},{\"name\":\"sample item #3 with a longer name\",\"sku\":\"sku-33333\",\"price\":\"37.99\",\"currency\":\"USD\",\"quantity\":\"6\"}]},\"related_resources\":[{\"sale\":{\"id\":\"374887672E589333J\",\"create_time\":\"2015-08-14T19:14:29Z\",\"update_time\":\"2015-08-14T19:14:34Z\",\"amount\":{\"total\":\"414.82\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-01U12304WP305223HKXHD4FI\",\"transaction_fee\":{\"value\":\"12.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/374887672E589333J\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/374887672E589333J/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01U12304WP305223HKXHD4FI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01U12304WP305223HKXHD4FI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-2MG63386NM311345SKXHD27A\",\"create_time\":\"2015-08-14T19:11:56Z\",\"update_time\":\"2015-08-14T19:12:02Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"sample@buy.com\",\"first_name\":\"SandboxTest\",\"last_name\":\"Account\",\"payer_id\":\"REABK2UGK7PLW\",\"shipping_address\":{\"line1\":\"111 First Street\",\"city\":\"Saratoga\",\"state\":\"CA\",\"postal_code\":\"95070\",\"country_code\":\"US\",\"recipient_name\":\"SandboxTest Account\"}}},\"transactions\":[{\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.75\"}},\"description\":\"sample item\",\"related_resources\":[{\"sale\":{\"id\":\"8N921509Y5805272M\",\"create_time\":\"2015-08-14T19:11:56Z\",\"update_time\":\"2015-08-14T19:12:02Z\",\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-2MG63386NM311345SKXHD27A\",\"transaction_fee\":{\"value\":\"0.35\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8N921509Y5805272M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8N921509Y5805272M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2MG63386NM311345SKXHD27A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2MG63386NM311345SKXHD27A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-2RP13380XV9957341KXHDXHI\",\"create_time\":\"2015-08-14T19:03:57Z\",\"update_time\":\"2015-08-14T19:04:03Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"sample@buy.com\",\"first_name\":\"SandboxTest\",\"last_name\":\"Account\",\"payer_id\":\"REABK2UGK7PLW\",\"shipping_address\":{\"line1\":\"111 First Street\",\"city\":\"Saratoga\",\"state\":\"CA\",\"postal_code\":\"95070\",\"country_code\":\"US\",\"recipient_name\":\"SandboxTest Account\"}}},\"transactions\":[{\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.75\"}},\"description\":\"sample item\",\"related_resources\":[{\"sale\":{\"id\":\"0SJ33010U12594945\",\"create_time\":\"2015-08-14T19:03:57Z\",\"update_time\":\"2015-08-14T19:04:03Z\",\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-2RP13380XV9957341KXHDXHI\",\"transaction_fee\":{\"value\":\"0.35\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0SJ33010U12594945\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0SJ33010U12594945/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2RP13380XV9957341KXHDXHI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2RP13380XV9957341KXHDXHI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-02V53171KW064944XKXHDW5Q\",\"create_time\":\"2015-08-14T19:03:18Z\",\"update_time\":\"2015-08-14T19:03:30Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"sample@buy.com\",\"first_name\":\"SandboxTest\",\"last_name\":\"Account\",\"payer_id\":\"REABK2UGK7PLW\",\"shipping_address\":{\"line1\":\"111 First Street\",\"city\":\"Saratoga\",\"state\":\"CA\",\"postal_code\":\"95070\",\"country_code\":\"US\",\"recipient_name\":\"SandboxTest Account\"}}},\"transactions\":[{\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.75\"}},\"description\":\"sample item\",\"related_resources\":[{\"sale\":{\"id\":\"57P281801V730020D\",\"create_time\":\"2015-08-14T19:03:18Z\",\"update_time\":\"2015-08-14T19:03:30Z\",\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-02V53171KW064944XKXHDW5Q\",\"transaction_fee\":{\"value\":\"0.35\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/57P281801V730020D\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/57P281801V730020D/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02V53171KW064944XKXHDW5Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02V53171KW064944XKXHDW5Q\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-2PP77825HS776052TKXHDWPA\",\"create_time\":\"2015-08-14T19:02:20Z\",\"update_time\":\"2015-08-14T19:02:26Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"sample@buy.com\",\"first_name\":\"SandboxTest\",\"last_name\":\"Account\",\"payer_id\":\"REABK2UGK7PLW\",\"shipping_address\":{\"line1\":\"111 First Street\",\"city\":\"Saratoga\",\""
48
- read 8192 bytes
49
- reading 2 bytes...
50
- -> ""
51
- -> "\r\n"
52
- read 2 bytes
53
- -> "1c0c\r\n"
54
- reading 7180 bytes...
55
- -> ""
56
- -> "state\":\"CA\",\"postal_code\":\"95070\",\"country_code\":\"US\",\"recipient_name\":\"SandboxTest Account\"}}},\"transactions\":[{\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.75\"}},\"description\":\"sample item\",\"related_resources\":[{\"sale\":{\"id\":\"52D48721SJ5496334\",\"create_time\":\"2015-08-14T19:02:20Z\",\"update_time\":\"2015-08-14T19:02:26Z\",\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-2PP77825HS776052TKXHDWPA\",\"transaction_fee\":{\"value\":\"0.35\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/52D48721SJ5496334\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/52D48721SJ5496334/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2PP77825HS776052TKXHDWPA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2PP77825HS776052TKXHDWPA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7A69236284206644BKXHDWJA\",\"create_time\":\"2015-08-14T19:01:56Z\",\"update_time\":\"2015-08-14T19:02:36Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"55ce3b2150514\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"3C616135JL836724P\",\"create_time\":\"2015-08-14T19:01:56Z\",\"update_time\":\"2015-08-14T19:02:36Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-7A69236284206644BKXHDWJA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3C616135JL836724P\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3C616135JL836724P/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7A69236284206644BKXHDWJA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7A69236284206644BKXHDWJA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-29P40162LG974834MKXHDVUQ\",\"create_time\":\"2015-08-14T19:00:34Z\",\"update_time\":\"2015-08-14T19:00:34Z\",\"state\":\"approved_symphony\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"sample@buy.com\",\"first_name\":\"SandboxTest\",\"last_name\":\"Account\",\"payer_id\":\"REABK2UGK7PLW\",\"shipping_address\":{\"line1\":\"111 First Street\",\"city\":\"Saratoga\",\"state\":\"CA\",\"postal_code\":\"95070\",\"country_code\":\"US\",\"recipient_name\":\"SandboxTest Account\"}}},\"transactions\":[{\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.75\"}},\"item_list\":{\"shipping_address\":{\"line1\":\"111 First Street\",\"city\":\"Saratoga\",\"state\":\"CA\",\"postal_code\":\"95070\",\"country_code\":\"US\"}},\"related_resources\":[{\"sale\":{\"id\":\"0LH83116VH233392P\",\"create_time\":\"2015-08-14T19:00:38Z\",\"update_time\":\"2015-08-14T19:00:38Z\",\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-29P40162LG974834MKXHDVUQ\",\"transaction_fee\":{\"value\":\"0.35\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0LH83116VH233392P\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0LH83116VH233392P/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-29P40162LG974834MKXHDVUQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-29P40162LG974834MKXHDVUQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3A082710X2604954RKXHDVAA\",\"create_time\":\"2015-08-14T18:59:12Z\",\"update_time\":\"2015-08-14T18:59:18Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"sample@buy.com\",\"first_name\":\"SandboxTest\",\"last_name\":\"Account\",\"payer_id\":\"REABK2UGK7PLW\",\"shipping_address\":{\"line1\":\"111 First Street\",\"city\":\"Saratoga\",\"state\":\"CA\",\"postal_code\":\"95070\",\"country_code\":\"US\",\"recipient_name\":\"SandboxTest Account\"}}},\"transactions\":[{\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.75\"}},\"description\":\"sample item\",\"related_resources\":[{\"sale\":{\"id\":\"1B58028337410931X\",\"create_time\":\"2015-08-14T18:59:12Z\",\"update_time\":\"2015-08-14T18:59:18Z\",\"amount\":{\"total\":\"1.75\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-3A082710X2604954RKXHDVAA\",\"transaction_fee\":{\"value\":\"0.35\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1B58028337410931X\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1B58028337410931X/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3A082710X2604954RKXHDVAA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3A082710X2604954RKXHDVAA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0X667313VJ692441EKXHDUOA\",\"create_time\":\"2015-08-14T18:58:00Z\",\"update_time\":\"2015-08-14T18:58:02Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"mastercard\",\"number\":\"xxxxxxxxxxxx0036\",\"expire_month\":\"10\",\"expire_year\":\"2018\"}}]},\"transactions\":[{\"amount\":{\"total\":\"115.00\",\"currency\":\"EUR\",\"details\":{\"subtotal\":\"115.00\"}},\"description\":\"Contratacion de servicios de PleasureMoments (10).\",\"related_resources\":[{\"sale\":{\"id\":\"34S91397L4618321L\",\"create_time\":\"2015-08-14T18:58:00Z\",\"update_time\":\"2015-08-14T18:58:03Z\",\"amount\":{\"total\":\"115.00\",\"currency\":\"EUR\"},\"state\":\"pending\",\"parent_payment\":\"PAY-0X667313VJ692441EKXHDUOA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/34S91397L4618321L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/34S91397L4618321L/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0X667313VJ692441EKXHDUOA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0X667313VJ692441EKXHDUOA\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-4DX21241AC689233JKXHDQNQ\"}"
57
- read 7180 bytes
58
- reading 2 bytes...
59
- -> ""
60
- -> "\r\n"
61
- read 2 bytes
62
- -> "0\r\n"
63
- -> "\r\n"
64
- Conn close
65
- opening connection to api.sandbox.paypal.com:443...
66
- opened
67
- starting SSL for api.sandbox.paypal.com:443...
68
- SSL established
69
- <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015MDtCsa..HAYG83MyIlRGL5DR0hLMf6hJdx-Kgi2GUsk\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.3 (paypal-sdk-core 1.3.3; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 138\r\n\r\n"
70
- <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
71
- -> "HTTP/1.1 201 Created\r\n"
72
- -> "Date: Fri, 14 Aug 2015 19:27:14 GMT\r\n"
73
- -> "Server: Apache\r\n"
74
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=17594\r\n"
75
- -> "Paypal-Debug-Id: 2fe5f1f1fa19\r\n"
76
- -> "Content-Language: *\r\n"
77
- -> "CORRELATION-ID: 2fe5f1f1fa19\r\n"
78
- -> "Content-Length: 667\r\n"
79
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D306302549; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
80
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
14
+ -> "Content-Length: 1246\r\n"
15
+ -> "Paypal-Debug-Id: 792746335470e\r\n"
81
16
  -> "Vary: Authorization\r\n"
82
- -> "Connection: close\r\n"
83
17
  -> "Content-Type: application/json\r\n"
84
- -> "\r\n"
85
- reading 667 bytes...
86
- -> "{\"id\":\"CARD-68732998HE0719637KXHECEQ\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-08-13T00:00:00Z\",\"create_time\":\"2015-08-14T19:27:14Z\",\"update_time\":\"2015-08-14T19:27:14Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-68732998HE0719637KXHECEQ\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-68732998HE0719637KXHECEQ\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-68732998HE0719637KXHECEQ\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
87
- read 667 bytes
88
- Conn close
89
- opening connection to api.sandbox.paypal.com:443...
90
- opened
91
- starting SSL for api.sandbox.paypal.com:443...
92
- SSL established
93
- <- "GET /v1/vault/credit-card/CARD-68732998HE0719637KXHECEQ HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015MDtCsa..HAYG83MyIlRGL5DR0hLMf6hJdx-Kgi2GUsk\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.3.3 (paypal-sdk-core 1.3.3; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
94
- -> "HTTP/1.1 200 OK\r\n"
95
- -> "Date: Fri, 14 Aug 2015 19:27:14 GMT\r\n"
96
- -> "Server: Apache\r\n"
97
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1171\r\n"
98
- -> "Paypal-Debug-Id: b424eab5be92f\r\n"
99
- -> "Content-Language: *\r\n"
100
- -> "CORRELATION-ID: b424eab5be92f\r\n"
101
- -> "Content-Length: 667\r\n"
102
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D306302549; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
18
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1758539350; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
103
19
  -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
104
- -> "Vary: Authorization\r\n"
105
20
  -> "Connection: close\r\n"
106
- -> "Content-Type: application/json\r\n"
107
21
  -> "\r\n"
108
- reading 667 bytes...
109
- -> "{\"id\":\"CARD-68732998HE0719637KXHECEQ\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-08-13T00:00:00Z\",\"create_time\":\"2015-08-14T19:27:14Z\",\"update_time\":\"2015-08-14T19:27:14Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-68732998HE0719637KXHECEQ\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-68732998HE0719637KXHECEQ\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-68732998HE0719637KXHECEQ\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
110
- read 667 bytes
22
+ reading 1246 bytes...
23
+ -> "{\"id\":\"PAY-87599994AS911723KKYXNC2A\",\"create_time\":\"2015-10-27T01:20:40Z\",\"update_time\":\"2015-10-27T01:20:42Z\",\"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\":\"31516986300704008\",\"create_time\":\"2015-10-27T01:20:40Z\",\"update_time\":\"2015-10-27T01:20:42Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-87599994AS911723KKYXNC2A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/31516986300704008\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/31516986300704008/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-87599994AS911723KKYXNC2A\",\"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-87599994AS911723KKYXNC2A\",\"rel\":\"self\",\"method\":\"GET\"}]}"
24
+ read 1246 bytes
111
25
  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.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 2.4.1
165
+ rubygems_version: 2.5.0
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.