paypal-sdk-rest 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,86 +2,42 @@ 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 A015fJJgT4D0vzp8BRorIM7AuWwUuGm-qv7Cmn0dfeJbgKI\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.1 (paypal-sdk-core 1.1.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 286\r\n\r\n"
6
- <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"4417119669820331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"}}]}"
7
- Conn close because of error Net::ReadTimeout
8
- Conn close because of error Net::ReadTimeout
9
- opening connection to api.sandbox.paypal.com:443...
10
- opened
11
- starting SSL for api.sandbox.paypal.com:443...
12
- SSL established
13
- <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015fJJgT4D0vzp8BRorIM7AuWwUuGm-qv7Cmn0dfeJbgKI\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.1 (paypal-sdk-core 1.1.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
14
- -> "HTTP/1.1 200 OK\r\n"
15
- -> "Server: Apache-Coyote/1.1\r\n"
16
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=424331\r\n"
17
- -> "Paypal-Debug-Id: 3fb6f2f808776\r\n"
18
- -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=17300&TopLevelTxnStartTime=14b5a79a63b&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=22725\r\n"
19
- -> "Content-Language: *\r\n"
20
- -> "Date: Thu, 05 Feb 2015 16:01:43 GMT\r\n"
21
- -> "Content-Type: application/json\r\n"
22
- -> "Transfer-Encoding: chunked\r\n"
23
- -> "\r\n"
24
- -> "2000\r\n"
25
- reading 8192 bytes...
26
- -> "{\"payments\":[{\"id\":\"PAY-0LY70877UB5885642KTJX6TI\",\"create_time\":\"2015-02-05T14:33:49Z\",\"update_time\":\"2015-02-05T14:34:27Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"php.champ.test@spaculus.com\",\"first_name\":\"Dharmesh\",\"last_name\":\"Patel\",\"payer_id\":\"ZFVJXJ9A5M3QW\",\"shipping_address\":{\"line1\":\"1 Main St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"recipient_name\":\"Dharmesh Patel\"}}},\"transactions\":[{\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"100.00\"}},\"description\":\"The amount will be deposited to your account.\",\"invoice_number\":\"54d37f45ec3e5\",\"item_list\":{\"items\":[{\"name\":\"Amount deposite to Account\",\"price\":\"100.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"91W52697N18319506\",\"create_time\":\"2015-02-05T14:33:49Z\",\"update_time\":\"2015-02-05T14:34:27Z\",\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"100.00\"}},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"authorized\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-0LY70877UB5885642KTJX6TI\",\"valid_until\":\"2015-03-06T14:33:49Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/91W52697N18319506\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/91W52697N18319506/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/91W52697N18319506/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/91W52697N18319506/reauthorize\",\"rel\":\"reauthorize\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0LY70877UB5885642KTJX6TI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0LY70877UB5885642KTJX6TI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-63P05379UA4165527KTJX5XI\",\"create_time\":\"2015-02-05T14:31:57Z\",\"update_time\":\"2015-02-05T14:32:46Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"php.champ.test@spaculus.com\",\"first_name\":\"Dharmesh\",\"last_name\":\"Patel\",\"payer_id\":\"ZFVJXJ9A5M3QW\",\"shipping_address\":{\"line1\":\"1 Main St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"recipient_name\":\"Dharmesh Patel\"}}},\"transactions\":[{\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"100.00\"}},\"description\":\"The amount will be deposited to your account.\",\"invoice_number\":\"54d37ed5b6502\",\"item_list\":{\"items\":[{\"name\":\"Amount deposite to Account\",\"price\":\"100.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"8UA89822MX366043D\",\"create_time\":\"2015-02-05T14:31:57Z\",\"update_time\":\"2015-02-05T14:32:46Z\",\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"100.00\"}},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"authorized\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-63P05379UA4165527KTJX5XI\",\"valid_until\":\"2015-03-06T14:31:57Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UA89822MX366043D\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UA89822MX366043D/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UA89822MX366043D/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UA89822MX366043D/reauthorize\",\"rel\":\"reauthorize\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-63P05379UA4165527KTJX5XI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-63P05379UA4165527KTJX5XI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0XN32249X46583145KTJXVBA\",\"create_time\":\"2015-02-05T14:13:24Z\",\"update_time\":\"2015-02-05T14:13:26Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-25474152HB7237609KTJP3AY\",\"last4\":\"6333\",\"type\":\"visa\",\"expire_month\":\"1\",\"expire_year\":\"2018\"}}]},\"transactions\":[{\"amount\":{\"total\":\"168.75\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"168.75\"}},\"description\":\"Payment description\",\"invoice_number\":\"54d37a9f6ea05\",\"related_resources\":[{\"sale\":{\"id\":\"16H43722X01735524\",\"create_time\":\"2015-02-05T14:13:24Z\",\"update_time\":\"2015-02-05T14:13:26Z\",\"amount\":{\"total\":\"168.75\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-0XN32249X46583145KTJXVBA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/16H43722X01735524\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/16H43722X01735524/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XN32249X46583145KTJXVBA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XN32249X46583145KTJXVBA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-25T16475GE963891TKTJXBQY\",\"create_time\":\"2015-02-05T13:31:47Z\",\"update_time\":\"2015-02-05T14:06:28Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"php.champ.test@spaculus.com\",\"first_name\":\"Dharmesh\",\"last_name\":\"Patel\",\"payer_id\":\"ZFVJXJ9A5M3QW\",\"shipping_address\":{\"line1\":\"1 Main St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"recipient_name\":\"Dharmesh Patel\"}}},\"transactions\":[{\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"100.00\"}},\"description\":\"The amount will be deposited to your account.\",\"invoice_number\":\"54d370bb93349\",\"item_list\":{\"items\":[{\"name\":\"Amount deposite to Account\",\"price\":\"100.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"3XA61004LK012384H\",\"create_time\":\"2015-02-05T13:31:47Z\",\"update_time\":\"2015-02-05T14:06:28Z\",\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"100.00\"}},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"authorized\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-25T16475GE963891TKTJXBQY\",\"valid_until\":\"2015-03-06T13:31:47Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/3XA61004LK012384H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/3XA61004LK012384H/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/3XA61004LK012384H/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/3XA61004LK012384H/reauthorize\",\"rel\":\"reauthorize\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-25T16475GE963891TKTJXBQY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-25T16475GE963891TKTJXBQY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0PP48362A8219840WKTJUTNA\",\"create_time\":\"2015-02-05T10:45:08Z\",\"update_time\":\"2015-02-05T10:50:46Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"UNVERIFIED\",\"payer_info\":{\"email\":\"manfred.hui@pacim.com\",\"first_name\":\"manfred\",\"last_name\":\"manfred\",\"payer_id\":\"UL9Z45SZW5XES\",\"shipping_address\":{\"line1\":\"manfred manfred manfred\",\"country_code\":\"HK\",\"recipient_name\":\"manfred manfred\"}}},\"transactions\":[{\"amount\":{\"total\":\"10.50\",\"currency\":\"HKD\",\"details\":{\"subtotal\":\"10.50\"}},\"description\":\"Payment description\",\"invoice_number\":\"54d349aeba15f\",\"item_list\":{\"items\":[{\"name\":\"Evil Spicy\",\"price\":\"10.50\",\"currency\":\"HKD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"sale\":{\"id\":\"0CY86286GF9778118\",\"create_time\":\"2015-02-05T10:45:08Z\",\"update_time\":\"2015-02-05T10:50:46Z\",\"amount\":{\"total\":\"10.50\",\"cu"
27
- read 8192 bytes
28
- reading 2 bytes...
29
- -> "\r\n"
30
- read 2 bytes
31
- -> "2000\r\n"
32
- reading 8192 bytes...
33
- -> "rrency\":\"HKD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"pending\",\"reason_code\":\"RECEIVING_PREFERENCE_MANDATES_MANUAL_ACTION\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-0PP48362A8219840WKTJUTNA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1"
34
- -> "/payments/sale/0CY86286GF9778118\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0CY86286GF9778118/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0PP48362A8219840WKTJUTNA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0PP48362A8219840WKTJUTNA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5KB69580DF504992WKTJRWEY\",\"create_time\":\"2015-02-05T07:26:11Z\",\"update_time\":\"2015-02-05T07:27:11Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"jacky.siu-buyer@pacim.com\",\"first_name\":\"Test\",\"last_name\":\"Buyer\",\"payer_id\":\"AND2WSUWY26BL\",\"shipping_address\":{\"line1\":\"71566176 Sky E137 S\",\"city\":\"Posta\",\"state\":\"Libisia\",\"postal_code\":\"W185744\",\"country_code\":\"HK\",\"recipient_name\":\"Buyer Test\"}}},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"HKD\",\"details\":{\"subtotal\":\"20.00\"}},\"description\":\"Payment description\",\"invoice_number\":\"54d31b0ce9882\",\"item_list\":{\"items\":[{\"name\":\"Scary tall\",\"price\":\"20.00\",\"currency\":\"HKD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"sale\":{\"id\":\"7PN090402Y689815C\",\"create_time\":\"2015-02-05T07:26:11Z\",\"update_time\":\"2015-02-05T07:27:11Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"HKD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"pending\",\"reason_code\":\"RECEIVING_PREFERENCE_MANDATES_MANUAL_ACTION\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-5KB69580DF504992WKTJRWEY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7PN090402Y689815C\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7PN090402Y689815C/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5KB69580DF504992WKTJRWEY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5KB69580DF504992WKTJRWEY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-64B265645E259954JKTJQNFI\",\"create_time\":\"2015-02-05T05:58:45Z\",\"update_time\":\"2015-02-05T06:04:42Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"business-facilitator@fwyinemagazine.com\",\"first_name\":\"facilitator\",\"last_name\":\"account\",\"payer_id\":\"LEFSP5YN4HFYW\",\"shipping_address\":{\"line1\":\"1 Main St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"recipient_name\":\"facilitator account's Test Store\"}}},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"54d30694c8be0\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]},\"related_resources\":[{\"sale\":{\"id\":\"8P7480319U3827909\",\"create_time\":\"2015-02-05T05:58:45Z\",\"update_time\":\"2015-02-05T06:04:42Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-64B265645E259954JKTJQNFI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8P7480319U3827909\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8P7480319U3827909/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-64B265645E259954JKTJQNFI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-64B265645E259954JKTJQNFI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5VM86664FM2232138KTJQJQA\",\"create_time\":\"2015-02-05T05:50:56Z\",\"update_time\":\"2015-02-05T05:50:59Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-25474152HB7237609KTJP3AY\",\"last4\":\"6333\",\"type\":\"visa\",\"expire_month\":\"1\",\"expire_year\":\"2018\"}}]},\"transactions\":[{\"amount\":{\"total\":\"112.50\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"112.50\"}},\"description\":\"Payment description\",\"invoice_number\":\"54d304bb839b6\",\"related_resources\":[{\"sale\":{\"id\":\"7GE76916WN424315V\",\"create_time\":\"2015-02-05T05:50:56Z\",\"update_time\":\"2015-02-05T05:50:59Z\",\"amount\":{\"total\":\"112.50\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5VM86664FM2232138KTJQJQA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7GE76916WN424315V\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7GE76916WN424315V/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5VM86664FM2232138KTJQJQA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5VM86664FM2232138KTJQJQA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-01299304L4378953MKTJJEJI\",\"create_time\":\"2015-02-04T21:41:57Z\",\"update_time\":\"2015-02-04T21:42:58Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"agmolina19-buyer@gmail.com\",\"first_name\":\"Test\",\"last_name\":\"Buyer\",\"payer_id\":\"3QYAEQS27QX7S\",\"shipping_address\":{\"line1\":\"calle Vilamar\xC3\x83\xC2\xAD 76993- 17469\",\"city\":\"Albacete\",\"state\":\"Albacete\",\"postal_code\":\"02001\",\"country_code\":\"ES\",\"recipient_name\":\"Test Buyer\"}}},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"54d292237972e\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]},\"related_resources\":[{\"sale\":{\"id\":\"1WM165137P942335V\",\"create_time\":\"2015-02-04T21:41:57Z\",\"update_time\":\"2015-02-04T21:42:58Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-01299304L4378953MKTJJEJI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1WM165137P942335V\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1WM165137P942335V/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01299304L4378953MKTJJEJI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01299304L4378953MKTJJEJI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-6123722582553412RKTJIRJA\",\"create_time\":\"2015-02-04T21:01:24Z\",\"update_time\":\"2015-02-04T21:01:41Z\",\"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\":\"1 Main St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"recipient_name\":\"SandboxTest Account\"}}},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"54d288a3d695d\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]},\"related_resources\":[{\"sale\":{\"id\":\"6RP01516HS5123149\",\"create_time\":\"2015-02-04T21:01:24Z\",\"update_time\":"
35
- read 8192 bytes
36
- reading 2 bytes...
37
- -> "\r\n"
38
- read 2 bytes
39
- -> "349\r\n"
40
- reading 841 bytes...
41
- -> "\"2015-02-04T21:01:41Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-6123722582553412RKTJIRJA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6RP01516HS5123149\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6RP01516HS5123149/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6123722582553412RKTJIRJA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6123722582553412RKTJIRJA\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-8WR72769VA7894933KTJIQ2I\"}"
42
- read 841 bytes
43
- reading 2 bytes...
44
- -> "\r\n"
45
- read 2 bytes
46
- -> "0\r\n"
47
- -> "\r\n"
48
- Conn keep-alive
49
- opening connection to api.sandbox.paypal.com:443...
50
- opened
51
- starting SSL for api.sandbox.paypal.com:443...
52
- SSL established
53
- <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015DOeL-vEIQtBqFkoNprLTDfst39du6S3DUZO-8rk2NAY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.1 (paypal-sdk-core 1.1.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 138\r\n\r\n"
54
- <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
55
- -> "HTTP/1.1 201 Created\r\n"
5
+ <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015X68fQini6eYX0X2vgR9gjBZbITowpkOCLd7utsAScY4\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.2 (paypal-sdk-core 1.1.2; 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"
6
+ -> "HTTP/1.1 500 Internal Server Error\r\n"
56
7
  -> "Server: Apache-Coyote/1.1\r\n"
57
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=371016\r\n"
58
- -> "Paypal-Debug-Id: cf30b7531349d\r\n"
8
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=9428\r\n"
9
+ -> "Paypal-Debug-Id: c76ddd041a814\r\n"
10
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=2019&TopLevelTxnStartTime=14be1f4b5a7&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=22861\r\n"
59
11
  -> "Content-Language: *\r\n"
60
- -> "Date: Thu, 05 Feb 2015 16:01:44 GMT\r\n"
61
- -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=137&TopLevelTxnStartTime=14b5a79c80b&Host=slcsbvaultplatformserv502.slc.paypal.com&pid=10462\r\n"
12
+ -> "Date: Tue, 03 Mar 2015 23:24:45 GMT\r\n"
13
+ -> "Connection: close\r\n"
62
14
  -> "Content-Type: application/json\r\n"
63
- -> "Content-Length: 667\r\n"
15
+ -> "Content-Length: 212\r\n"
16
+ -> "Connection: close\r\n"
64
17
  -> "\r\n"
65
- reading 667 bytes...
66
- -> "{\"id\":\"CARD-9FJ79890YD233344UKTJZH2I\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-02-04T00:00:00Z\",\"create_time\":\"2015-02-05T16:01:45Z\",\"update_time\":\"2015-02-05T16:01:45Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-9FJ79890YD233344UKTJZH2I\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-9FJ79890YD233344UKTJZH2I\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-9FJ79890YD233344UKTJZH2I\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
67
- read 667 bytes
68
- Conn keep-alive
18
+ reading 212 bytes...
19
+ -> "{\"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\":\"c76ddd041a814\"}"
20
+ read 212 bytes
21
+ Conn close
69
22
  opening connection to api.sandbox.paypal.com:443...
70
23
  opened
71
24
  starting SSL for api.sandbox.paypal.com:443...
72
25
  SSL established
73
- <- "GET /v1/vault/credit-card/CARD-9FJ79890YD233344UKTJZH2I HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015DOeL-vEIQtBqFkoNprLTDfst39du6S3DUZO-8rk2NAY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.1 (paypal-sdk-core 1.1.1; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
74
- -> "HTTP/1.1 200 OK\r\n"
26
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015X68fQini6eYX0X2vgR9gjBZbITowpkOCLd7utsAScY4\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.2 (paypal-sdk-core 1.1.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 2\r\n\r\n"
27
+ <- "{}"
28
+ -> "HTTP/1.1 400 Bad Request\r\n"
75
29
  -> "Server: Apache-Coyote/1.1\r\n"
76
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=371016\r\n"
77
- -> "Paypal-Debug-Id: 7e05ce8a13a97\r\n"
30
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=383\r\n"
31
+ -> "Paypal-Debug-Id: 847437cb1a3b5\r\n"
32
+ -> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=39134&TopLevelTxnStartTime=14be1f4b70e&Host=slcsbpaymentsplatformserv3001.slc.paypal.com&pid=22861\r\n"
78
33
  -> "Content-Language: *\r\n"
79
- -> "Date: Thu, 05 Feb 2015 16:01:46 GMT\r\n"
80
- -> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=137&TopLevelTxnStartTime=14b5a79c9fd&Host=slcsbvaultplatformserv502.slc.paypal.com&pid=10462\r\n"
34
+ -> "Date: Tue, 03 Mar 2015 23:24:45 GMT\r\n"
35
+ -> "Connection: close\r\n"
81
36
  -> "Content-Type: application/json\r\n"
82
- -> "Content-Length: 667\r\n"
37
+ -> "Content-Length: 306\r\n"
38
+ -> "Connection: close\r\n"
83
39
  -> "\r\n"
84
- reading 667 bytes...
85
- -> "{\"id\":\"CARD-9FJ79890YD233344UKTJZH2I\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-02-04T00:00:00Z\",\"create_time\":\"2015-02-05T16:01:45Z\",\"update_time\":\"2015-02-05T16:01:45Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-9FJ79890YD233344UKTJZH2I\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-9FJ79890YD233344UKTJZH2I\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-9FJ79890YD233344UKTJZH2I\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
86
- read 667 bytes
87
- Conn keep-alive
40
+ reading 306 bytes...
41
+ -> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"intent\",\"issue\":\"Required field missing\"},{\"field\":\"payer\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"847437cb1a3b5\"}"
42
+ read 306 bytes
43
+ 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.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls