paypal-sdk-core 0.3.3 → 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: 99eb338ac63000fc053b7aecc1d1de4fd5e46b05
4
- data.tar.gz: 1d73f12aad0ea5851711a3a1f718baabe501da2b
2
+ SHA256:
3
+ metadata.gz: 1511153f36ab19e107b522287ccf36aa4fdd85a17e23ef75feb92ff3f9e2219e
4
+ data.tar.gz: fa4d3105aed821c58486edc7b560c79d8fc282c37cb63d2e2c8faa4a6fa93f95
5
5
  SHA512:
6
- metadata.gz: 47f8efcf55b2cf2051a65995ab93880704320bed06f59d1db13d99781c335926c3695465397e9c264c5e0bf801631375113fb3d48dbef7df2b866ae7654749c3
7
- data.tar.gz: 013fa1a7f31589adabefafcef0b4b00209f1dbf5ea8da4836ecd7bd0306b2c210498578fa6ba342f7201f0fb1fa43c7cacb128c631c30e4d7c3343f60be1ed72
6
+ metadata.gz: 7143633ab9c9d1330691085c5c5c4a79bdfc52d4e143c6965612a5a669dcd06e1c06139749863bc9ad5669d4d050d34712d7f4aa34d4bcfeb7be47aa36cb5038
7
+ data.tar.gz: 9970242fb9a973433a1fb4dfa2fdd34a276e8c498a5a727fc3463574bcf161e65ec467e3c7ddba5732871072beeaa974dd73ae701436b9e4b9b3f6c04c605adb
data/CHANGELOG.txt CHANGED
@@ -1,3 +1,8 @@
1
+ Version 0.3.4
2
+ - Fix test cases
3
+ - Update travis CI configuration
4
+ - Updated TLS 1.2 warning message
5
+
1
6
  Version 0.3.3
2
7
  - Add TLS 1.2 support
3
8
 
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.
@@ -13,7 +13,8 @@ module PayPal::SDK::Core
13
13
 
14
14
  DEFAULT_REST_END_POINTS = {
15
15
  :sandbox => "https://api.sandbox.paypal.com",
16
- :live => "https://api.paypal.com"
16
+ :live => "https://api.paypal.com",
17
+ :tls_test => "https://test-api.sandbox.paypal.com"
17
18
  }
18
19
  TOKEN_REQUEST_PARAMS = "grant_type=client_credentials"
19
20
 
@@ -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
 
@@ -46,7 +46,7 @@ module PayPal::SDK::Core
46
46
  begin
47
47
  https.ssl_version = :TLSv1_2
48
48
  rescue => error
49
- logger.warn("WARNING: TLSv1.2 is not supported. Your connection may not be secure. You MUST update to the latest security library")
49
+ logger.warn("WARNING: Your system does not support TLSv1.2. Per PCI Security Council mandate (https://github.com/paypal/TLS-update), you MUST update to latest security library.")
50
50
  end
51
51
  config.ssl_options.each do |key, value|
52
52
  http.send("#{key}=", value)
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Core
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@ test: &default
3
3
  password: WX4WTU3S8MY44S7F
4
4
  signature: AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy
5
5
  app_id: APP-80W284485P519543T
6
- http_timeout: 30
6
+ http_timeout: 120
7
7
  mode: sandbox
8
8
  sandbox_email_address: Platform.sdk.seller@gmail.com
9
9
 
@@ -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
@@ -139,7 +138,7 @@ describe PayPal::SDK::Core::API::REST do
139
138
  }.should raise_error PayPal::SDK::Core::Exceptions::ResourceNotFound
140
139
  end
141
140
 
142
- it "Invalid parameters" do
141
+ xit "Invalid parameters" do
143
142
  response = @api.post("payment")
144
143
  response["error"]["name"].should eql "VALIDATION_ERROR"
