paypal-sdk-core 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +7 -0
- data/lib/paypal-sdk/core/api/ipn.rb +1 -1
- data/lib/paypal-sdk/core/version.rb +1 -1
- data/spec/core/api/ipn_spec.rb +5 -5
- data/spec/log/rest_http.log +81 -91
- 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: 4d0e8f726418489c646dfae15be7492c270b19d6
|
4
|
+
data.tar.gz: 8435264c714a76855f2679d575ccb113eb1acbb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 473836fec5182ac423809762ce8b8c6ed3716e1afe66f96f7dc0f9639f29e60bc643a4e7a19007f0f03ff434214cf055b4e3dbab125aff0e57e95473929a1d69
|
7
|
+
data.tar.gz: 605089d95aba0516e630d551123ad49302505c42859cb10d89cffb3e7522c153c4f258eab7a813cfda8aa0100fe904df0f59a8a15cbf34aae9d2ab6acbaadaab
|
data/CHANGELOG.txt
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
+
Version 0.3.2
|
2
|
+
- Update production IPN endpoint
|
3
|
+
|
4
|
+
Version 0.3.1
|
5
|
+
- Allow verbose logging of HTTP requests
|
6
|
+
|
1
7
|
Version 0.3.0 - July 1, 2014
|
2
8
|
- Add future payment support
|
3
9
|
- Fix exception handling for debug ID print
|
10
|
+
|
4
11
|
Version 0.2.10 - June 25, 2014
|
5
12
|
- Fix debug ID dump
|
6
13
|
|
data/spec/core/api/ipn_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe PayPal::SDK::Core::API::IPN do
|
|
12
12
|
message.ipn_endpoint.should eql "https://www.sandbox.paypal.com/cgi-bin/webscr"
|
13
13
|
|
14
14
|
message = IPN::Message.new("", :mode => :live)
|
15
|
-
message.ipn_endpoint.should eql "https://
|
15
|
+
message.ipn_endpoint.should eql "https://www.paypal.com/cgi-bin/webscr"
|
16
16
|
|
17
17
|
message = IPN::Message.new("", :ipn_endpoint => "http://example.com")
|
18
18
|
message.ipn_endpoint.should eql "http://example.com"
|
@@ -22,24 +22,24 @@ describe PayPal::SDK::Core::API::IPN do
|
|
22
22
|
describe "Valid" do
|
23
23
|
it "request" do
|
24
24
|
response = IPN.request(samples["ipn"]["valid_message"])
|
25
|
-
response.body.
|
25
|
+
expect(response.body).to eql IPN::VERIFIED
|
26
26
|
end
|
27
27
|
|
28
28
|
it "valid?" do
|
29
29
|
response = IPN.valid?(samples["ipn"]["valid_message"])
|
30
|
-
response.
|
30
|
+
expect(response).to be_truthy
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
describe "Invalid" do
|
35
35
|
it "request" do
|
36
36
|
response = IPN.request(samples["ipn"]["invalid_message"])
|
37
|
-
response.body.
|
37
|
+
expect(response.body).to eql IPN::INVALID
|
38
38
|
end
|
39
39
|
|
40
40
|
it "valid?" do
|
41
41
|
response = IPN.valid?(samples["ipn"]["invalid_message"])
|
42
|
-
response.
|
42
|
+
expect(response).to be_falsy
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
data/spec/log/rest_http.log
CHANGED
@@ -2,140 +2,130 @@ 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 A0157wfUuAQYIh-A0Oq7uOeFEW5L4d2g8lVM1DfnpMWq4ig\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.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: 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
|
-
|
8
|
-
|
9
|
-
-> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=18472\r\n"
|
10
|
-
-> "Paypal-Debug-Id: f9104a27e13e5\r\n"
|
11
|
-
-> "SERVER_INFO: paymentsplatformserv:v1.payments.payment&CalThreadId=128&TopLevelTxnStartTime=146f27dc87c&Host=slcsbjm2.slc.paypal.com&pid=6485\r\n"
|
12
|
-
-> "CORRELATION-ID: f9104a27e13e5\r\n"
|
13
|
-
-> "Content-Language: *\r\n"
|
14
|
-
-> "Date: Tue, 01 Jul 2014 15:14:53 GMT\r\n"
|
15
|
-
-> "Connection: close\r\n"
|
16
|
-
-> "Content-Type: application/json\r\n"
|
17
|
-
-> "Content-Length: 212\r\n"
|
18
|
-
-> "Connection: close\r\n"
|
19
|
-
-> "\r\n"
|
20
|
-
reading 212 bytes...
|
21
|
-
-> "{\"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\":\"f9104a27e13e5\"}"
|
22
|
-
read 212 bytes
|
23
|
-
Conn close
|
7
|
+
Conn close because of error Net::ReadTimeout
|
8
|
+
Conn close because of error Net::ReadTimeout
|
24
9
|
opening connection to api.sandbox.paypal.com:443...
|
25
10
|
opened
|
26
11
|
starting SSL for api.sandbox.paypal.com:443...
|
27
12
|
SSL established
|
28
|
-
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
13
|
+
<- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0157wfUuAQYIh-A0Oq7uOeFEW5L4d2g8lVM1DfnpMWq4ig\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.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"
|
29
14
|
-> "HTTP/1.1 200 OK\r\n"
|
30
|
-
-> "
|
31
|
-
-> "
|
32
|
-
-> "
|
33
|
-
-> "
|
34
|
-
-> "CORRELATION-ID:
|
15
|
+
-> "Date: Tue, 22 Sep 2015 12:02:28 GMT\r\n"
|
16
|
+
-> "Server: Apache\r\n"
|
17
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=283\r\n"
|
18
|
+
-> "Paypal-Debug-Id: 9e079bf51498d\r\n"
|
19
|
+
-> "CORRELATION-ID: 9e079bf51498d\r\n"
|
35
20
|
-> "Content-Language: *\r\n"
|
36
|
-
-> "
|
37
|
-
-> "
|
21
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1413677398; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
22
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
23
|
+
-> "Vary: Authorization\r\n"
|
24
|
+
-> "Connection: close\r\n"
|
38
25
|
-> "Transfer-Encoding: chunked\r\n"
|
26
|
+
-> "Content-Type: application/json\r\n"
|
27
|
+
-> "\r\n"
|
28
|
+
-> "2000\r\n"
|
29
|
+
reading 8192 bytes...
|
30
|
+
-> ""
|
31
|
+
-> "{\"payments\":[{\"id\":\"PAY-3RH76625GH470074EKYAUFFY\",\"create_time\":\"2015-09-22T11:59:19Z\",\"update_time\":\"2015-09-22T11:59:48Z\",\"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\":\"1XV70818GV122862R\",\"create_time\":\"2015-09-22T11:59:19Z\",\"update_time\":\"2015-09-22T11:59:48Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3RH76625GH470074EKYAUFFY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1XV70818GV122862R\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1XV70818GV122862R/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3RH76625GH470074EKYAUFFY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3RH76625GH470074EKYAUFFY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-02A09420YC130910CKYAUFBQ\",\"create_time\":\"2015-09-22T11:59:02Z\",\"update_time\":\"2015-09-22T11:59: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\":\"0T0672351R759241E\",\"create_time\":\"2015-09-22T11:59:02Z\",\"update_time\":\"2015-09-22T11:59:30Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-02A09420YC130910CKYAUFBQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0T0672351R759241E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0T0672351R759241E/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02A09420YC130910CKYAUFBQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-02A09420YC130910CKYAUFBQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1V956364333503206KYAT7QQ\",\"create_time\":\"2015-09-22T11:47:14Z\",\"update_time\":\"2015-09-22T11:47:43Z\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"sale\":{\"id\":\"9W8752054X547704M\",\"create_time\":\"2015-09-22T11:47:14Z\",\"update_time\":\"2015-09-22T11:47:43Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-1V956364333503206KYAT7QQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9W8752054X547704M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9W8752054X547704M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V956364333503206KYAT7QQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V956364333503206KYAT7QQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9RM90042SK972640WKYAT7OA\",\"create_time\":\"2015-09-22T11:47:04Z\",\"update_time\":\"2015-09-22T11:47:33Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"21929299179433516\",\"create_time\":\"2015-09-22T11:47:04Z\",\"update_time\":\"2015-09-22T11:47:33Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-9RM90042SK972640WKYAT7OA\",\"valid_until\":\"2015-10-21T11:47:04Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/21929299179433516\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/21929299179433516/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/21929299179433516/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9RM90042SK972640WKYAT7OA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9RM90042SK972640WKYAT7OA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3TB96836HU018825FKYAT7EY\",\"create_time\":\"2015-09-22T11:46:27Z\",\"update_time\":\"2015-09-22T11:46:58Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"0LS96308AM687090A\",\"create_time\":\"2015-09-22T11:46:27Z\",\"update_time\":\"2015-09-22T11:46:58Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-3TB96836HU018825FKYAT7EY\",\"valid_until\":\"2015-10-21T11:46:27Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0LS96308AM687090A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3TB96836HU018825FKYAT7EY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3TB96836HU018825FKYAT7EY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9L561547RL126160JKYAT67Q\",\"create_time\":\"2015-09-22T11:46:06Z\",\"update_time\":\"2015-09-22T11:47:03Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"9WF88233CE948340L\",\"create_time\":\"2015-09-22T11:46:06Z\",\"update_time\":\"2015-09-22T11:46:38Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-9L561547RL126160JKYAT67Q\",\"valid_until\":\"2015-10-21T11:46:06Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/9WF88233CE948340L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9L561547RL126160JKYAT67Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"3Y373150J9669033K\",\"create_time\":\"2015-09-22T11:46:39Z\",\"update_time\":\"2015-09-22T11:47:03Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-9L561547RL126160JKYAT67Q\",\"transaction_fee\":{\"value\":\"0.03\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/3Y373150J9669033K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/paym"
|
32
|
+
read 8192 bytes
|
33
|
+
reading 2 bytes...
|
34
|
+
-> ""
|
39
35
|
-> "\r\n"
|
36
|
+
read 2 bytes
|
40
37
|
-> "2000\r\n"
|
41
38
|
reading 8192 bytes...
|
42
|
-
-> "
|
39
|
+
-> ""
|
40
|
+
-> "ents/capture/3Y373150J9669033K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9L561547RL126160JKYAT67Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9L561547RL126160JKYAT67Q\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9CH80425739905600KYAT64Q\",\"create_time\":\"2015-09-22T11:45:54Z\",\"update_time\":\"2015-09-22T11:46:24Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"37H42675A7613824M\",\"create_time\":\"2015-09-22T11:45:54Z\",\"update_time\":\"2015-09-22T11:46:24Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-9CH80425739905600KYAT64Q\",\"valid_until\":\"2015-10-21T11:45:54Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/37H42675A7613824M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/37H42675A7613824M/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/37H42675A7613824M/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9CH80425739905600KYAT64Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9CH80425739905600KYAT64Q\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0XY91585F39981455KYAT6OA\",\"create_time\":\"2015-09-22T11:44:56Z\",\"update_time\":\"2015-09-22T11:45:53Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"3V631327E2347283P\",\"create_time\":\"2015-09-22T11:44:56Z\",\"update_time\":\"2015-09-22T11:45:25Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-0XY91585F39981455KYAT6OA\",\"valid_until\":\"2015-10-21T11:44:56Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/3V631327E2347283P\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XY91585F39981455KYAT6OA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"95648965MY834133H\",\"create_time\":\"2015-09-22T11:45:25Z\",\"update_time\":\"2015-09-22T11:45:53Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"refunded\",\"parent_payment\":\"PAY-0XY91585F39981455KYAT6OA\",\"transaction_fee\":{\"value\":\"0.03\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/95648965MY834133H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XY91585F39981455KYAT6OA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"4X919299AV409274F\",\"create_time\":\"2015-09-22T11:45:53Z\",\"update_time\":\"2015-09-22T11:45:53Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-1.00\",\"currency\":\"USD\"},\"capture_id\":\"95648965MY834133H\",\"parent_payment\":\"PAY-0XY91585F39981455KYAT6OA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/4X919299AV409274F\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XY91585F39981455KYAT6OA\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/95648965MY834133H\",\"rel\":\"capture\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XY91585F39981455KYAT6OA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-01F40135NG3590458KYAT56Y\",\"create_time\":\"2015-09-22T11:43:55Z\",\"update_time\":\"2015-09-22T11:44:54Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"9EL45882M1200554M\",\"create_time\":\"2015-09-22T11:43:55Z\",\"update_time\":\"2015-09-22T11:44:28Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-01F40135NG3590458KYAT56Y\",\"valid_until\":\"2015-10-21T11:43:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/9EL45882M1200554M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01F40135NG3590458KYAT56Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"4SP954760W542420T\",\"create_time\":\"2015-09-22T11:44:29Z\",\"update_time\":\"2015-09-22T11:44:54Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-01F40135NG3590458KYAT56Y\",\"transaction_fee\":{\"value\":\"0.03\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/4SP954760W542420T\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/4SP954760W542420T/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01F40135NG3590458KYAT56Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-01F40135NG3590458KYAT56Y\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3AS754887K982693TKYAT5QQ\",\"create_time\":\"2015-09-22T11:42:58Z\",\"update_time\":\"2015-09-22T11:43:54Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"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\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"item_list\":{\"items\":[{\"name\":\"item\",\"sku\":\"item\",\"price\":\"1.00\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"authorization\":{\"id\":\"7G941551CG7872229\",\"create_time\":\"2015-09-22T11:42:58Z\",\"update_time\":\"2015-09-22T11:43:30Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-3AS754887K982693TKYAT5QQ\",\"valid_until\":\"2015-10-21T11:42:58Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/7G941551CG7872229\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3AS754887K982693TKYAT5QQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"4TV520598U368270L\",\"create_time\":\"2015-09-22T11:43:31Z\",\"update_time\":\"2015-09-22T11:43:54Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3AS754887K982693TKYAT5QQ\",\"transaction_fee\":{\"value\":\"0.03\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/4TV520598U368270L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/4TV520598U368270L/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3AS754887K982693TKYAT5QQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY"
|
43
41
|
read 8192 bytes
|
44
42
|
reading 2 bytes...
|
43
|
+
-> ""
|
45
44
|
-> "\r\n"
|
46
45
|
read 2 bytes
|
47
|
-
-> "
|
48
|
-
reading
|
49
|
-
-> "
|
50
|
-
-> "
|
51
|
-
read
|
46
|
+
-> "6f\r\n"
|
47
|
+
reading 111 bytes...
|
48
|
+
-> ""
|
49
|
+
-> "-3AS754887K982693TKYAT5QQ\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-9RD08396JL684741XKYATH6Y\"}"
|
50
|
+
read 111 bytes
|
52
51
|
reading 2 bytes...
|
52
|
+
-> ""
|
53
53
|
-> "\r\n"
|
54
54
|
read 2 bytes
|
55
55
|
-> "0\r\n"
|
56
56
|
-> "\r\n"
|
57
|
-
Conn
|
57
|
+
Conn close
|
58
58
|
opening connection to api.sandbox.paypal.com:443...
|
59
59
|
opened
|
60
60
|
starting SSL for api.sandbox.paypal.com:443...
|
61
61
|
SSL established
|
62
|
-
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
62
|
+
<- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015Kj-6rUauRzvbp3JEjVd3sCLfqCw-LMraUBkQdCD7ZHM\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.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: 138\r\n\r\n"
|
63
63
|
<- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
|
64
|
-
-> "HTTP/1.1
|
65
|
-
-> "
|
66
|
-
-> "
|
67
|
-
-> "
|
68
|
-
-> "
|
69
|
-
-> "CORRELATION-ID: 944f05c2d9545\r\n"
|
70
|
-
-> "Date: Tue, 01 Jul 2014 15:15:00 GMT\r\n"
|
71
|
-
-> "SERVER_INFO: vaultplatformserv:v1.vault.credit-card&CalThreadId=76352&TopLevelTxnStartTime=146f27e497f&Host=slcsbvaultplatformserv501.slc.paypal.com&pid=19516\r\n"
|
72
|
-
-> "Content-Type: application/json\r\n"
|
73
|
-
-> "Content-Length: 667\r\n"
|
74
|
-
-> "\r\n"
|
75
|
-
reading 667 bytes...
|
76
|
-
-> "{\"id\":\"CARD-5H59874375570124MKOZNA5I\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2017-06-30T00:00:00Z\",\"create_time\":\"2014-07-01T15:15:01Z\",\"update_time\":\"2014-07-01T15:15:01Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
|
77
|
-
read 667 bytes
|
78
|
-
Conn keep-alive
|
79
|
-
opening connection to api.sandbox.paypal.com:443...
|
80
|
-
opened
|
81
|
-
starting SSL for api.sandbox.paypal.com:443...
|
82
|
-
SSL established
|
83
|
-
<- "GET /v1/vault/credit-card/CARD-5H59874375570124MKOZNA5I HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015QrhQMl-PI80SksjhZQnhYq3fk9sY6Pe7uVtm9UZ-6Vs\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.10 (paypal-sdk-core 0.2.10; 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"
|
84
|
-
-> "HTTP/1.1 200 OK\r\n"
|
85
|
-
-> "Server: Apache-Coyote/1.1\r\n"
|
86
|
-
-> "PROXY_SERVER_INFO: host=slcsbjava2.slc.paypal.com;threadId=2777\r\n"
|
87
|
-
-> "Paypal-Debug-Id: cb91e45dd96f4\r\n"
|
64
|
+
-> "HTTP/1.1 500 Internal Server Error\r\n"
|
65
|
+
-> "Date: Tue, 22 Sep 2015 12:02:49 GMT\r\n"
|
66
|
+
-> "Server: Apache\r\n"
|
67
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=119051\r\n"
|
68
|
+
-> "Paypal-Debug-Id: 78a0467b1bfcb\r\n"
|
88
69
|
-> "Content-Language: *\r\n"
|
89
|
-
-> "CORRELATION-ID:
|
90
|
-
-> "
|
91
|
-
-> "
|
70
|
+
-> "CORRELATION-ID: 78a0467b1bfcb\r\n"
|
71
|
+
-> "Connection: close\r\n"
|
72
|
+
-> "Connection: close\r\n"
|
73
|
+
-> "Content-Length: 194\r\n"
|
74
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1765998934; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
75
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
76
|
+
-> "Vary: Authorization\r\n"
|
92
77
|
-> "Content-Type: application/json\r\n"
|
93
|
-
-> "Content-Length: 667\r\n"
|
94
78
|
-> "\r\n"
|
95
|
-
reading
|
96
|
-
-> "{\"
|
97
|
-
read
|
98
|
-
Conn
|
79
|
+
reading 194 bytes...
|
80
|
+
-> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"message\":\"An internal service error has occurred\",\"information_link\":\"https://developer.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"78a0467b1bfcb\"}"
|
81
|
+
read 194 bytes
|
82
|
+
Conn close
|
99
83
|
opening connection to api.sandbox.paypal.com:443...
|
100
84
|
opened
|
101
85
|
starting SSL for api.sandbox.paypal.com:443...
|
102
86
|
SSL established
|
103
|
-
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
87
|
+
<- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0157wfUuAQYIh-A0Oq7uOeFEW5L4d2g8lVM1DfnpMWq4ig\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.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"
|
104
88
|
-> "HTTP/1.1 404 Not Found\r\n"
|
105
|
-
-> "
|
106
|
-
-> "
|
107
|
-
-> "
|
108
|
-
-> "
|
109
|
-
-> "CORRELATION-ID:
|
89
|
+
-> "Date: Tue, 22 Sep 2015 12:02:49 GMT\r\n"
|
90
|
+
-> "Server: Apache\r\n"
|
91
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=119947\r\n"
|
92
|
+
-> "Paypal-Debug-Id: 7287e7db0b23\r\n"
|
93
|
+
-> "CORRELATION-ID: 7287e7db0b23\r\n"
|
110
94
|
-> "Content-Language: *\r\n"
|
111
|
-
-> "
|
95
|
+
-> "Content-Length: 206\r\n"
|
96
|
+
-> "Paypal-Debug-Id: 7287e7db0b23\r\n"
|
97
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1765998934; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
98
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
99
|
+
-> "Vary: Authorization\r\n"
|
100
|
+
-> "Connection: close\r\n"
|
112
101
|
-> "Content-Type: application/json\r\n"
|
113
|
-
-> "Content-Length: 207\r\n"
|
114
102
|
-> "\r\n"
|
115
|
-
reading
|
116
|
-
-> "{\"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\":\"
|
117
|
-
read
|
118
|
-
Conn
|
103
|
+
reading 206 bytes...
|
104
|
+
-> "{\"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\":\"7287e7db0b23\"}"
|
105
|
+
read 206 bytes
|
106
|
+
Conn close
|
119
107
|
opening connection to api.sandbox.paypal.com:443...
|
120
108
|
opened
|
121
109
|
starting SSL for api.sandbox.paypal.com:443...
|
122
110
|
SSL established
|
123
|
-
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer
|
111
|
+
<- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0157wfUuAQYIh-A0Oq7uOeFEW5L4d2g8lVM1DfnpMWq4ig\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.2 (paypal-sdk-core 0.3.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"
|
124
112
|
<- "{}"
|
125
|
-
-> "HTTP/1.1
|
126
|
-
-> "
|
127
|
-
-> "
|
128
|
-
-> "
|
129
|
-
-> "
|
130
|
-
-> "CORRELATION-ID:
|
113
|
+
-> "HTTP/1.1 400 Bad Request\r\n"
|
114
|
+
-> "Date: Tue, 22 Sep 2015 12:02:51 GMT\r\n"
|
115
|
+
-> "Server: Apache\r\n"
|
116
|
+
-> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1547\r\n"
|
117
|
+
-> "Paypal-Debug-Id: 3d06d6846c94b\r\n"
|
118
|
+
-> "CORRELATION-ID: 3d06d6846c94b\r\n"
|
131
119
|
-> "Content-Language: *\r\n"
|
132
|
-
-> "Date: Tue, 01 Jul 2014 15:15:02 GMT\r\n"
|
133
120
|
-> "Connection: close\r\n"
|
134
|
-
-> "Content-Type: application/json\r\n"
|
135
|
-
-> "Content-Length: 212\r\n"
|
136
121
|
-> "Connection: close\r\n"
|
122
|
+
-> "Content-Length: 306\r\n"
|
123
|
+
-> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1799553366; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
|
124
|
+
-> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
|
125
|
+
-> "Vary: Authorization\r\n"
|
126
|
+
-> "Content-Type: application/json\r\n"
|
137
127
|
-> "\r\n"
|
138
|
-
reading
|
139
|
-
-> "{\"name\":\"
|
140
|
-
read
|
128
|
+
reading 306 bytes...
|
129
|
+
-> "{\"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\":\"3d06d6846c94b\"}"
|
130
|
+
read 306 bytes
|
141
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: '1.0'
|
41
41
|
description: Core library for PayPal ruby SDKs
|
42
42
|
email:
|
43
|
-
- DL-PP-Platform-Ruby-SDK@
|
43
|
+
- DL-PP-Platform-Ruby-SDK@paypal.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|