paypal-sdk-core 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d39ce1404d9d2c76b7f115f8e59fed9df909b0b2
4
- data.tar.gz: 041b044edda3d8eceeb643eb37b17dcdde2579a6
2
+ SHA256:
3
+ metadata.gz: 1511153f36ab19e107b522287ccf36aa4fdd85a17e23ef75feb92ff3f9e2219e
4
+ data.tar.gz: fa4d3105aed821c58486edc7b560c79d8fc282c37cb63d2e2c8faa4a6fa93f95
5
5
  SHA512:
6
- metadata.gz: bf84a309f42acee40419e54b570f9c70e2d3fd924cc5d289c225faf700587522fe13ca6771653fe6f1bd98c1ae821488ff874fcbc8e230404347d037d1547d15
7
- data.tar.gz: 3f4849a05d9b3f07dbb5a9a1370a754774dd5f414232f9413fa23222de78c43d5c48c1869c0f225840aafca59fbf4b8947fe38c480943d1115b5462a83adce79
6
+ metadata.gz: 7143633ab9c9d1330691085c5c5c4a79bdfc52d4e143c6965612a5a669dcd06e1c06139749863bc9ad5669d4d050d34712d7f4aa34d4bcfeb7be47aa36cb5038
7
+ data.tar.gz: 9970242fb9a973433a1fb4dfa2fdd34a276e8c498a5a727fc3463574bcf161e65ec467e3c7ddba5732871072beeaa974dd73ae701436b9e4b9b3f6c04c605adb
data/LICENSE.txt CHANGED
@@ -1,41 +1,86 @@
1
- PAYPAL, INC.
2
-
3
- SDK LICENSE
4
-
5
- NOTICE TO USER: PayPal, Inc. is providing the Software and Documentation for use under the terms of this Agreement. Any use, reproduction, modification or distribution of the Software or Documentation, or any derivatives or portions hereof, constitutes your acceptance of this Agreement.
6
-
7
- As used in this Agreement, "PayPal" means PayPal, Inc. "Software" means the software code accompanying this agreement. "Documentation" means the documents, specifications and all other items accompanying this Agreement other than the Software.
8
-
9
- 1. LICENSE GRANT Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free license to use, reproduce, prepare derivative works from, publicly display, publicly perform, distribute and sublicense the Software for any purpose, provided the copyright notice below appears in a conspicuous location within the source code of the distributed Software and this license is distributed in the supporting documentation of the Software you distribute. Furthermore, you must comply with all third party licenses in order to use the third party software contained in the Software.
10
-
11
- Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free license to use, reproduce, publicly display, publicly perform, distribute and sublicense the Documentation for any purpose. You may not modify the Documentation.
12
-
13
- No title to the intellectual property in the Software or Documentation is transferred to you under the terms of this Agreement. You do not acquire any rights to the Software or the Documentation except as expressly set forth in this Agreement.
14
-
15
- If you choose to distribute the Software in a commercial product, you do so with the understanding that you agree to defend, indemnify and hold harmless PayPal and its suppliers against any losses, damages and costs arising from the claims, lawsuits or other legal actions arising out of such distribution. You may distribute the Software in object code form under your own license, provided that your license agreement:
16
-
17
- (a) complies with the terms and conditions of this license agreement;
18
-
19
- (b) effectively disclaims all warranties and conditions, express or implied, on behalf of PayPal;
20
-
21
- (c) effectively excludes all liability for damages on behalf of PayPal;
22
-
23
- (d) states that any provisions that differ from this Agreement are offered by you alone and not PayPal; and
24
-
25
- (e) states that the Software is available from you or PayPal and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
26
-
27
- 2. DISCLAIMER OF WARRANTY
28
- PAYPAL LICENSES THE SOFTWARE AND DOCUMENTATION TO YOU ONLY ON AN "AS IS" BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PAYPAL MAKES NO WARRANTY THAT THE SOFTWARE OR DOCUMENTATION WILL BE ERROR-FREE. Each user of the Software or Documentation is solely responsible for determining the appropriateness of using and distributing the Software and Documentation and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs, or equipment, and unavailability or interruption of operations. Use of the Software and Documentation is made with the understanding that PayPal will not provide you with any technical or customer support or maintenance. Some states or jurisdictions do not allow the exclusion of implied warranties or limitations on how long an implied warranty may last, so the above limitations may not apply to you. To the extent permissible, any implied warranties are limited to ninety (90) days.
29
-
30
-
31
- 3. LIMITATION OF LIABILITY
32
- PAYPAL AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING OUT OF THIS AGREEMENT OR FROM THE USE OF THE SOFTWARE OR DOCUMENTATION. IN NO EVENT WILL PAYPAL OR ITS SUPPLIERS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, INCIDENTAL, OR SPECIAL DAMAGES INCLUDING LOST PROFITS, LOST SAVINGS, COSTS, FEES, OR EXPENSES OF ANY KIND ARISING OUT OF ANY PROVISION OF THIS AGREEMENT OR THE USE OR THE INABILITY TO USE THE SOFTWARE OR DOCUMENTATION, HOWEVER CAUSED AND UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. PAYPAL'S AGGREGATE LIABILITY AND THAT OF ITS SUPPLIERS UNDER OR IN CONNECTION WITH THIS AGREEMENT SHALL BE LIMITED TO THE AMOUNT PAID BY YOU FOR THE SOFTWARE AND DOCUMENTATION.
33
-
34
- 4. TRADEMARK USAGE
35
- PayPal is a trademark PayPal, Inc. in the United States and other countries. Such trademarks may not be used to endorse or promote any product unless expressly permitted under separate agreement with PayPal.
36
-
37
- 5. TERM
38
- Your rights under this Agreement shall terminate if you fail to comply with any of the material terms or conditions of this Agreement and do not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all your rights under this Agreement terminate, you agree to cease use and distribution of the Software and Documentation as soon as reasonably practicable.
39
-
40
- 6. GOVERNING LAW AND JURISDICTION. This Agreement is governed by the statutes and laws of the State of California, without regard to the conflicts of law principles thereof. If any part of this Agreement is found void and unenforceable, it will not affect the validity of the balance of the Agreement, which shall remain valid and enforceable according to its terms. Any dispute arising out of or related to this Agreement shall be brought in the courts of Santa Clara County, California, USA.
41
-
1
+ The PayPal SDK is released under the following license:
2
+
3
+ Copyright (c) 2013-2016 PAYPAL, INC.
4
+
5
+ SDK LICENSE
6
+
7
+ NOTICE TO USER: PayPal, Inc. is providing the Software and Documentation for use under the terms of
8
+ this Agreement. Any use, reproduction, modification or distribution of the Software or Documentation,
9
+ or any derivatives or portions hereof, constitutes your acceptance of this Agreement.
10
+
11
+ As used in this Agreement, "PayPal" means PayPal, Inc. "Software" means the software code accompanying
12
+ this agreement. "Documentation" means the documents, specifications and all other items accompanying
13
+ this Agreement other than the Software.
14
+
15
+ 1. LICENSE GRANT Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive,
16
+ worldwide, royalty free license to use, reproduce, prepare derivative works from, publicly display,
17
+ publicly perform, distribute and sublicense the Software for any purpose, provided the copyright notice
18
+ below appears in a conspicuous location within the source code of the distributed Software and this
19
+ license is distributed in the supporting documentation of the Software you distribute. Furthermore,
20
+ you must comply with all third party licenses in order to use the third party software contained in the
21
+ Software.
22
+
23
+ Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free
24
+ license to use, reproduce, publicly display, publicly perform, distribute and sublicense the Documentation
25
+ for any purpose. You may not modify the Documentation.
26
+
27
+ No title to the intellectual property in the Software or Documentation is transferred to you under the
28
+ terms of this Agreement. You do not acquire any rights to the Software or the Documentation except as
29
+ expressly set forth in this Agreement.
30
+
31
+ If you choose to distribute the Software in a commercial product, you do so with the understanding that
32
+ you agree to defend, indemnify and hold harmless PayPal and its suppliers against any losses, damages and
33
+ costs arising from the claims, lawsuits or other legal actions arising out of such distribution. You may
34
+ distribute the Software in object code form under your own license, provided that your license agreement:
35
+
36
+ (a) complies with the terms and conditions of this license agreement;
37
+
38
+ (b) effectively disclaims all warranties and conditions, express or implied, on behalf of PayPal;
39
+
40
+ (c) effectively excludes all liability for damages on behalf of PayPal;
41
+
42
+ (d) states that any provisions that differ from this Agreement are offered by you alone and not PayPal; and
43
+
44
+ (e) states that the Software is available from you or PayPal and informs licensees how to obtain it in a
45
+ reasonable manner on or through a medium customarily used for software exchange.
46
+
47
+ 2. DISCLAIMER OF WARRANTY
48
+ PAYPAL LICENSES THE SOFTWARE AND DOCUMENTATION TO YOU ONLY ON AN "AS IS" BASIS WITHOUT WARRANTIES OR CONDITIONS
49
+ OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR CONDITIONS OF TITLE,
50
+ NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PAYPAL MAKES NO WARRANTY THAT THE
51
+ SOFTWARE OR DOCUMENTATION WILL BE ERROR-FREE. Each user of the Software or Documentation is solely responsible
52
+ for determining the appropriateness of using and distributing the Software and Documentation and assumes all
53
+ risks associated with its exercise of rights under this Agreement, including but not limited to the risks and
54
+ costs of program errors, compliance with applicable laws, damage to or loss of data, programs, or equipment,
55
+ and unavailability or interruption of operations. Use of the Software and Documentation is made with the
56
+ understanding that PayPal will not provide you with any technical or customer support or maintenance. Some
57
+ states or jurisdictions do not allow the exclusion of implied warranties or limitations on how long an implied
58
+ warranty may last, so the above limitations may not apply to you. To the extent permissible, any implied
59
+ warranties are limited to ninety (90) days.
60
+
61
+
62
+ 3. LIMITATION OF LIABILITY
63
+ PAYPAL AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING OUT OF THIS AGREEMENT OR FROM THE USE
64
+ OF THE SOFTWARE OR DOCUMENTATION. IN NO EVENT WILL PAYPAL OR ITS SUPPLIERS BE LIABLE TO YOU OR ANY THIRD PARTY
65
+ FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, INCIDENTAL, OR SPECIAL DAMAGES INCLUDING LOST PROFITS, LOST SAVINGS,
66
+ COSTS, FEES, OR EXPENSES OF ANY KIND ARISING OUT OF ANY PROVISION OF THIS AGREEMENT OR THE USE OR THE INABILITY
67
+ TO USE THE SOFTWARE OR DOCUMENTATION, HOWEVER CAUSED AND UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
68
+ STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
69
+ PAYPAL'S AGGREGATE LIABILITY AND THAT OF ITS SUPPLIERS UNDER OR IN CONNECTION WITH THIS AGREEMENT SHALL BE
70
+ LIMITED TO THE AMOUNT PAID BY YOU FOR THE SOFTWARE AND DOCUMENTATION.
71
+
72
+ 4. TRADEMARK USAGE
73
+ PayPal is a trademark PayPal, Inc. in the United States and other countries. Such trademarks may not be used
74
+ to endorse or promote any product unless expressly permitted under separate agreement with PayPal.
75
+
76
+ 5. TERM
77
+ Your rights under this Agreement shall terminate if you fail to comply with any of the material terms or
78
+ conditions of this Agreement and do not cure such failure in a reasonable period of time after becoming
79
+ aware of such noncompliance. If all your rights under this Agreement terminate, you agree to cease use
80
+ and distribution of the Software and Documentation as soon as reasonably practicable.
81
+
82
+ 6. GOVERNING LAW AND JURISDICTION. This Agreement is governed by the statutes and laws of the State of
83
+ California, without regard to the conflicts of law principles thereof. If any part of this Agreement is
84
+ found void and unenforceable, it will not affect the validity of the balance of the Agreement, which shall
85
+ remain valid and enforceable according to its terms. Any dispute arising out of or related to this Agreement
86
+ shall be brought in the courts of Santa Clara County, California, USA.
data/README.md CHANGED
@@ -7,3 +7,7 @@
7
7
  * [paypal-sdk-permissions](https://github.com/paypal/permissions-sdk-ruby)
8
8
  * [paypal-sdk-merchant](https://github.com/paypal/merchant-sdk-ruby)
9
9
  * [paypal-sdk-buttonmanager](https://github.com/paypal/buttonmanager-sdk-ruby)
10
+
11
+ ## Support
12
+
13
+ > Please contact [PayPal Technical Support](https://developer.paypal.com/support/) for any live or account issues.
@@ -241,7 +241,7 @@ module PayPal::SDK::Core
241
241
  def read_configurations(file_name = "config/paypal.yml")
242
242
  erb = ERB.new(File.read(file_name))
243
243
  erb.filename = file_name
244
- YAML.load(erb.result)
244
+ YAML.load(erb.result) || {}
245
245
  end
246
246
 
247
247
  end
@@ -20,7 +20,7 @@ module PayPal::SDK
20
20
  end
21
21
  alias_method :config=, :set_config
22
22
 
23
- AUTHORIZATION_URL = "paypal.com/webapps/auth/protocol/openidconnect/v1/authorize"
23
+ AUTHORIZATION_URL = "paypal.com/signin/authorize"
24
24
  ENDSESSION_URL = "paypal.com/webapps/auth/protocol/openidconnect/v1/endsession"
25
25
  DEFAULT_SCOPE = "openid"
26
26
 
@@ -91,18 +91,17 @@ describe PayPal::SDK::Core::API::REST do
91
91
 
92
92
  it "Create Payment" do
93
93
  response = @api.post("payment", {
94
- "intent" => "sale",
94
+ "intent" => "authorize",
95
+ "redirect_urls" => {
96
+ "return_url" => "http://example.com/your_redirect_url.html",
97
+ "cancel_url" => "http://example.com/your_cancel_url.html"
98
+ },
95
99
  "payer" => {
96
- "payment_method" => "credit_card",
97
- "funding_instruments" => [{
98
- "credit_card" => {
99
- "type" => "visa",
100
- "number" => "4417119669820331",
101
- "expire_month" => "11", "expire_year" => "2018",
102
- "first_name" => "Joe", "last_name" => "Shopper" }}]},
100
+ "payment_method" => "paypal",
101
+ },
103
102
  "transactions" => [{
104
103
  "amount" => {
105
- "total" => "7.47",
104
+ "total" => "0.08",
106
105
  "currency" => "USD" }}]})
107
106
  response["error"].should be_nil
108
107
  end
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
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2023-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
- description: Core library for PayPal ruby SDKs
41
+ description: "[Deprecated] Core library for PayPal ruby SDKs"
42
42
  email:
43
43
  - DL-PP-Platform-Ruby-SDK@paypal.com
44
44
  executables: []
@@ -98,14 +98,13 @@ files:
98
98
  - spec/core/config_spec.rb
99
99
  - spec/core/logging_spec.rb
100
100
  - spec/core/openid_connect_spec.rb
101
- - spec/log/rest_http.log
102
101
  - spec/spec_helper.rb
103
102
  - spec/support/sample_data.rb
104
103
  homepage: https://developer.paypal.com
105
104
  licenses:
106
105
  - PayPal SDK License
107
106
  metadata: {}
108
- post_install_message:
107
+ post_install_message:
109
108
  rdoc_options: []
110
109
  require_paths:
111
110
  - lib
@@ -120,11 +119,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
119
  - !ruby/object:Gem::Version
121
120
  version: '0'
122
121
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.5.0
125
- signing_key:
122
+ rubygems_version: 3.4.10
123
+ signing_key:
126
124
  specification_version: 4
127
- summary: Core library for PayPal ruby SDKs
125
+ summary: Deprecated.
128
126
  test_files:
129
127
  - spec/config/cert_key.pem
130
128
  - spec/config/paypal.yml
@@ -137,6 +135,5 @@ test_files:
137
135
  - spec/core/config_spec.rb
138
136
  - spec/core/logging_spec.rb
139
137
  - spec/core/openid_connect_spec.rb
140
- - spec/log/rest_http.log
141
138
  - spec/spec_helper.rb
142
139
  - spec/support/sample_data.rb
@@ -1,139 +0,0 @@
1
- opening connection to api.sandbox.paypal.com:443...
2
- opened
3
- starting SSL for api.sandbox.paypal.com:443...
4
- SSL established
5
- <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\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
- -> "HTTP/1.1 201 Created\r\n"
8
- -> "Date: Wed, 16 Dec 2015 05:17:11 GMT\r\n"
9
- -> "Server: Apache\r\n"
10
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=489\r\n"
11
- -> "Paypal-Debug-Id: 3d905431e6d9d\r\n"
12
- -> "CORRELATION-ID: 3d905431e6d9d\r\n"
13
- -> "Content-Language: *\r\n"
14
- -> "Content-Length: 1246\r\n"
15
- -> "Paypal-Debug-Id: 3d905431e6d9d\r\n"
16
- -> "Vary: Authorization\r\n"
17
- -> "Content-Type: application/json\r\n"
18
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D3623055446; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
19
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
20
- -> "Connection: close\r\n"
21
- -> "\r\n"
22
- reading 1246 bytes...
23
- -> "{\"id\":\"PAY-3BR14702XM320401FKZYPHWA\",\"create_time\":\"2015-12-16T05:17:12Z\",\"update_time\":\"2015-12-16T05:17:38Z\",\"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\":\"8R957493EU508553G\",\"create_time\":\"2015-12-16T05:17:12Z\",\"update_time\":\"2015-12-16T05:17:39Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3BR14702XM320401FKZYPHWA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8R957493EU508553G\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8R957493EU508553G/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3BR14702XM320401FKZYPHWA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}],\"fmf_details\":{},\"processor_response\":{\"avs_code\":\"X\",\"cvv_code\":\"M\"}}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3BR14702XM320401FKZYPHWA\",\"rel\":\"self\",\"method\":\"GET\"}]}"
24
- read 1246 bytes
25
- Conn close
26
- opening connection to api.sandbox.paypal.com:443...
27
- opened
28
- starting SSL for api.sandbox.paypal.com:443...
29
- SSL established
30
- <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
31
- -> "HTTP/1.1 200 OK\r\n"
32
- -> "Date: Wed, 16 Dec 2015 05:17:39 GMT\r\n"
33
- -> "Server: Apache\r\n"
34
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=273\r\n"
35
- -> "Paypal-Debug-Id: e1aa988baf3e5\r\n"
36
- -> "CORRELATION-ID: e1aa988baf3e5\r\n"
37
- -> "Content-Language: *\r\n"
38
- -> "Paypal-Debug-Id: e1aa988baf3e5\r\n"
39
- -> "Vary: Authorization\r\n"
40
- -> "Content-Type: application/json\r\n"
41
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D4092817494; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
42
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
43
- -> "Connection: close\r\n"
44
- -> "Transfer-Encoding: chunked\r\n"
45
- -> "\r\n"
46
- -> "2000\r\n"
47
- reading 8192 bytes...
48
- -> ""
49
- -> "{\"payments\":[{\"id\":\"PAY-3BR14702XM320401FKZYPHWA\",\"create_time\":\"2015-12-16T05:17:12Z\",\"update_time\":\"2015-12-16T05:17:38Z\",\"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\":\"8R957493EU508553G\",\"create_time\":\"2015-12-16T05:17:12Z\",\"update_time\":\"2015-12-16T05:17:39Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3BR14702XM320401FKZYPHWA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8R957493EU508553G\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8R957493EU508553G/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3BR14702XM320401FKZYPHWA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3BR14702XM320401FKZYPHWA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5LA936852B3250135KZYPFWI\",\"create_time\":\"2015-12-16T05:12:57Z\",\"update_time\":\"2015-12-16T05:12:59Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-18M54763MP752150BKZYPFWA\",\"last4\":\"9934\",\"type\":\"discover\",\"expire_month\":\"12\",\"expire_year\":\"2017\"}}]},\"transactions\":[{\"amount\":{\"total\":\"5.99\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.99\"}},\"description\":\"Payment for the 3-Day Choice Membership Roomates.com subscription.\",\"item_list\":{\"items\":[{\"name\":\"3-Day Choice Membership\",\"price\":\"5.99\",\"currency\":\"USD\",\"quantity\":\"1\"}]},\"related_resources\":[{\"sale\":{\"id\":\"384183904S6934312\",\"create_time\":\"2015-12-16T05:12:57Z\",\"update_time\":\"2015-12-16T05:12:59Z\",\"amount\":{\"total\":\"5.99\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5LA936852B3250135KZYPFWI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/384183904S6934312\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/384183904S6934312/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5LA936852B3250135KZYPFWI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5LA936852B3250135KZYPFWI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1V434120DA301824MKZYO56A\",\"create_time\":\"2015-12-16T04:56:24Z\",\"update_time\":\"2015-12-16T04:56:58Z\",\"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.\",\"related_resources\":[{\"sale\":{\"id\":\"6US26743YM671091G\",\"create_time\":\"2015-12-16T04:56:24Z\",\"update_time\":\"2015-12-16T04:56:58Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"partially_refunded\",\"parent_payment\":\"PAY-1V434120DA301824MKZYO56A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6US26743YM671091G\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6US26743YM671091G/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V434120DA301824MKZYO56A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"9C562444LJ6928114\",\"create_time\":\"2015-12-16T04:56:58Z\",\"update_time\":\"2015-12-16T04:56:58Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-0.01\",\"currency\":\"USD\"},\"sale_id\":\"6US26743YM671091G\",\"parent_payment\":\"PAY-1V434120DA301824MKZYO56A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/9C562444LJ6928114\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V434120DA301824MKZYO56A\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6US26743YM671091G\",\"rel\":\"sale\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1V434120DA301824MKZYO56A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0T800759R7206172RKZYO5VI\",\"create_time\":\"2015-12-16T04:55:49Z\",\"update_time\":\"2015-12-16T04:56:21Z\",\"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.\",\"related_resources\":[{\"sale\":{\"id\":\"8LY54144LM854651L\",\"create_time\":\"2015-12-16T04:55:49Z\",\"update_time\":\"2015-12-16T04:56:21Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-0T800759R7206172RKZYO5VI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8LY54144LM854651L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8LY54144LM854651L/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0T800759R7206172RKZYO5VI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0T800759R7206172RKZYO5VI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-40G33130YW489844YKZYO5JY\",\"create_time\":\"2015-12-16T04:55:03Z\",\"update_time\":\"2015-12-16T04:55:32Z\",\"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\":\"8Y039967CY4154643\",\"create_time\":\"2015-12-16T04:55:03Z\",\"update_time\":\"2015-12-16T04:55:32Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-40G33130YW489844YKZYO5JY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8Y039967CY4154643\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8Y039967CY4154643/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-40G33130YW489844YKZYO5JY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-40G33130YW489844YKZYO5JY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-46F788380X923263SKZYO46I\",\"create_time\":\"2015-12-16T04:54:17Z\",\"update_time\":\"2015-12-16T04:54:45Z\",\"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\":\"5WY02290Y22308121\",\"create_time\":\"2015-12-16T04:54:17Z\",\"update_time\":\"2015-12-16T04:54:45Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-46F788380X923263SKZYO46I\",\"valid_until\":\"2016-01-14T04:54:17Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/5WY02290Y22308121\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-46F788380X923263SKZYO46I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https"
50
- read 8192 bytes
51
- reading 2 bytes...
52
- -> ""
53
- -> "\r\n"
54
- read 2 bytes
55
- -> "1f8a\r\n"
56
- reading 8074 bytes...
57
- -> ""
58
- -> "://api.sandbox.paypal.com/v1/payments/payment/PAY-46F788380X923263SKZYO46I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-37T43059AM5824706KZYO4WA\",\"create_time\":\"2015-12-16T04:53:44Z\",\"update_time\":\"2015-12-16T04:54:11Z\",\"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\":\"8UU86073FB159793H\",\"create_time\":\"2015-12-16T04:53:44Z\",\"update_time\":\"2015-12-16T04:54:11Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-37T43059AM5824706KZYO4WA\",\"valid_until\":\"2016-01-14T04:53:44Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UU86073FB159793H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UU86073FB159793H/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/8UU86073FB159793H/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-37T43059AM5824706KZYO4WA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-37T43059AM5824706KZYO4WA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0M532554AY177341BKZYO4II\",\"create_time\":\"2015-12-16T04:52:49Z\",\"update_time\":\"2015-12-16T04:53:42Z\",\"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\":\"83A44755D5631163G\",\"create_time\":\"2015-12-16T04:52:49Z\",\"update_time\":\"2015-12-16T04:53:17Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-0M532554AY177341BKZYO4II\",\"valid_until\":\"2016-01-14T04:52:49Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/83A44755D5631163G\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0M532554AY177341BKZYO4II\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"2DF55872LU349060W\",\"create_time\":\"2015-12-16T04:53:17Z\",\"update_time\":\"2015-12-16T04:53:42Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"refunded\",\"parent_payment\":\"PAY-0M532554AY177341BKZYO4II\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/2DF55872LU349060W\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0M532554AY177341BKZYO4II\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"38J00235CX8681436\",\"create_time\":\"2015-12-16T04:53:42Z\",\"update_time\":\"2015-12-16T04:53:42Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-1.00\",\"currency\":\"USD\"},\"capture_id\":\"2DF55872LU349060W\",\"parent_payment\":\"PAY-0M532554AY177341BKZYO4II\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/38J00235CX8681436\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0M532554AY177341BKZYO4II\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/2DF55872LU349060W\",\"rel\":\"capture\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0M532554AY177341BKZYO4II\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5EC20525VS6875416KZYO32Y\",\"create_time\":\"2015-12-16T04:51:55Z\",\"update_time\":\"2015-12-16T04:52:46Z\",\"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\":\"2E201949DC6389202\",\"create_time\":\"2015-12-16T04:51:55Z\",\"update_time\":\"2015-12-16T04:52:23Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-5EC20525VS6875416KZYO32Y\",\"valid_until\":\"2016-01-14T04:51:55Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/2E201949DC6389202\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5EC20525VS6875416KZYO32Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"5HT19035E5538300A\",\"create_time\":\"2015-12-16T04:52:23Z\",\"update_time\":\"2015-12-16T04:52:46Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5EC20525VS6875416KZYO32Y\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5HT19035E5538300A\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/5HT19035E5538300A/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5EC20525VS6875416KZYO32Y\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5EC20525VS6875416KZYO32Y\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7F813127RF322291LKZYO3NY\",\"create_time\":\"2015-12-16T04:51:03Z\",\"update_time\":\"2015-12-16T04:51: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\":\"1K737448KB743131X\",\"create_time\":\"2015-12-16T04:51:03Z\",\"update_time\":\"2015-12-16T04:51:31Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-7F813127RF322291LKZYO3NY\",\"valid_until\":\"2016-01-14T04:51:03Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/1K737448KB743131X\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F813127RF322291LKZYO3NY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"9WX05248KF665773K\",\"create_time\":\"2015-12-16T04:51:33Z\",\"update_time\":\"2015-12-16T04:51:54Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-7F813127RF322291LKZYO3NY\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/9WX05248KF665773K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/9WX05248KF665773K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F813127RF322291LKZYO3NY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F813127RF322291LKZYO3NY\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-1M7693089W101783NKZYOBVQ\"}"
59
- read 8074 bytes
60
- reading 2 bytes...
61
- -> ""
62
- -> "\r\n"
63
- read 2 bytes
64
- -> "0\r\n"
65
- -> "\r\n"
66
- Conn close
67
- opening connection to api.sandbox.paypal.com:443...
68
- opened
69
- starting SSL for api.sandbox.paypal.com:443...
70
- SSL established
71
- <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 138\r\n\r\n"
72
- <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
73
- -> "HTTP/1.1 201 Created\r\n"
74
- -> "Date: Wed, 16 Dec 2015 05:17:59 GMT\r\n"
75
- -> "Server: Apache\r\n"
76
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=480\r\n"
77
- -> "Paypal-Debug-Id: bdc025fa7935c\r\n"
78
- -> "Content-Language: *\r\n"
79
- -> "CORRELATION-ID: bdc025fa7935c\r\n"
80
- -> "Content-Length: 667\r\n"
81
- -> "Paypal-Debug-Id: bdc025fa7935c\r\n"
82
- -> "Vary: Authorization\r\n"
83
- -> "Content-Type: application/json\r\n"
84
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D133460054; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
85
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
86
- -> "Connection: close\r\n"
87
- -> "\r\n"
88
- reading 667 bytes...
89
- -> "{\"id\":\"CARD-8UP568271R0704620KZYPIBY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-12-15T00:00:00Z\",\"create_time\":\"2015-12-16T05:17:59Z\",\"update_time\":\"2015-12-16T05:17:59Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
90
- read 667 bytes
91
- Conn close
92
- opening connection to api.sandbox.paypal.com:443...
93
- opened
94
- starting SSL for api.sandbox.paypal.com:443...
95
- SSL established
96
- <- "GET /v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
97
- -> "HTTP/1.1 200 OK\r\n"
98
- -> "Date: Wed, 16 Dec 2015 05:18:00 GMT\r\n"
99
- -> "Server: Apache\r\n"
100
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=437\r\n"
101
- -> "Paypal-Debug-Id: 446ed10131d9a\r\n"
102
- -> "Content-Language: *\r\n"
103
- -> "CORRELATION-ID: 446ed10131d9a\r\n"
104
- -> "Content-Length: 667\r\n"
105
- -> "Paypal-Debug-Id: 446ed10131d9a\r\n"
106
- -> "Vary: Authorization\r\n"
107
- -> "Content-Type: application/json\r\n"
108
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D150237270; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
109
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
110
- -> "Connection: close\r\n"
111
- -> "\r\n"
112
- reading 667 bytes...
113
- -> "{\"id\":\"CARD-8UP568271R0704620KZYPIBY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-12-15T00:00:00Z\",\"create_time\":\"2015-12-16T05:17:59Z\",\"update_time\":\"2015-12-16T05:17:59Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8UP568271R0704620KZYPIBY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
114
- read 667 bytes
115
- Conn close
116
- opening connection to api.sandbox.paypal.com:443...
117
- opened
118
- starting SSL for api.sandbox.paypal.com:443...
119
- SSL established
120
- <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.dDr0S4ZcVqvAlLwRLEg3Fio_DK0B4VofvsrXFGdobvgigBYcyi0TM9MU_5Rhto-_.J1cpIT2ahyzRCyek6Mo1uMXPWBe\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.4 (paypal-sdk-core 0.3.4; ruby 2.2.3p173-x86_64-darwin14)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
121
- -> "HTTP/1.1 404 Not Found\r\n"
122
- -> "Date: Wed, 16 Dec 2015 05:18:00 GMT\r\n"
123
- -> "Server: Apache\r\n"
124
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=338\r\n"
125
- -> "Paypal-Debug-Id: 4ae8bd1ad1020\r\n"
126
- -> "CORRELATION-ID: 4ae8bd1ad1020\r\n"
127
- -> "Content-Language: *\r\n"
128
- -> "Content-Length: 207\r\n"
129
- -> "Paypal-Debug-Id: 4ae8bd1ad1020\r\n"
130
- -> "Vary: Authorization\r\n"
131
- -> "Content-Type: application/json\r\n"
132
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D150237270; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
133
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
134
- -> "Connection: close\r\n"
135
- -> "\r\n"
136
- reading 207 bytes...
137
- -> "{\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"The requested resource ID was not found\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#INVALID_RESOURCE_ID\",\"debug_id\":\"4ae8bd1ad1020\"}"
138
- read 207 bytes
139
- Conn close