paypal-sdk-core 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +3 -0
- data/lib/paypal-sdk/core/openid_connect/data_types.rb +1 -0
- data/lib/paypal-sdk/core/version.rb +1 -1
- data/spec/log/rest_http.log +54 -38
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38d10248b0b55b5c6d5ed7f2962e53ede4775e07
|
4
|
+
data.tar.gz: 5ff4db1dbdeec3cac008378cd5a5570815551ef0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b61cfdaadb4dcc9b237db1b06a26fedf05dab089f8c2d801fef6573bda96e38abee4df7e2e65dc507378087079636d3d6fc196185ea1b7a408196adec168009
|
7
|
+
data.tar.gz: fc26d99ca5cc06980bcf195be9f1af6ae776ac1f33279915cbe2529e940de28c9e334d3d1e6a6b38c0f1a1a4922495ed868482cdeda3955cb0172c6f543005a9
|
data/CHANGELOG.txt
CHANGED
data/spec/log/rest_http.log
CHANGED
@@ -2,43 +2,47 @@ 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
|
5
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer 07Fwa17vwysEHia1qM5Jeb-pMPk-5-uhygVx5lnP4ZU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.7 (paypal-sdk-core 0.2.7; ruby 2.0.0p353-x86_64-darwin12.5.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\":\"4417119669820331\",\"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
8
|
-> "Server: Apache-Coyote/1.1\r\n"
|
9
|
-
-> "
|
10
|
-
-> "
|
9
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava4.slc.paypal.com;threadId=279\r\n"
|
10
|
+
-> "Paypal-Debug-Id: 57a12fe873ac0\r\n"
|
11
|
+
-> "Content-Language: *\r\n"
|
12
|
+
-> "Date: Mon, 30 Dec 2013 10:33:30 GMT\r\n"
|
11
13
|
-> "Content-Type: application/json\r\n"
|
12
14
|
-> "Content-Length: 1176\r\n"
|
13
15
|
-> "\r\n"
|
14
16
|
reading 1176 bytes...
|
15
|
-
-> "{\"id\":\"PAY-
|
17
|
+
-> "{\"id\":\"PAY-5X9170549A274713NKLAUX4I\",\"create_time\":\"2013-12-30T10:33:21Z\",\"update_time\":\"2013-12-30T10:33:30Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"36V15352Y6561663N\",\"create_time\":\"2013-12-30T10:33:21Z\",\"update_time\":\"2013-12-30T10:33:30Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-5X9170549A274713NKLAUX4I\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/36V15352Y6561663N\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/36V15352Y6561663N/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5X9170549A274713NKLAUX4I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5X9170549A274713NKLAUX4I\",\"rel\":\"self\",\"method\":\"GET\"}]}"
|
16
18
|
read 1176 bytes
|
17
19
|
Conn keep-alive
|
18
20
|
opening connection to api.sandbox.paypal.com:443...
|
19
21
|
opened
|
20
22
|
starting SSL for api.sandbox.paypal.com:443...
|
21
23
|
SSL established
|
22
|
-
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
24
|
+
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer 07Fwa17vwysEHia1qM5Jeb-pMPk-5-uhygVx5lnP4ZU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.7 (paypal-sdk-core 0.2.7; ruby 2.0.0p353-x86_64-darwin12.5.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"
|
23
25
|
-> "HTTP/1.1 200 OK\r\n"
|
24
26
|
-> "Server: Apache-Coyote/1.1\r\n"
|
25
|
-
-> "
|
26
|
-
-> "
|
27
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=175\r\n"
|
28
|
+
-> "Paypal-Debug-Id: eeb15883768d4\r\n"
|
29
|
+
-> "Content-Language: *\r\n"
|
30
|
+
-> "Date: Mon, 30 Dec 2013 10:33:36 GMT\r\n"
|
27
31
|
-> "Content-Type: application/json\r\n"
|
28
32
|
-> "Transfer-Encoding: chunked\r\n"
|
29
33
|
-> "\r\n"
|
30
34
|
-> "2000\r\n"
|
31
35
|
reading 8192 bytes...
|
32
|
-
-> "{\"payments\":[{\"id\":\"PAY-
|
36
|
+
-> "{\"payments\":[{\"id\":\"PAY-5X9170549A274713NKLAUX4I\",\"create_time\":\"2013-12-30T10:33:21Z\",\"update_time\":\"2013-12-30T10:33:30Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"36V15352Y6561663N\",\"create_time\":\"2013-12-30T10:33:21Z\",\"update_time\":\"2013-12-30T10:33:30Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-5X9170549A274713NKLAUX4I\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/36V15352Y6561663N\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/36V15352Y6561663N/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5X9170549A274713NKLAUX4I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5X9170549A274713NKLAUX4I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-82Y33697456641121KLAUWCI\",\"create_time\":\"2013-12-30T10:29:29Z\",\"update_time\":\"2013-12-30T10:29:37Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"4YN645464D8147232\",\"create_time\":\"2013-12-30T10:29:29Z\",\"update_time\":\"2013-12-30T10:29:37Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-82Y33697456641121KLAUWCI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4YN645464D8147232\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4YN645464D8147232/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-82Y33697456641121KLAUWCI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-82Y33697456641121KLAUWCI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3RW99138WA726061MKLAUUJQ\",\"create_time\":\"2013-12-30T10:25:42Z\",\"update_time\":\"2013-12-30T10:25:51Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-5MY32504F4899612AKIHAQHY\",\"last4\":\"0331\",\"type\":\"visa\",\"expire_month\":\"11\",\"expire_year\":\"2018\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.00\",\"tax\":\"1.00\",\"shipping\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"Item Name\",\"sku\":\"sku\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]},\"related_resources\":[{\"sale\":{\"id\":\"16829121WB491983J\",\"create_time\":\"2013-12-30T10:25:42Z\",\"update_time\":\"2013-12-30T10:25:51Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-3RW99138WA726061MKLAUUJQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/16829121WB491983J\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/16829121WB491983J/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3RW99138WA726061MKLAUUJQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3RW99138WA726061MKLAUUJQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-662396545G397901LKLAUT5Y\",\"create_time\":\"2013-12-30T10:24:55Z\",\"update_time\":\"2013-12-30T10:25:38Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"email\":\"anpm.8917@gmail.com\",\"first_name\":\"amanda\",\"last_name\":\"phan\",\"payer_id\":\"5WMH5RVVRYSLS\",\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"10.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"10.00\"}},\"description\":\"Upgrade Vip\",\"related_resources\":[{\"sale\":{\"id\":\"11W60593NE206751E\",\"create_time\":\"2013-12-30T10:24:55Z\",\"update_time\":\"2013-12-30T10:25:38Z\",\"state\":\"completed\",\"amount\":{\"total\":\"10.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-662396545G397901LKLAUT5Y\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/11W60593NE206751E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/11W60593NE206751E/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-662396545G397901LKLAUT5Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-662396545G397901LKLAUT5Y\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1014168854051690GKLAUT4A\",\"create_time\":\"2013-12-30T10:24:48Z\",\"update_time\":\"2013-12-30T10:24:48Z\",\"state\":\"created\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"122.00\",\"currency\":\"SEK\",\"details\":{\"subtotal\":\"80.00\",\"tax\":\"30.00\",\"shipping\":\"12.00\"}},\"item_list\":{\"items\":[{\"name\":\"Article 01\",\"price\":\"40.00\",\"currency\":\"SEK\",\"quantity\":\"1\"},{\"name\":\"Article 02\",\"price\":\"20.00\",\"currency\":\"SEK\",\"quantity\":\"2\"}]},\"related_resources\":[{\"authorization\":{\"create_time\":\"2013-12-30T10:24:48Z\",\"update_time\":\"2013-12-30T10:24:48Z\",\"parent_payment\":\"PAY-1014168854051690GKLAUT4A\",\"valid_until\":\"2014-01-28T10:24:48Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1014168854051690GKLAUT4A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1014168854051690GKLAUT4A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-6TS47711SB4043631\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1014168854051690GKLAUT4A/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]},{\"id\":\"PAY-01S17951BA299180XKLAUPHY\",\"create_time\":\"2013-12-30T10:14:55Z\",\"update_time\":\"2013-12-30T10:14:55Z\",\"state\":\"created\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"122.00\",\"currency\":\"SEK\",\"details\":{\"subtotal\":\"80.00\",\"tax\":\"30.00\",\"shipping\":\"12.00\"}},\"item_list\":{\"items\":[{\"name\":\"Article 01\",\"price\":\"40.00\",\"currency\":\"SEK\",\"quantity\":\"1\"},{\"name\":\"Article 02\",\"price\":\"20.00\",\"currency\":\"SEK\",\"quantity\":\"2\"}]},\"related_resources\":[{\"authorization\":{\"create_time\":\"2013-12-30T10:14:55Z\",\"update_time\":\"2013-12-30T10:14:55Z\",\"parent_payment\":\"PAY-01S17951BA299180XKLAUPHY\",\"valid_until\":\"2014-01-28T10:14:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01S17951BA299180XKLAUPHY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01S17951BA299180XKLAUPHY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-4AN44515TH952972L\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01S17951BA299180XKLAUPHY/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]},{\"id\":\"PAY-2DL31960M4754554WKLAUN6Y\",\"create_time\":\"2013-12-30T10:12:11Z\",\"update_time\":\"2013-12-30T10:12:11Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"15.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"15.00\"}},\"description\":\"Pizza 1\"}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2DL31960M4754554WKLAUN6Y\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-63D04710W4505433P\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2DL31960M4754554WKLAUN6Y/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]},{\"id\":\"PA"
|
33
37
|
read 8192 bytes
|
34
38
|
reading 2 bytes...
|
35
39
|
-> "\r\n"
|
36
40
|
read 2 bytes
|
37
|
-
-> "
|
38
|
-
reading
|
39
|
-
-> "
|
40
|
-
-> "
|
41
|
-
read
|
41
|
+
-> "e16\r\n"
|
42
|
+
reading 3606 bytes...
|
43
|
+
-> "Y-9J690932G9758003MKLAUJ2Q\",\"create_time\":\"2013-12-30T10:03:22Z\",\"update_time\":\"2013-12-30T10:04:18Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"email\":\"anpm.8917@gmail.com\",\"first_name\":\"amanda\",\"last_name\":\"phan\",\"payer_id\":\"5WMH5RVVRYSLS\",\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"10.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"10.00\"}},\"description\":\"Upgrade Vip\",\"related_resources\":[{\"sale\":{\"id\":\"2TB60228M8854004H\",\"create_time\":\"2013-12-30T10:03:22Z\",\"update_time\":\""
|
44
|
+
-> "2013-12-30T10:04:18Z\",\"state\":\"completed\",\"amount\":{\"total\":\"10.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-9J690932G9758003MKLAUJ2Q\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2TB60228M8854004H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2TB60228M8854004H/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9J690932G9758003MKLAUJ2Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9J690932G9758003MKLAUJ2Q\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7FS27953C2820102CKLAUJSQ\",\"create_time\":\"2013-12-30T10:02:50Z\",\"update_time\":\"2013-12-30T10:02:50Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"shipping_address\":{}}},\"transactions\":[{\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"75.00\",\"tax\":\"15.00\",\"shipping\":\"10.00\"}},\"description\":\"Transaction description.\",\"item_list\":{\"items\":[{\"name\":\"Item Name\",\"sku\":\"sku\",\"price\":\"15.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]}}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7FS27953C2820102CKLAUJSQ\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7K57433172904382J\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7FS27953C2820102CKLAUJSQ/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]},{\"id\":\"PAY-8WB5748473583562HKLAUJJI\",\"create_time\":\"2013-12-30T10:02:13Z\",\"update_time\":\"2013-12-30T10:02:23Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.00\",\"tax\":\"1.00\",\"shipping\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"Item Name\",\"sku\":\"sku\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]},\"related_resources\":[{\"sale\":{\"id\":\"1SD71929MU7162426\",\"create_time\":\"2013-12-30T10:02:13Z\",\"update_time\":\"2013-12-30T10:02:23Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-8WB5748473583562HKLAUJJI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1SD71929MU7162426\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1SD71929MU7162426/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8WB5748473583562HKLAUJJI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8WB5748473583562HKLAUJJI\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-5SF09035AA278824XKLAUINA\"}"
|
45
|
+
read 3606 bytes
|
42
46
|
reading 2 bytes...
|
43
47
|
-> "\r\n"
|
44
48
|
read 2 bytes
|
@@ -49,67 +53,79 @@ opening connection to api.sandbox.paypal.com:443...
|
|
49
53
|
opened
|
50
54
|
starting SSL for api.sandbox.paypal.com:443...
|
51
55
|
SSL established
|
52
|
-
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
56
|
+
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer VknrLyV-t.VSOq-kWU8drom2FntYqcUYLVCS2hKmz7E\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.7 (paypal-sdk-core 0.2.7; ruby 2.0.0p353-x86_64-darwin12.5.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"
|
53
57
|
<- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
|
54
58
|
-> "HTTP/1.1 201 Created\r\n"
|
55
59
|
-> "Server: Apache-Coyote/1.1\r\n"
|
56
|
-
-> "
|
57
|
-
-> "
|
60
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=179\r\n"
|
61
|
+
-> "Paypal-Debug-Id: 3f08aaef756d4\r\n"
|
62
|
+
-> "Content-Language: *\r\n"
|
63
|
+
-> "CORRELATION-ID: 3f08aaef756d4\r\n"
|
64
|
+
-> "Date: Mon, 30 Dec 2013 10:33:40 GMT\r\n"
|
65
|
+
-> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=2069&TopLevelTxnStartTime=1434310f15a&Host=slcsbvaultplatformserv502.slc.paypal.com&pid=1239\r\n"
|
58
66
|
-> "Content-Type: application/json\r\n"
|
59
|
-
-> "Content-Length:
|
67
|
+
-> "Content-Length: 667\r\n"
|
60
68
|
-> "\r\n"
|
61
|
-
reading
|
62
|
-
-> "{\"id\":\"CARD-
|
63
|
-
read
|
69
|
+
reading 667 bytes...
|
70
|
+
-> "{\"id\":\"CARD-7BK84485RL522182DKLAUYBA\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2016-12-29T00:00:00Z\",\"create_time\":\"2013-12-30T10:33:40Z\",\"update_time\":\"2013-12-30T10:33:40Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-7BK84485RL522182DKLAUYBA\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-7BK84485RL522182DKLAUYBA\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-7BK84485RL522182DKLAUYBA\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
71
|
+
read 667 bytes
|
64
72
|
Conn keep-alive
|
65
73
|
opening connection to api.sandbox.paypal.com:443...
|
66
74
|
opened
|
67
75
|
starting SSL for api.sandbox.paypal.com:443...
|
68
76
|
SSL established
|
69
|
-
<- "GET /v1/vault/credit-card/CARD-
|
77
|
+
<- "GET /v1/vault/credit-card/CARD-7BK84485RL522182DKLAUYBA HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer VknrLyV-t.VSOq-kWU8drom2FntYqcUYLVCS2hKmz7E\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.7 (paypal-sdk-core 0.2.7; ruby 2.0.0p353-x86_64-darwin12.5.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"
|
70
78
|
-> "HTTP/1.1 200 OK\r\n"
|
71
79
|
-> "Server: Apache-Coyote/1.1\r\n"
|
72
|
-
-> "
|
73
|
-
-> "
|
80
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava4.slc.paypal.com;threadId=85530\r\n"
|
81
|
+
-> "Paypal-Debug-Id: 3c87cf2d76976\r\n"
|
82
|
+
-> "Content-Language: *\r\n"
|
83
|
+
-> "CORRELATION-ID: 3c87cf2d76976\r\n"
|
84
|
+
-> "Date: Mon, 30 Dec 2013 10:33:41 GMT\r\n"
|
85
|
+
-> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=88&TopLevelTxnStartTime=1434310f6de&Host=slcsbvaultplatformserv501.slc.paypal.com&pid=24172\r\n"
|
74
86
|
-> "Content-Type: application/json\r\n"
|
75
|
-
-> "Content-Length:
|
87
|
+
-> "Content-Length: 667\r\n"
|
76
88
|
-> "\r\n"
|
77
|
-
reading
|
78
|
-
-> "{\"id\":\"CARD-
|
79
|
-
read
|
89
|
+
reading 667 bytes...
|
90
|
+
-> "{\"id\":\"CARD-7BK84485RL522182DKLAUYBA\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2016-12-29T00:00:00Z\",\"create_time\":\"2013-12-30T10:33:40Z\",\"update_time\":\"2013-12-30T10:33:40Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-7BK84485RL522182DKLAUYBA\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-7BK84485RL522182DKLAUYBA\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-7BK84485RL522182DKLAUYBA\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
91
|
+
read 667 bytes
|
80
92
|
Conn keep-alive
|
81
93
|
opening connection to api.sandbox.paypal.com:443...
|
82
94
|
opened
|
83
95
|
starting SSL for api.sandbox.paypal.com:443...
|
84
96
|
SSL established
|
85
|
-
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
97
|
+
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer 07Fwa17vwysEHia1qM5Jeb-pMPk-5-uhygVx5lnP4ZU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.7 (paypal-sdk-core 0.2.7; ruby 2.0.0p353-x86_64-darwin12.5.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"
|
86
98
|
-> "HTTP/1.1 404 Not Found\r\n"
|
87
99
|
-> "Server: Apache-Coyote/1.1\r\n"
|
88
|
-
-> "
|
89
|
-
-> "
|
100
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava1.slc.paypal.com;threadId=2061\r\n"
|
101
|
+
-> "Paypal-Debug-Id: f59c797e75af2\r\n"
|
102
|
+
-> "Content-Language: *\r\n"
|
103
|
+
-> "Date: Mon, 30 Dec 2013 10:33:42 GMT\r\n"
|
90
104
|
-> "Content-Type: application/json\r\n"
|
91
105
|
-> "Content-Length: 207\r\n"
|
92
106
|
-> "\r\n"
|
93
107
|
reading 207 bytes...
|
94
|
-
-> "{\"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\":\"
|
108
|
+
-> "{\"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\":\"f59c797e75af2\"}"
|
95
109
|
read 207 bytes
|
96
110
|
Conn keep-alive
|
97
111
|
opening connection to api.sandbox.paypal.com:443...
|
98
112
|
opened
|
99
113
|
starting SSL for api.sandbox.paypal.com:443...
|
100
114
|
SSL established
|
101
|
-
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
115
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer 07Fwa17vwysEHia1qM5Jeb-pMPk-5-uhygVx5lnP4ZU\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.7 (paypal-sdk-core 0.2.7; ruby 2.0.0p353-x86_64-darwin12.5.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"
|
102
116
|
<- "{}"
|
103
117
|
-> "HTTP/1.1 400 Bad Request\r\n"
|
104
118
|
-> "Server: Apache-Coyote/1.1\r\n"
|
105
|
-
-> "
|
119
|
+
-> "PROXY_SERVER_INFO: host=slcsbjava3.slc.paypal.com;threadId=188\r\n"
|
120
|
+
-> "Paypal-Debug-Id: 5931d9002a991\r\n"
|
121
|
+
-> "Content-Language: *\r\n"
|
122
|
+
-> "Date: Mon, 30 Dec 2013 10:33:44 GMT\r\n"
|
106
123
|
-> "Connection: close\r\n"
|
107
|
-
-> "PayPal-Debug-Id: 989f8c126df6d\r\n"
|
108
124
|
-> "Content-Type: application/json\r\n"
|
109
|
-
-> "Content-Length:
|
125
|
+
-> "Content-Length: 306\r\n"
|
110
126
|
-> "Connection: close\r\n"
|
111
127
|
-> "\r\n"
|
112
|
-
reading
|
113
|
-
-> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"
|
114
|
-
read
|
128
|
+
reading 306 bytes...
|
129
|
+
-> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"payer\",\"issue\":\"Required field missing\"},{\"field\":\"intent\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"5931d9002a991\"}"
|
130
|
+
read 306 bytes
|
115
131
|
Conn close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.1.11
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Core library for PayPal ruby SDKs
|