145
144
  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.3
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-15 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,147 +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.hId1qE8T-o5Ivl1NFLN8Qw9KuOiP24j_tAZtSQFaYgG237PFlAQriLQmTT-lpWAq.rMWnOADJN5X18frvWy_F_2ikOvy\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.3 (paypal-sdk-core 0.3.3; 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
- Conn close because of error Net::ReadTimeout
8
- Conn close because of error Net::ReadTimeout
9
- opening connection to api.sandbox.paypal.com:443...
10
- opened
11
- starting SSL for api.sandbox.paypal.com:443...
12
- SSL established
13
- <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.hId1qE8T-o5Ivl1NFLN8Qw9KuOiP24j_tAZtSQFaYgG237PFlAQriLQmTT-lpWAq.rMWnOADJN5X18frvWy_F_2ikOvy\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.3 (paypal-sdk-core 0.3.3; 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"
14
- -> "HTTP/1.1 200 OK\r\n"
15
- -> "Date: Tue, 15 Dec 2015 14:57:55 GMT\r\n"
16
- -> "Server: Apache\r\n"
17
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=515\r\n"
18
- -> "Paypal-Debug-Id: bed4d1e29104a\r\n"
19
- -> "CORRELATION-ID: bed4d1e29104a\r\n"
20
- -> "Content-Language: *\r\n"
21
- -> "Paypal-Debug-Id: bed4d1e29104a\r\n"
22
- -> "Vary: Authorization\r\n"
23
- -> "Content-Type: application/json\r\n"
24
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1932161110; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
25
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
26
- -> "Connection: close\r\n"
27
- -> "Transfer-Encoding: chunked\r\n"
28
- -> "\r\n"
29
- -> "2000\r\n"
30
- reading 8192 bytes...
31
- -> ""
32
- -> "{\"payments\":[{\"id\":\"PAY-0YG846993M2456041KZYCUGQ\",\"create_time\":\"2015-12-15T14:56:26Z\",\"update_time\":\"2015-12-15T14:57:02Z\",\"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\":\"487294476F540202M\",\"create_time\":\"2015-12-15T14:56:26Z\",\"update_time\":\"2015-12-15T14:57:02Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"partially_refunded\",\"parent_payment\":\"PAY-0YG846993M2456041KZYCUGQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/487294476F540202M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/487294476F540202M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0YG846993M2456041KZYCUGQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"4K29957333047035F\",\"create_time\":\"2015-12-15T14:57:02Z\",\"update_time\":\"2015-12-15T14:57:02Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-0.01\",\"currency\":\"USD\"},\"sale_id\":\"487294476F540202M\",\"parent_payment\":\"PAY-0YG846993M2456041KZYCUGQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/4K29957333047035F\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0YG846993M2456041KZYCUGQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/487294476F540202M\",\"rel\":\"sale\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0YG846993M2456041KZYCUGQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-45G575143J484974MKZYCT6A\",\"create_time\":\"2015-12-15T14:55:52Z\",\"update_time\":\"2015-12-15T14:56:24Z\",\"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\":\"2YS17094AC812235C\",\"create_time\":\"2015-12-15T14:55:52Z\",\"update_time\":\"2015-12-15T14:56:24Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-45G575143J484974MKZYCT6A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2YS17094AC812235C\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2YS17094AC812235C/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-45G575143J484974MKZYCT6A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-45G575143J484974MKZYCT6A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-869263617V809840GKZYCTSA\",\"create_time\":\"2015-12-15T14:55:04Z\",\"update_time\":\"2015-12-15T14:55:34Z\",\"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\":\"7HR4440354428890D\",\"create_time\":\"2015-12-15T14:55:04Z\",\"update_time\":\"2015-12-15T14:55:34Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-869263617V809840GKZYCTSA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7HR4440354428890D\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7HR4440354428890D/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-869263617V809840GKZYCTSA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-869263617V809840GKZYCTSA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0UD45141PN835482HKZYCTGQ\",\"create_time\":\"2015-12-15T14:54:18Z\",\"update_time\":\"2015-12-15T14:54:47Z\",\"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\":\"0FJ55850E5285564K\",\"create_time\":\"2015-12-15T14:54:18Z\",\"update_time\":\"2015-12-15T14:54:47Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-0UD45141PN835482HKZYCTGQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0FJ55850E5285564K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0FJ55850E5285564K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0UD45141PN835482HKZYCTGQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0UD45141PN835482HKZYCTGQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-05X50299H81849343KZYCTGI\",\"create_time\":\"2015-12-15T14:54:17Z\",\"update_time\":\"2015-12-15T14:54:48Z\",\"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\":\"9BB03829M71038631\",\"create_time\":\"2015-12-15T14:54:17Z\",\"update_time\":\"2015-12-15T14:54:48Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"voided\",\"parent_payment\":\"PAY-05X50299H81849343KZYCTGI\",\"valid_until\":\"2016-01-13T14:54:17Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/9BB03829M71038631\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-05X50299H81849343KZYCTGI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-05X50299H81849343KZYCTGI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-22G228176H347352PKZYCS6A\",\"create_time\":\"2015-12-15T14:53:44Z\",\"update_time\":\"2015-12-15T14:54:14Z\",\"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\":\"0NJ773576D4424437\",\"create_time\":\"2015-12-15T14:53:44Z\",\"update_time\":\"2015-12-15T14:54:14Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-22G228176H347352PKZYCS6A\",\"valid_until\":\"2016-01-13T14:53:44Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0NJ773576D4424437\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0NJ773576D4424437/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0NJ773576D4424437/void\""
33
- read 8192 bytes
34
- reading 2 bytes...
35
- -> ""
36
- -> "\r\n"
37
- read 2 bytes
38
- -> "1ec8\r\n"
39
- reading 7880 bytes...
40
- -> ""
41
- -> ",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-22G228176H347352PKZYCS6A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-22G228176H347352PKZYCS6A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-70F215881T658763SKZYCSPY\",\"create_time\":\"2015-12-15T14:52:47Z\",\"update_time\":\"2015-12-15T14: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\":\"47420057GJ5251725\",\"create_time\":\"2015-12-15T14:52:47Z\",\"update_time\":\"2015-12-15T14:53:17Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-70F215881T658763SKZYCSPY\",\"valid_until\":\"2016-01-13T14:52:47Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/47420057GJ5251725\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-70F215881T658763SKZYCSPY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"339584665K808471T\",\"create_time\":\"2015-12-15T14:53:18Z\",\"update_time\":\"2015-12-15T14:53:42Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"refunded\",\"parent_payment\":\"PAY-70F215881T658763SKZYCSPY\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/339584665K808471T\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-70F215881T658763SKZYCSPY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"0XG95807KG731332X\",\"create_time\":\"2015-12-15T14:53:42Z\",\"update_time\":\"2015-12-15T14:53:42Z\",\"state\":\"completed\",\"amount\":{\"total\":\"-1.00\",\"currency\":\"USD\"},\"capture_id\":\"339584665K808471T\",\"parent_payment\":\"PAY-70F215881T658763SKZYCSPY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/0XG95807KG731332X\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-70F215881T658763SKZYCSPY\",\"rel\":\"parent_payment\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/339584665K808471T\",\"rel\":\"capture\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-70F215881T658763SKZYCSPY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-33B78201NX7616832KZYCSCI\",\"create_time\":\"2015-12-15T14:51:53Z\",\"update_time\":\"2015-12-15T14:52: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\":\"2WS58748DR592904V\",\"create_time\":\"2015-12-15T14:51:53Z\",\"update_time\":\"2015-12-15T14:52:23Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-33B78201NX7616832KZYCSCI\",\"valid_until\":\"2016-01-13T14:51:53Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/2WS58748DR592904V\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-33B78201NX7616832KZYCSCI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"70R08006VT4434428\",\"create_time\":\"2015-12-15T14:52:23Z\",\"update_time\":\"2015-12-15T14:52:45Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-33B78201NX7616832KZYCSCI\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/70R08006VT4434428\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/70R08006VT4434428/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-33B78201NX7616832KZYCSCI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-33B78201NX7616832KZYCSCI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-25P81941CN7067306KZYCR6A\",\"create_time\":\"2015-12-15T14:51:36Z\",\"update_time\":\"2015-12-15T14:52:06Z\",\"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\":\"8N029539L6347231K\",\"create_time\":\"2015-12-15T14:51:36Z\",\"update_time\":\"2015-12-15T14:52:06Z\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-25P81941CN7067306KZYCR6A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8N029539L6347231K\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/8N029539L6347231K/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-25P81941CN7067306KZYCR6A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-25P81941CN7067306KZYCR6A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3EL13428VN703543MKZYCRVA\",\"create_time\":\"2015-12-15T14:51:00Z\",\"update_time\":\"2015-12-15T14:51:51Z\",\"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\":\"9HP84416W7628433Y\",\"create_time\":\"2015-12-15T14:51:00Z\",\"update_time\":\"2015-12-15T14:51:28Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"state\":\"captured\",\"parent_payment\":\"PAY-3EL13428VN703543MKZYCRVA\",\"valid_until\":\"2016-01-13T14:51:00Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/9HP84416W7628433Y\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3EL13428VN703543MKZYCRVA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"capture\":{\"id\":\"9XB76681DE454232U\",\"create_time\":\"2015-12-15T14:51:30Z\",\"update_time\":\"2015-12-15T14:51:51Z\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-3EL13428VN703543MKZYCRVA\",\"transaction_fee\":{\"value\":\"0.33\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/9XB76681DE454232U\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/capture/9XB76681DE454232U/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3EL13428VN703543MKZYCRVA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3EL13428VN703543MKZYCRVA\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-2RN60472F51335949KZYCQQQ\"}"
42
- read 7880 bytes
43
- reading 2 bytes...
44
- -> ""
45
- -> "\r\n"
46
- read 2 bytes
47
- -> "0\r\n"
48
- -> "\r\n"
49
- Conn close
50
- opening connection to api.sandbox.paypal.com:443...
51
- opened
52
- starting SSL for api.sandbox.paypal.com:443...
53
- SSL established
54
- <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.hId1qE8T-o5Ivl1NFLN8Qw9KuOiP24j_tAZtSQFaYgG237PFlAQriLQmTT-lpWAq.rMWnOADJN5X18frvWy_F_2ikOvy\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.3 (paypal-sdk-core 0.3.3; 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"
55
- <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
56
- -> "HTTP/1.1 201 Created\r\n"
57
- -> "Date: Tue, 15 Dec 2015 14:58:16 GMT\r\n"
58
- -> "Server: Apache\r\n"
59
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=326\r\n"
60
- -> "Paypal-Debug-Id: d19defb575400\r\n"
61
- -> "Content-Language: *\r\n"
62
- -> "CORRELATION-ID: d19defb575400\r\n"
63
- -> "Content-Length: 667\r\n"
64
- -> "Paypal-Debug-Id: d19defb575400\r\n"
65
- -> "Vary: Authorization\r\n"
66
- -> "Content-Type: application/json\r\n"
67
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2284482646; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
68
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
69
- -> "Connection: close\r\n"
70
- -> "\r\n"
71
- reading 667 bytes...
72
- -> "{\"id\":\"CARD-6DT64604VF629130XKZYCVCA\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-12-14T00:00:00Z\",\"create_time\":\"2015-12-15T14:58:16Z\",\"update_time\":\"2015-12-15T14:58:16Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6DT64604VF629130XKZYCVCA\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6DT64604VF629130XKZYCVCA\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6DT64604VF629130XKZYCVCA\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
73
- read 667 bytes
74
- Conn close
75
- opening connection to api.sandbox.paypal.com:443...
76
- opened
77
- starting SSL for api.sandbox.paypal.com:443...
78
- SSL established
79
- <- "GET /v1/vault/credit-card/CARD-6DT64604VF629130XKZYCVCA HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.hId1qE8T-o5Ivl1NFLN8Qw9KuOiP24j_tAZtSQFaYgG237PFlAQriLQmTT-lpWAq.rMWnOADJN5X18frvWy_F_2ikOvy\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.3 (paypal-sdk-core 0.3.3; 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"
80
- -> "HTTP/1.1 200 OK\r\n"
81
- -> "Date: Tue, 15 Dec 2015 14:58:17 GMT\r\n"
82
- -> "Server: Apache\r\n"
83
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=448\r\n"
84
- -> "Paypal-Debug-Id: e1c43371f66b\r\n"
85
- -> "Content-Language: *\r\n"
86
- -> "CORRELATION-ID: e1c43371f66b\r\n"
87
- -> "Content-Length: 667\r\n"
88
- -> "Paypal-Debug-Id: e1c43371f66b\r\n"
89
- -> "Vary: Authorization\r\n"
90
- -> "Content-Type: application/json\r\n"
91
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2301259862; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
92
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
93
- -> "Connection: close\r\n"
94
- -> "\r\n"
95
- reading 667 bytes...
96
- -> "{\"id\":\"CARD-6DT64604VF629130XKZYCVCA\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-12-14T00:00:00Z\",\"create_time\":\"2015-12-15T14:58:16Z\",\"update_time\":\"2015-12-15T14:58:16Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6DT64604VF629130XKZYCVCA\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6DT64604VF629130XKZYCVCA\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6DT64604VF629130XKZYCVCA\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
97
- read 667 bytes
98
- Conn close
99
- opening connection to api.sandbox.paypal.com:443...
100
- opened
101
- starting SSL for api.sandbox.paypal.com:443...
102
- 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 A101.hId1qE8T-o5Ivl1NFLN8Qw9KuOiP24j_tAZtSQFaYgG237PFlAQriLQmTT-lpWAq.rMWnOADJN5X18frvWy_F_2ikOvy\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.3 (paypal-sdk-core 0.3.3; 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"
104
- -> "HTTP/1.1 404 Not Found\r\n"
105
- -> "Date: Tue, 15 Dec 2015 14:58:17 GMT\r\n"
106
- -> "Server: Apache\r\n"
107
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=526\r\n"
108
- -> "Paypal-Debug-Id: d51b733d9d516\r\n"
109
- -> "CORRELATION-ID: d51b733d9d516\r\n"
110
- -> "Content-Language: *\r\n"
111
- -> "Content-Length: 207\r\n"
112
- -> "Paypal-Debug-Id: d51b733d9d516\r\n"
113
- -> "Vary: Authorization\r\n"
114
- -> "Content-Type: application/json\r\n"
115
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2301259862; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
116
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
117
- -> "Connection: close\r\n"
118
- -> "\r\n"
119
- reading 207 bytes...
120
- -> "{\"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\":\"d51b733d9d516\"}"
121
- read 207 bytes
122
- Conn close
123
- opening connection to api.sandbox.paypal.com:443...
124
- opened
125
- starting SSL for api.sandbox.paypal.com:443...
126
- SSL established
127
- <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A101.hId1qE8T-o5Ivl1NFLN8Qw9KuOiP24j_tAZtSQFaYgG237PFlAQriLQmTT-lpWAq.rMWnOADJN5X18frvWy_F_2ikOvy\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.3.3 (paypal-sdk-core 0.3.3; 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: 2\r\n\r\n"
128
- <- "{}"
129
- -> "HTTP/1.1 500 Internal Server Error\r\n"
130
- -> "Date: Tue, 15 Dec 2015 14:58:18 GMT\r\n"
131
- -> "Server: Apache\r\n"
132
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=416\r\n"
133
- -> "Paypal-Debug-Id: a59221e33fb83\r\n"
134
- -> "CORRELATION-ID: a59221e33fb83\r\n"
135
- -> "Content-Language: *\r\n"
136
- -> "Content-Length: 212\r\n"
137
- -> "Paypal-Debug-Id: a59221e33fb83\r\n"
138
- -> "Vary: Authorization\r\n"
139
- -> "Content-Type: application/json\r\n"
140
- -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2318037078; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
141
- -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
142
- -> "Connection: close\r\n"
143
- -> "\r\n"
144
- reading 212 bytes...
145
- -> "{\"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\":\"a59221e33fb83\"}"
146
- read 212 bytes
147
- Conn close