paypal-sdk-rest 1.2.1 → 1.2.2

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
2
  SHA1:
3
- metadata.gz: 9eae5ffc61d34b58e5ebf8dd292e10b41bf8a0d4
4
- data.tar.gz: b9c144027cde5ef9653916733a3b41deaff5271c
3
+ metadata.gz: 372cce56f9c8f39f981163f3c9bb7226f8ee7981
4
+ data.tar.gz: dd24faf28703594ac0d39d07026223a427c3474f
5
5
  SHA512:
6
- metadata.gz: 6dc05fba44917155e950ffdf1399d49d416d5141e80ccfdefe8a185b69065836764d320be68c6917a712aa42b6654d1ce850d0413f69063c2a2b42cb8e904b3a
7
- data.tar.gz: c918da2cd9c69ff6bd60fe5427eb77842638d4ffc07941d807f880a0bbba0bd4b1b2a1ae35d7301d705b636eed04472099a016d6b66f1bef9d5c12a488bb4051
6
+ metadata.gz: 33d095832416300c578b28e6ce58cf9f3c3c6a0f453888bc3709b5f2e8b7057794f0092441d1d5eb4c4d24236c08544e58f4aa7a54074d1bb6411280c945cce0
7
+ data.tar.gz: 8ff319e99d3990957b7eac12ee133bfcf354d749c03168b6bd3cccb7625b932f6a419a54a46a730d959fb4928c82be6fa0d6eebba0adcb3b7c9de6f197e859da
@@ -162,7 +162,7 @@ module PayPal::SDK
162
162
  include RequestDataType
163
163
 
164
164
  def create()
165
- path = "v1/vault/credit-card"
165
+ path = "v1/vault/credit-cards"
166
166
  response = api.post(path, self.to_hash, http_header)
167
167
  self.merge!(response)
168
168
  success?
@@ -171,20 +171,20 @@ module PayPal::SDK
171
171
  class << self
172
172
  def find(resource_id)
173
173
  raise ArgumentError.new("id required") if resource_id.to_s.strip.empty?
174
- path = "v1/vault/credit-card/#{resource_id}"
174
+ path = "v1/vault/credit-cards/#{resource_id}"
175
175
  self.new(api.get(path))
176
176
  end
177
177
  end
178
178
 
179
179
  def delete()
180
- path = "v1/vault/credit-card/#{self.id}"
180
+ path = "v1/vault/credit-cards/#{self.id}"
181
181
  response = api.delete(path, {})
182
182
  self.merge!(response)
183
183
  success?
184
184
  end
185
185
 
186
186
  def update()
187
- path = "v1/vault/credit-card/#{self.id}"
187
+ path = "v1/vault/credit-cards/#{self.id}"
188
188
  response = api.patch(path, self.to_hash, http_header)
189
189
  self.merge!(response)
190
190
  success?
@@ -690,8 +690,8 @@ module PayPal::SDK
690
690
  object_of :state, String
691
691
  object_of :reason_code, String
692
692
  object_of :pending_reason, String
693
- object_of :"protection-eligibility", String
694
- object_of :"protection-eligibility_type", String
693
+ object_of :protection_eligibility, String
694
+ object_of :protection_eligibility_type, String
695
695
  object_of :parent_payment, String
696
696
  object_of :fmf_details, FmfDetails
697
697
  object_of :create_time, String
@@ -889,7 +889,7 @@ module PayPal::SDK
889
889
 
890
890
  class CreditCardList < Base
891
891
  def self.load_members
892
- array_of :"credit-cards", CreditCard
892
+ array_of :credit_cards, CreditCard
893
893
  object_of :count, Integer
894
894
  object_of :next_id, String
895
895
  end
@@ -897,7 +897,7 @@ module PayPal::SDK
897
897
 
898
898
  class BankAccountsList < Base
899
899
  def self.load_members
900
- array_of :"bank-accounts", BankAccount
900
+ array_of :bank_accounts, BankAccount
901
901
  object_of :count, Integer
902
902
  object_of :next_id, String
903
903
  end
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module REST
4
- VERSION = "1.2.1"
4
+ VERSION = "1.2.2"
5
5
  end
6
6
  end
7
7
  end
data/spec/log/http.log CHANGED
@@ -0,0 +1,513 @@
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 A015HHkSlZUmJlc4CzvCpL5xjeqPY-KteqkQLrnWoUy7AaY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 6a34969e-003d-4f69-a7b8-b03cff0bbc0d\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: 473\r\n\r\n"
6
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
7
+ -> "HTTP/1.1 503 Service Unavailable\r\n"
8
+ -> "Date: Wed, 17 Jun 2015 20:09:11 GMT\r\n"
9
+ -> "Server: Apache\r\n"
10
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=205618\r\n"
11
+ -> "Paypal-Debug-Id: cc3c3ae9bd7e2\r\n"
12
+ -> "Connection: close\r\n"
13
+ -> "Content-Length: 145\r\n"
14
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D3889398101; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
15
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
16
+ -> "Vary: Authorization\r\n"
17
+ -> "Content-Type: application/json\r\n"
18
+ -> "\r\n"
19
+ reading 145 bytes...
20
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"information_link\":\"https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"cc3c3ae9bd7e2\"}"
21
+ read 145 bytes
22
+ Conn close
23
+ opening connection to api.sandbox.paypal.com:443...
24
+ opened
25
+ starting SSL for api.sandbox.paypal.com:443...
26
+ SSL established
27
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015HHkSlZUmJlc4CzvCpL5xjeqPY-KteqkQLrnWoUy7AaY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: de1e1d88-0425-4dbc-b3e9-3784d5e7f279\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: 473\r\n\r\n"
28
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
29
+ -> "HTTP/1.1 503 Service Unavailable\r\n"
30
+ -> "Date: Wed, 17 Jun 2015 20:09:41 GMT\r\n"
31
+ -> "Server: Apache\r\n"
32
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=1343\r\n"
33
+ -> "Paypal-Debug-Id: bfefcb49c5fc9\r\n"
34
+ -> "Connection: close\r\n"
35
+ -> "Content-Length: 145\r\n"
36
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D97812821; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
37
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
38
+ -> "Vary: Authorization\r\n"
39
+ -> "Content-Type: application/json\r\n"
40
+ -> "\r\n"
41
+ reading 145 bytes...
42
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"information_link\":\"https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"bfefcb49c5fc9\"}"
43
+ read 145 bytes
44
+ Conn close
45
+ opening connection to api.sandbox.paypal.com:443...
46
+ opened
47
+ starting SSL for api.sandbox.paypal.com:443...
48
+ SSL established
49
+ <- "GET /v1/payments/payment?count=5 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015HHkSlZUmJlc4CzvCpL5xjeqPY-KteqkQLrnWoUy7AaY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
50
+ -> "HTTP/1.1 200 OK\r\n"
51
+ -> "Date: Wed, 17 Jun 2015 20:11:17 GMT\r\n"
52
+ -> "Server: Apache\r\n"
53
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=143924\r\n"
54
+ -> "Paypal-Debug-Id: 8d142c0adc73a\r\n"
55
+ -> "Content-Language: *\r\n"
56
+ -> "Content-Length: 7531\r\n"
57
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1708425557; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
58
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
59
+ -> "Vary: Authorization\r\n"
60
+ -> "Connection: close\r\n"
61
+ -> "Content-Type: application/json\r\n"
62
+ -> "\r\n"
63
+ reading 7531 bytes...
64
+ -> "{\"payments\":[{\"id\":\"PAY-1L064882YM848125EKWA2KNY\",\"create_time\":\"2015-06-17T16:49:59Z\",\"update_time\":\"2015-06-17T16:50:01Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581a536538b2\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"84X3439975017913M\",\"create_time\":\"2015-06-17T16:49:59Z\",\"update_time\":\"2015-06-17T16:50:01Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-1L064882YM848125EKWA2KNY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84X3439975017913M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84X3439975017913M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1L064882YM848125EKWA2KNY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1L064882YM848125EKWA2KNY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5P879024BL580121AKWA2KLY\",\"create_time\":\"2015-06-17T16:49:51Z\",\"update_time\":\"2015-06-17T16:49:52Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581a52e66f48\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"7139905619919533H\",\"create_time\":\"2015-06-17T16:49:51Z\",\"update_time\":\"2015-06-17T16:49:53Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5P879024BL580121AKWA2KLY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7139905619919533H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7139905619919533H/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5P879024BL580121AKWA2KLY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5P879024BL580121AKWA2KLY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-71588288N5609270KKWA2KDQ\",\"create_time\":\"2015-06-17T16:49:18Z\",\"update_time\":\"2015-06-17T16:49:20Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581a50dc0772\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"11L23280EN666033H\",\"create_time\":\"2015-06-17T16:49:18Z\",\"update_time\":\"2015-06-17T16:49:20Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-71588288N5609270KKWA2KDQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/11L23280EN666033H\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/11L23280EN666033H/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-71588288N5609270KKWA2KDQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-71588288N5609270KKWA2KDQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5JV234464B4587748KWA2KCY\",\"create_time\":\"2015-06-17T16:49:15Z\",\"update_time\":\"2015-06-17T16:49:19Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx7004\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"12.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"12.00\"}},\"description\":\"creating a payment with saved credit card\",\"related_resources\":[{\"sale\":{\"id\":\"0BM42811PC1943402\",\"create_time\":\"2015-06-17T16:49:15Z\",\"update_time\":\"2015-06-17T16:49:19Z\",\"amount\":{\"total\":\"12.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-5JV234464B4587748KWA2KCY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0BM42811PC1943402\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0BM42811PC1943402/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5JV234464B4587748KWA2KCY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5JV234464B4587748KWA2KCY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-8A782675LK9634848KWA2KAQ\",\"create_time\":\"2015-06-17T16:49:06Z\",\"update_time\":\"2015-06-17T16:49:08Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581a50190151\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"26C6249590321562V\",\"create_time\":\"2015-06-17T16:49:06Z\",\"update_time\":\"2015-06-17T16:49:08Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-8A782675LK9634848KWA2KAQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/26C6249590321562V\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/26C6249590321562V/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8A782675LK9634848KWA2KAQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-8A782675LK9634848KWA2KAQ\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":5,\"next_id\":\"PAY-9CN47781W2102693AKWA2J2Y\"}"
65
+ read 7531 bytes
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
+ <- "GET /v1/payments/payment?count=1 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015HHkSlZUmJlc4CzvCpL5xjeqPY-KteqkQLrnWoUy7AaY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
72
+ -> "HTTP/1.1 200 OK\r\n"
73
+ -> "Date: Wed, 17 Jun 2015 20:11:22 GMT\r\n"
74
+ -> "Server: Apache\r\n"
75
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=236\r\n"
76
+ -> "Paypal-Debug-Id: aa10c6b7dad5c\r\n"
77
+ -> "Content-Language: *\r\n"
78
+ -> "Content-Length: 1622\r\n"
79
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1792311637; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
80
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
81
+ -> "Vary: Authorization\r\n"
82
+ -> "Connection: close\r\n"
83
+ -> "Content-Type: application/json\r\n"
84
+ -> "\r\n"
85
+ reading 1622 bytes...
86
+ -> "{\"payments\":[{\"id\":\"PAY-1L064882YM848125EKWA2KNY\",\"create_time\":\"2015-06-17T16:49:59Z\",\"update_time\":\"2015-06-17T16:50:01Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581a536538b2\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"84X3439975017913M\",\"create_time\":\"2015-06-17T16:49:59Z\",\"update_time\":\"2015-06-17T16:50:01Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-1L064882YM848125EKWA2KNY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84X3439975017913M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84X3439975017913M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1L064882YM848125EKWA2KNY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1L064882YM848125EKWA2KNY\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":1,\"next_id\":\"PAY-5P879024BL580121AKWA2KLY\"}"
87
+ read 1622 bytes
88
+ Conn close
89
+ opening connection to api.sandbox.paypal.com:443...
90
+ opened
91
+ starting SSL for api.sandbox.paypal.com:443...
92
+ SSL established
93
+ <- "GET /v1/payments/payment/PAY-1L064882YM848125EKWA2KNY HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015HHkSlZUmJlc4CzvCpL5xjeqPY-KteqkQLrnWoUy7AaY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
94
+ -> "HTTP/1.1 200 OK\r\n"
95
+ -> "Date: Wed, 17 Jun 2015 20:11:26 GMT\r\n"
96
+ -> "Server: Apache\r\n"
97
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=45759\r\n"
98
+ -> "Paypal-Debug-Id: 4ed852f5da53f\r\n"
99
+ -> "Content-Language: *\r\n"
100
+ -> "Content-Length: 1556\r\n"
101
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1859420501; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
102
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
103
+ -> "Vary: Authorization\r\n"
104
+ -> "Connection: close\r\n"
105
+ -> "Content-Type: application/json\r\n"
106
+ -> "\r\n"
107
+ reading 1556 bytes...
108
+ -> "{\"id\":\"PAY-1L064882YM848125EKWA2KNY\",\"create_time\":\"2015-06-17T16:49:59Z\",\"update_time\":\"2015-06-17T16:50:01Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581a536538b2\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"84X3439975017913M\",\"create_time\":\"2015-06-17T16:49:59Z\",\"update_time\":\"2015-06-17T16:50:01Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-1L064882YM848125EKWA2KNY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84X3439975017913M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84X3439975017913M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1L064882YM848125EKWA2KNY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1L064882YM848125EKWA2KNY\",\"rel\":\"self\",\"method\":\"GET\"}]}"
109
+ read 1556 bytes
110
+ Conn close
111
+ opening connection to api.sandbox.paypal.com:443...
112
+ opened
113
+ starting SSL for api.sandbox.paypal.com:443...
114
+ SSL established
115
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015HHkSlZUmJlc4CzvCpL5xjeqPY-KteqkQLrnWoUy7AaY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: de7dec6c-fd77-459d-9a23-c412f995adc2\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"
116
+ <- "{}"
117
+ -> "HTTP/1.1 400 Bad Request\r\n"
118
+ -> "Date: Wed, 17 Jun 2015 20:11:27 GMT\r\n"
119
+ -> "Server: Apache\r\n"
120
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=204826\r\n"
121
+ -> "Paypal-Debug-Id: fffd0333dbfd5\r\n"
122
+ -> "Content-Language: *\r\n"
123
+ -> "Connection: close\r\n"
124
+ -> "Connection: close\r\n"
125
+ -> "Content-Length: 306\r\n"
126
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1876197717; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
127
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
128
+ -> "Vary: Authorization\r\n"
129
+ -> "Content-Type: application/json\r\n"
130
+ -> "\r\n"
131
+ reading 306 bytes...
132
+ -> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"intent\",\"issue\":\"Required field missing\"},{\"field\":\"payer\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"fffd0333dbfd5\"}"
133
+ read 306 bytes
134
+ Conn close
135
+ opening connection to api.sandbox.paypal.com:443...
136
+ opened
137
+ starting SSL for api.sandbox.paypal.com:443...
138
+ SSL established
139
+ <- "GET /v1/payments/payment/Invalid HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015HHkSlZUmJlc4CzvCpL5xjeqPY-KteqkQLrnWoUy7AaY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
140
+ -> "HTTP/1.1 404 Not Found\r\n"
141
+ -> "Date: Wed, 17 Jun 2015 20:11:29 GMT\r\n"
142
+ -> "Server: Apache\r\n"
143
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=29889\r\n"
144
+ -> "Paypal-Debug-Id: 02b24159db056\r\n"
145
+ -> "Content-Language: *\r\n"
146
+ -> "Content-Length: 207\r\n"
147
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1909752149; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
148
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
149
+ -> "Vary: Authorization\r\n"
150
+ -> "Connection: close\r\n"
151
+ -> "Content-Type: application/json\r\n"
152
+ -> "\r\n"
153
+ reading 207 bytes...
154
+ -> "{\"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\":\"02b24159db056\"}"
155
+ read 207 bytes
156
+ Conn close
157
+ opening connection to api.sandbox.paypal.com:443...
158
+ opened
159
+ starting SSL for api.sandbox.paypal.com:443...
160
+ SSL established
161
+ <- "GET /v1/payments/payment?count=1 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer ExpiredA015HHkSlZUmJlc4CzvCpL5xjeqPY-KteqkQLrnWoUy7AaY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
162
+ -> "HTTP/1.1 401 Unauthorized\r\n"
163
+ -> "Date: Wed, 17 Jun 2015 20:11:30 GMT\r\n"
164
+ -> "Server: Apache\r\n"
165
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=27110\r\n"
166
+ -> "Paypal-Debug-Id: 653102f2db7ab\r\n"
167
+ -> "Content-Length: 0\r\n"
168
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1926529365; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
169
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
170
+ -> "Vary: Authorization\r\n"
171
+ -> "Connection: close\r\n"
172
+ -> "Content-Type: application/json\r\n"
173
+ -> "\r\n"
174
+ reading 0 bytes...
175
+ -> ""
176
+ read 0 bytes
177
+ Conn close
178
+ opening connection to api.sandbox.paypal.com:443...
179
+ opened
180
+ starting SSL for api.sandbox.paypal.com:443...
181
+ SSL established
182
+ <- "GET /v1/payments/payment?count=1 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
183
+ -> "HTTP/1.1 200 OK\r\n"
184
+ -> "Date: Wed, 17 Jun 2015 20:11:31 GMT\r\n"
185
+ -> "Server: Apache\r\n"
186
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=28145\r\n"
187
+ -> "Paypal-Debug-Id: 1e434e08d8fab\r\n"
188
+ -> "Content-Language: *\r\n"
189
+ -> "Content-Length: 1622\r\n"
190
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1943306581; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
191
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
192
+ -> "Vary: Authorization\r\n"
193
+ -> "Connection: close\r\n"
194
+ -> "Content-Type: application/json\r\n"
195
+ -> "\r\n"
196
+ reading 1622 bytes...
197
+ -> "{\"payments\":[{\"id\":\"PAY-1L064882YM848125EKWA2KNY\",\"create_time\":\"2015-06-17T16:49:59Z\",\"update_time\":\"2015-06-17T16:50:01Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581a536538b2\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"84X3439975017913M\",\"create_time\":\"2015-06-17T16:49:59Z\",\"update_time\":\"2015-06-17T16:50:01Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-1L064882YM848125EKWA2KNY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84X3439975017913M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/84X3439975017913M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1L064882YM848125EKWA2KNY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1L064882YM848125EKWA2KNY\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":1,\"next_id\":\"PAY-5P879024BL580121AKWA2KLY\"}"
198
+ read 1622 bytes
199
+ Conn close
200
+ opening connection to api.sandbox.paypal.com:443...
201
+ opened
202
+ starting SSL for api.sandbox.paypal.com:443...
203
+ SSL established
204
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: f9b10630-a591-4144-b2d9-d02b2b4dd0f2\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: 473\r\n\r\n"
205
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
206
+ -> "HTTP/1.1 503 Service Unavailable\r\n"
207
+ -> "Date: Wed, 17 Jun 2015 20:11:35 GMT\r\n"
208
+ -> "Server: Apache\r\n"
209
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=208333\r\n"
210
+ -> "Paypal-Debug-Id: 15de632ed9e0c\r\n"
211
+ -> "Connection: close\r\n"
212
+ -> "Content-Length: 145\r\n"
213
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2010415445; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
214
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
215
+ -> "Vary: Authorization\r\n"
216
+ -> "Content-Type: application/json\r\n"
217
+ -> "\r\n"
218
+ reading 145 bytes...
219
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"information_link\":\"https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"15de632ed9e0c\"}"
220
+ read 145 bytes
221
+ Conn close
222
+ opening connection to api.sandbox.paypal.com:443...
223
+ opened
224
+ starting SSL for api.sandbox.paypal.com:443...
225
+ SSL established
226
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: b403c5b5-0cb1-4249-8995-f293afcec1e7\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: 473\r\n\r\n"
227
+ <- "{\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
228
+ -> "HTTP/1.1 503 Service Unavailable\r\n"
229
+ -> "Date: Wed, 17 Jun 2015 20:12:06 GMT\r\n"
230
+ -> "Server: Apache\r\n"
231
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=207623\r\n"
232
+ -> "Paypal-Debug-Id: 1e0f54f2e075b\r\n"
233
+ -> "Connection: close\r\n"
234
+ -> "Content-Length: 145\r\n"
235
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2530509141; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
236
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
237
+ -> "Vary: Authorization\r\n"
238
+ -> "Content-Type: application/json\r\n"
239
+ -> "\r\n"
240
+ reading 145 bytes...
241
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"information_link\":\"https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"1e0f54f2e075b\"}"
242
+ read 145 bytes
243
+ Conn close
244
+ opening connection to api.sandbox.paypal.com:443...
245
+ opened
246
+ starting SSL for api.sandbox.paypal.com:443...
247
+ SSL established
248
+ <- "GET /v1/payments/orders/O-2HT09787H36911800 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
249
+ -> "HTTP/1.1 200 OK\r\n"
250
+ -> "Date: Wed, 17 Jun 2015 20:12:37 GMT\r\n"
251
+ -> "Server: Apache\r\n"
252
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=28130\r\n"
253
+ -> "Paypal-Debug-Id: 9d321674e8e8b\r\n"
254
+ -> "Content-Language: *\r\n"
255
+ -> "Content-Length: 489\r\n"
256
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D3050602837; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
257
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
258
+ -> "Vary: Authorization\r\n"
259
+ -> "Connection: close\r\n"
260
+ -> "Content-Type: application/json\r\n"
261
+ -> "\r\n"
262
+ reading 489 bytes...
263
+ -> "{\"id\":\"O-2HT09787H36911800\",\"create_time\":\"2014-09-05T15:35:51Z\",\"update_time\":\"2014-09-05T15:36:47Z\",\"state\":\"expired\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"parent_payment\":\"PAY-9KG19994R2259015YKQE5QVY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/orders/O-2HT09787H36911800\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9KG19994R2259015YKQE5QVY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}"
264
+ read 489 bytes
265
+ Conn close
266
+ opening connection to api.sandbox.paypal.com:443...
267
+ opened
268
+ starting SSL for api.sandbox.paypal.com:443...
269
+ SSL established
270
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 1b510dda-5e62-4b99-8042-f1ace7c5078f\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: 478\r\n\r\n"
271
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
272
+ -> "HTTP/1.1 503 Service Unavailable\r\n"
273
+ -> "Date: Wed, 17 Jun 2015 20:12:37 GMT\r\n"
274
+ -> "Server: Apache\r\n"
275
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=29832\r\n"
276
+ -> "Paypal-Debug-Id: 30559063e8e98\r\n"
277
+ -> "Connection: close\r\n"
278
+ -> "Content-Length: 145\r\n"
279
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D3050602837; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
280
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
281
+ -> "Vary: Authorization\r\n"
282
+ -> "Content-Type: application/json\r\n"
283
+ -> "\r\n"
284
+ reading 145 bytes...
285
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"information_link\":\"https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"30559063e8e98\"}"
286
+ read 145 bytes
287
+ Conn close
288
+ opening connection to api.sandbox.paypal.com:443...
289
+ opened
290
+ starting SSL for api.sandbox.paypal.com:443...
291
+ SSL established
292
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: fbb23612-c816-466e-b2c0-a4f5743c90a0\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: 478\r\n\r\n"
293
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
294
+ -> "HTTP/1.1 503 Service Unavailable\r\n"
295
+ -> "Date: Wed, 17 Jun 2015 20:13:08 GMT\r\n"
296
+ -> "Server: Apache\r\n"
297
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=56508\r\n"
298
+ -> "Paypal-Debug-Id: aaf9158af337f\r\n"
299
+ -> "Connection: close\r\n"
300
+ -> "Content-Length: 145\r\n"
301
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D3570696533; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
302
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
303
+ -> "Vary: Authorization\r\n"
304
+ -> "Content-Type: application/json\r\n"
305
+ -> "\r\n"
306
+ reading 145 bytes...
307
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"information_link\":\"https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"aaf9158af337f\"}"
308
+ read 145 bytes
309
+ Conn close
310
+ opening connection to api.sandbox.paypal.com:443...
311
+ opened
312
+ starting SSL for api.sandbox.paypal.com:443...
313
+ SSL established
314
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 18a4f81f-39ad-4134-88fa-a8b1f716b350\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: 478\r\n\r\n"
315
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
316
+ -> "HTTP/1.1 503 Service Unavailable\r\n"
317
+ -> "Date: Wed, 17 Jun 2015 20:13:39 GMT\r\n"
318
+ -> "Server: Apache\r\n"
319
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=205628\r\n"
320
+ -> "Paypal-Debug-Id: fde8c434fba7e\r\n"
321
+ -> "Connection: close\r\n"
322
+ -> "Content-Length: 145\r\n"
323
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D4090790229; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
324
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
325
+ -> "Vary: Authorization\r\n"
326
+ -> "Content-Type: application/json\r\n"
327
+ -> "\r\n"
328
+ reading 145 bytes...
329
+ -> "{\"name\":\"INTERNAL_SERVICE_ERROR\",\"information_link\":\"https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR\",\"debug_id\":\"fde8c434fba7e\"}"
330
+ read 145 bytes
331
+ Conn close
332
+ opening connection to api.sandbox.paypal.com:443...
333
+ opened
334
+ starting SSL for api.sandbox.paypal.com:443...
335
+ SSL established
336
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 6afb668d-2740-44a9-9f0d-bba5b9dc9311\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: 478\r\n\r\n"
337
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
338
+ -> "HTTP/1.1 400 Bad Request\r\n"
339
+ -> "Date: Wed, 17 Jun 2015 20:14:10 GMT\r\n"
340
+ -> "Server: Apache\r\n"
341
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=27084\r\n"
342
+ -> "Paypal-Debug-Id: 7de59c0202387\r\n"
343
+ -> "Content-Language: *\r\n"
344
+ -> "Connection: close\r\n"
345
+ -> "Connection: close\r\n"
346
+ -> "Content-Length: 185\r\n"
347
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D315982165; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
348
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
349
+ -> "Vary: Authorization\r\n"
350
+ -> "Content-Type: application/json\r\n"
351
+ -> "\r\n"
352
+ reading 185 bytes...
353
+ -> "{\"name\":\"UNKNOWN_ERROR\",\"message\":\"An unknown error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR\",\"debug_id\":\"7de59c0202387\"}"
354
+ read 185 bytes
355
+ Conn close
356
+ opening connection to api.sandbox.paypal.com:443...
357
+ opened
358
+ starting SSL for api.sandbox.paypal.com:443...
359
+ SSL established
360
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 5a2d0e01-cdf3-4265-826e-b4bb937b6c98\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: 478\r\n\r\n"
361
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
362
+ -> "HTTP/1.1 400 Bad Request\r\n"
363
+ -> "Date: Wed, 17 Jun 2015 20:14:22 GMT\r\n"
364
+ -> "Server: Apache\r\n"
365
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=393\r\n"
366
+ -> "Paypal-Debug-Id: 4763000c01268\r\n"
367
+ -> "Content-Language: *\r\n"
368
+ -> "Connection: close\r\n"
369
+ -> "Connection: close\r\n"
370
+ -> "Content-Length: 185\r\n"
371
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D517308757; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
372
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
373
+ -> "Vary: Authorization\r\n"
374
+ -> "Content-Type: application/json\r\n"
375
+ -> "\r\n"
376
+ reading 185 bytes...
377
+ -> "{\"name\":\"UNKNOWN_ERROR\",\"message\":\"An unknown error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR\",\"debug_id\":\"4763000c01268\"}"
378
+ read 185 bytes
379
+ Conn close
380
+ opening connection to api.sandbox.paypal.com:443...
381
+ opened
382
+ starting SSL for api.sandbox.paypal.com:443...
383
+ SSL established
384
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 01d61ec9-50a7-49ef-9bb3-bac4e8c24c4e\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: 478\r\n\r\n"
385
+ <- "{\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}}]},\"transactions\":[{\"amount\":{\"currency\":\"USD\",\"total\":\"1.00\"},\"description\":\"This is the payment transaction description.\"}]}"
386
+ -> "HTTP/1.1 400 Bad Request\r\n"
387
+ -> "Date: Wed, 17 Jun 2015 20:14:34 GMT\r\n"
388
+ -> "Server: Apache\r\n"
389
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=205641\r\n"
390
+ -> "Paypal-Debug-Id: dde28a5a0c370\r\n"
391
+ -> "Content-Language: *\r\n"
392
+ -> "Connection: close\r\n"
393
+ -> "Connection: close\r\n"
394
+ -> "Content-Length: 185\r\n"
395
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D718635349; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
396
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
397
+ -> "Vary: Authorization\r\n"
398
+ -> "Content-Type: application/json\r\n"
399
+ -> "\r\n"
400
+ reading 185 bytes...
401
+ -> "{\"name\":\"UNKNOWN_ERROR\",\"message\":\"An unknown error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR\",\"debug_id\":\"dde28a5a0c370\"}"
402
+ read 185 bytes
403
+ Conn close
404
+ opening connection to api.sandbox.paypal.com:443...
405
+ opened
406
+ starting SSL for api.sandbox.paypal.com:443...
407
+ SSL established
408
+ <- "POST /v1/vault/credit-cards HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: cef03a78-5511-48cc-988f-14166c952be0\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: 251\r\n\r\n"
409
+ <- "{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018,\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"country_code\":\"US\",\"postal_code\":\"43210\",\"state\":\"OH\"}}"
410
+ -> "HTTP/1.1 201 Created\r\n"
411
+ -> "Date: Wed, 17 Jun 2015 20:14:47 GMT\r\n"
412
+ -> "Server: Apache\r\n"
413
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=14776\r\n"
414
+ -> "Paypal-Debug-Id: 17fb99800b284\r\n"
415
+ -> "Content-Language: *\r\n"
416
+ -> "Content-Length: 787\r\n"
417
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D936739157; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
418
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
419
+ -> "Vary: Authorization\r\n"
420
+ -> "Connection: close\r\n"
421
+ -> "Content-Type: application/json\r\n"
422
+ -> "\r\n"
423
+ reading 787 bytes...
424
+ -> "{\"id\":\"CARD-1CM385517H585641GKWA5KNY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"},\"valid_until\":\"2018-06-16T00:00:00Z\",\"create_time\":\"2015-06-17T20:14:47Z\",\"update_time\":\"2015-06-17T20:14:47Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-1CM385517H585641GKWA5KNY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-1CM385517H585641GKWA5KNY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-1CM385517H585641GKWA5KNY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
425
+ read 787 bytes
426
+ Conn close
427
+ opening connection to api.sandbox.paypal.com:443...
428
+ opened
429
+ starting SSL for api.sandbox.paypal.com:443...
430
+ SSL established
431
+ <- "GET /v1/vault/credit-cards/CARD-1CM385517H585641GKWA5KNY HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
432
+ -> "HTTP/1.1 200 OK\r\n"
433
+ -> "Date: Wed, 17 Jun 2015 20:14:47 GMT\r\n"
434
+ -> "Server: Apache\r\n"
435
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=27095\r\n"
436
+ -> "Paypal-Debug-Id: 235fdf1708f2e\r\n"
437
+ -> "Content-Language: *\r\n"
438
+ -> "Content-Length: 787\r\n"
439
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D936739157; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
440
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
441
+ -> "Vary: Authorization\r\n"
442
+ -> "Connection: close\r\n"
443
+ -> "Content-Type: application/json\r\n"
444
+ -> "\r\n"
445
+ reading 787 bytes...
446
+ -> "{\"id\":\"CARD-1CM385517H585641GKWA5KNY\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"},\"valid_until\":\"2018-06-16T00:00:00Z\",\"create_time\":\"2015-06-17T20:14:47Z\",\"update_time\":\"2015-06-17T20:14:47Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-1CM385517H585641GKWA5KNY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-1CM385517H585641GKWA5KNY\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-1CM385517H585641GKWA5KNY\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
447
+ read 787 bytes
448
+ Conn close
449
+ opening connection to api.sandbox.paypal.com:443...
450
+ opened
451
+ starting SSL for api.sandbox.paypal.com:443...
452
+ SSL established
453
+ <- "POST /v1/vault/credit-cards HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 4efb1026-492e-4244-874a-0298f81c841f\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: 80\r\n\r\n"
454
+ <- "{\"number\":\"4417119669820331\",\"type\":\"visa\",\"expire_month\":11,\"expire_year\":2018}"
455
+ -> "HTTP/1.1 201 Created\r\n"
456
+ -> "Date: Wed, 17 Jun 2015 20:14:48 GMT\r\n"
457
+ -> "Server: Apache\r\n"
458
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=29379\r\n"
459
+ -> "Paypal-Debug-Id: d224a66908bb0\r\n"
460
+ -> "Content-Language: *\r\n"
461
+ -> "Content-Length: 629\r\n"
462
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D953516373; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
463
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
464
+ -> "Vary: Authorization\r\n"
465
+ -> "Connection: close\r\n"
466
+ -> "Content-Type: application/json\r\n"
467
+ -> "\r\n"
468
+ reading 629 bytes...
469
+ -> "{\"id\":\"CARD-6XM88206FX669024YKWA5KOA\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"valid_until\":\"2018-06-16T00:00:00Z\",\"create_time\":\"2015-06-17T20:14:48Z\",\"update_time\":\"2015-06-17T20:14:48Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-6XM88206FX669024YKWA5KOA\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-6XM88206FX669024YKWA5KOA\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-cards/CARD-6XM88206FX669024YKWA5KOA\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
470
+ read 629 bytes
471
+ Conn close
472
+ opening connection to api.sandbox.paypal.com:443...
473
+ opened
474
+ starting SSL for api.sandbox.paypal.com:443...
475
+ SSL established
476
+ <- "DELETE /v1/vault/credit-cards/CARD-6XM88206FX669024YKWA5KOA HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
477
+ -> "HTTP/1.1 204 No Content\r\n"
478
+ -> "Date: Wed, 17 Jun 2015 20:14:49 GMT\r\n"
479
+ -> "Server: Apache\r\n"
480
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=146447\r\n"
481
+ -> "Paypal-Debug-Id: cd52bb520882a\r\n"
482
+ -> "Content-Language: *\r\n"
483
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D970293589; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
484
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
485
+ -> "Vary: Authorization\r\n"
486
+ -> "Connection: close\r\n"
487
+ -> "Content-Type: text/plain; charset=ISO-8859-1\r\n"
488
+ -> "\r\n"
489
+ Conn close
490
+ opening connection to api.sandbox.paypal.com:443...
491
+ opened
492
+ starting SSL for api.sandbox.paypal.com:443...
493
+ SSL established
494
+ <- "POST /v1/vault/credit-cards HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A0152gtigi4qv0lFob0S8hbXow3DGalNrlwWUZm4eK5TZuY\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-Ruby-SDK 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nPaypal-Request-Id: 2c6472a5-714e-4eb4-984f-d666404c313d\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: 43\r\n\r\n"
495
+ <- "{\"number\":\"4111111111111111\",\"type\":\"visa\"}"
496
+ -> "HTTP/1.1 400 Bad Request\r\n"
497
+ -> "Date: Wed, 17 Jun 2015 20:14:49 GMT\r\n"
498
+ -> "Server: Apache\r\n"
499
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=143967\r\n"
500
+ -> "Paypal-Debug-Id: bab11b63084c7\r\n"
501
+ -> "Content-Language: *\r\n"
502
+ -> "Connection: close\r\n"
503
+ -> "Connection: close\r\n"
504
+ -> "Content-Length: 300\r\n"
505
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D970293589; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
506
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
507
+ -> "Vary: Authorization\r\n"
508
+ -> "Content-Type: application/json\r\n"
509
+ -> "\r\n"
510
+ reading 300 bytes...
511
+ -> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"expire_year\",\"issue\":\"Required field missing\"},{\"field\":\"expire_month\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"bab11b63084c7\"}"
512
+ read 300 bytes
513
+ Conn close
@@ -2,38 +2,116 @@ opening connection to api.sandbox.paypal.com:443...
2
2
  opened
3
3
  starting SSL for api.sandbox.paypal.com:443...
4
4
  SSL established
5
- <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015p9UmS9bbjBKvXFguSGxuZxGMlvD8iJdSLcI6dBVCi2c\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.2 (paypal-sdk-core 1.1.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
6
- -> "HTTP/1.1 404 Not Found\r\n"
7
- -> "Server: Apache-Coyote/1.1\r\n"
8
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=6008\r\n"
9
- -> "Paypal-Debug-Id: c8f86460d1f6d\r\n"
5
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015DOFRpuzFpZfHX0ilj8893ElG2peUPhPPO1bzZaUlDTE\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 286\r\n\r\n"
6
+ <- "{\"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 400 Bad Request\r\n"
8
+ -> "Date: Wed, 17 Jun 2015 16:03:02 GMT\r\n"
9
+ -> "Server: Apache\r\n"
10
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=205660\r\n"
11
+ -> "Paypal-Debug-Id: 4902c6a25a289\r\n"
10
12
  -> "Content-Language: *\r\n"
11
- -> "Date: Tue, 05 May 2015 14:30:04 GMT\r\n"
13
+ -> "Connection: close\r\n"
14
+ -> "Connection: close\r\n"
15
+ -> "Content-Length: 185\r\n"
16
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D916095317; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
17
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
18
+ -> "Vary: Authorization\r\n"
12
19
  -> "Content-Type: application/json\r\n"
13
- -> "Content-Length: 207\r\n"
14
20
  -> "\r\n"
15
- reading 207 bytes...
16
- -> "{\"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\":\"c8f86460d1f6d\"}"
17
- read 207 bytes
18
- Conn keep-alive
21
+ reading 185 bytes...
22
+ -> "{\"name\":\"UNKNOWN_ERROR\",\"message\":\"An unknown error has occurred\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR\",\"debug_id\":\"4902c6a25a289\"}"
23
+ read 185 bytes
24
+ Conn close
19
25
  opening connection to api.sandbox.paypal.com:443...
20
26
  opened
21
27
  starting SSL for api.sandbox.paypal.com:443...
22
28
  SSL established
23
- <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015p9UmS9bbjBKvXFguSGxuZxGMlvD8iJdSLcI6dBVCi2c\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.1.2 (paypal-sdk-core 1.1.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 2\r\n\r\n"
24
- <- "{}"
25
- -> "HTTP/1.1 400 Bad Request\r\n"
26
- -> "Server: Apache-Coyote/1.1\r\n"
27
- -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=5913\r\n"
28
- -> "Paypal-Debug-Id: 3be36c95d1d44\r\n"
29
+ <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015DOFRpuzFpZfHX0ilj8893ElG2peUPhPPO1bzZaUlDTE\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
30
+ -> "HTTP/1.1 200 OK\r\n"
31
+ -> "Date: Wed, 17 Jun 2015 16:03:14 GMT\r\n"
32
+ -> "Server: Apache\r\n"
33
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=27108\r\n"
34
+ -> "Paypal-Debug-Id: 7d7c9b58552a5\r\n"
35
+ -> "Content-Language: *\r\n"
36
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1117421909; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
37
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
38
+ -> "Vary: Authorization\r\n"
39
+ -> "Connection: close\r\n"
40
+ -> "Transfer-Encoding: chunked\r\n"
41
+ -> "Content-Type: application/json\r\n"
42
+ -> "\r\n"
43
+ -> "2000\r\n"
44
+ reading 8192 bytes...
45
+ -> ""
46
+ -> "{\"payments\":[{\"id\":\"PAY-4RG04167Y3679044FKWAZUJA\",\"create_time\":\"2015-06-17T16:02:44Z\",\"update_time\":\"2015-06-17T16:02:46Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"55819a94a9f6d\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"1S363116N1212452J\",\"create_time\":\"2015-06-17T16:02:44Z\",\"update_time\":\"2015-06-17T16:02:46Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-4RG04167Y3679044FKWAZUJA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1S363116N1212452J\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1S363116N1212452J/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4RG04167Y3679044FKWAZUJA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4RG04167Y3679044FKWAZUJA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-94W42352G3625413LKWAZFEA\",\"create_time\":\"2015-06-17T15:30:24Z\",\"update_time\":\"2015-06-17T15:30:26Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581928f8dd0c\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"7EG93024KM342302E\",\"create_time\":\"2015-06-17T15:30:24Z\",\"update_time\":\"2015-06-17T15:30:26Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-94W42352G3625413LKWAZFEA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7EG93024KM342302E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7EG93024KM342302E/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-94W42352G3625413LKWAZFEA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-94W42352G3625413LKWAZFEA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-78S39199MJ676670TKWAZE3I\",\"create_time\":\"2015-06-17T15:29:49Z\",\"update_time\":\"2015-06-17T15:29:51Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581926cd1ef2\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"4FV54189LD8932322\",\"create_time\":\"2015-06-17T15:29:49Z\",\"update_time\":\"2015-06-17T15:29:51Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-78S39199MJ676670TKWAZE3I\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4FV54189LD8932322\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4FV54189LD8932322/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-78S39199MJ676670TKWAZE3I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-78S39199MJ676670TKWAZE3I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9DN27361C2703300EKWAZDIQ\",\"create_time\":\"2015-06-17T15:26:26Z\",\"update_time\":\"2015-06-17T15:26:28Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-19321487CE645782DKWAZDII\",\"last4\":\"7702\",\"type\":\"visa\",\"expire_month\":\"11\",\"expire_year\":\"2019\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"558191a21aaed\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]},\"related_resources\":[{\"sale\":{\"id\":\"0UT44837MG029733C\",\"create_time\":\"2015-06-17T15:26:26Z\",\"update_time\":\"2015-06-17T15:26:28Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-9DN27361C2703300EKWAZDIQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0UT44837MG029733C\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0UT44837MG029733C/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9DN27361C2703300EKWAZDIQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9DN27361C2703300EKWAZDIQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1FJ72485FN6485823KWAZCZA\",\"create_time\":\"2015-06-17T15:25:24Z\",\"update_time\":\"2015-06-17T15:25:26Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"55819163c08f9\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"9S673821UG796180S\",\"create_time\":\"2015-06-17T15:25:24Z\",\"update_time\":\"2015-06-17T15:25:26Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-1FJ72485FN6485823KWAZCZA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9S673821UG796180S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9S673821UG796180S/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1FJ72485FN6485823KWAZCZA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1FJ72485FN6485823KWAZCZA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-6JY80631CT282263PKWAWPUI\",\"create_time\":\"2015-06-17T12:28:01Z\",\"update_time\":\"2015-06-17T12:28:12Z\",\"state\":\"approved\",\"intent\":\"authorize\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"mastercard\",\"number\":\"xxxxxxxxxxxx5559\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":["
47
+ read 8192 bytes
48
+ reading 2 bytes...
49
+ -> ""
50
+ -> "\r\n"
51
+ read 2 bytes
52
+ -> "2000\r\n"
53
+ reading 8192 bytes...
54
+ -> ""
55
+ -> "{\"amount\":{\"total\":\"107.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"107.41\",\"tax\":\"0.03\",\"shipping\":\"0.03\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"authorization\":{\"id\":\"0F879792UF348410B\",\"create_time\":\"2015-06-17T12:28:01Z\",\"update_time\":\"2015-06-17T12:28:12Z\",\"amount\":{\"total\":\"107.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"107.41\",\"tax\":\"0.03\",\"shipping\":\"0.03\"}},\"state\":\"authorized\",\"parent_payment\":\"PAY-6JY80631CT282263PKWAWPUI\",\"valid_until\":\"2015-07-16T12:28:01Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0F879792UF348410B\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0F879792UF348410B/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/0F879792UF348410B/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6JY80631CT282263PKWAWPUI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6JY80631CT282263PKWAWPUI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-2FN79792JL482730FKWAWKBI\",\"create_time\":\"2015-06-17T12:16:05Z\",\"update_time\":\"2015-06-17T12:16:49Z\",\"state\":\"approved\",\"intent\":\"order\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"passionarya@gmail.com\",\"first_name\":\"passion\",\"last_name\":\"arya\",\"payer_id\":\"LJQW7QV5CMGKJ\",\"shipping_address\":{\"line1\":\"1 Main St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"recipient_name\":\"passion arya\"}}},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"558165052e585\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]},\"related_resources\":[{\"order\":{\"id\":\"O-1EH64738GR325874S\",\"create_time\":\"2015-06-17T12:16:05Z\",\"update_time\":\"2015-06-17T12:16:38Z\",\"state\":\"authorized\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"parent_payment\":\"PAY-2FN79792JL482730FKWAWKBI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/orders/O-1EH64738GR325874S\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2FN79792JL482730FKWAWKBI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}],\"reason_code\":\"order\"}},{\"authorization\":{\"id\":\"6CW979277C8653353\",\"create_time\":\"2015-06-17T12:16:48Z\",\"update_time\":\"2015-06-17T12:16:49Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-2FN79792JL482730FKWAWKBI\",\"valid_until\":\"2015-07-16T12:16:48Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/6CW979277C8653353\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/6CW979277C8653353/capture\",\"rel\":\"capture\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/6CW979277C8653353/void\",\"rel\":\"void\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/authorization/6CW979277C8653353/reauthorize\",\"rel\":\"reauthorize\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2FN79792JL482730FKWAWKBI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2FN79792JL482730FKWAWKBI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-2AD33606NT514341KKWAWJXA\",\"create_time\":\"2015-06-17T12:15:24Z\",\"update_time\":\"2015-06-17T12:15:26Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx2259\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"558164dc5226c\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Ground Coffee 40 oz\",\"tax\":\"0.30\"},{\"name\":\"Granola bars\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\",\"description\":\"Granola Bars with Peanuts\",\"tax\":\"0.20\"}]},\"related_resources\":[{\"sale\":{\"id\":\"31344398DP987593P\",\"create_time\":\"2015-06-17T12:15:24Z\",\"update_time\":\"2015-06-17T12:15:26Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"state\":\"completed\",\"parent_payment\":\"PAY-2AD33606NT514341KKWAWJXA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/31344398DP987593P\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/31344398DP987593P/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2AD33606NT514341KKWAWJXA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2AD33606NT514341KKWAWJXA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1AV94905D05234514KWAWJAY\",\"create_time\":\"2015-06-17T12:13:55Z\",\"update_time\":\"2015-06-17T12:14:37Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"passionarya@gmail.com\",\"first_name\":\"passion\",\"last_name\":\"arya\",\"payer_id\":\"LJQW7QV5CMGKJ\",\"shipping_address\":{\"line1\":\"1 Main St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"recipient_name\":\"passion arya\"}}},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"17.50\",\"tax\":\"1.30\",\"shipping\":\"1.20\"}},\"description\":\"Payment description\",\"invoice_number\":\"5581648074c1e\",\"item_list\":{\"items\":[{\"name\":\"Ground Coffee 40 oz\",\"sku\":\"123123\",\"price\":\"7.50\",\"currency\":\"USD\",\"quantity\":\"1\"},{\"name\":\"Granola bars\",\"sku\":\"321321\",\"price\":\"2.00\",\"currency\":\"USD\",\"quantity\":\"5\"}]},\"related_resources\":[{\"sale\":{\"id\":\"2K505029HN1211825\",\"create_time\":\"2015-06-17T12:13:55Z\",\"update_time\":\"2015-06-17T12:14:37Z\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-1AV94905D05234514KWAWJAY\",\"transaction_fee\":{\"value\":\"0.88\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2K505029HN1211825\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2K505029HN1211825/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1AV94905D05234514KWAWJAY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1AV94905D05234514KWAWJAY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-6053768531209024AKWAV22A\",\"create_time\":\"2015-06-17T11:43:36Z\",\"update_time\":\"2015-06-17T11:44:56Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"status\":\"VERIFIED\",\"payer_info\":{\"email\":\"dubeyvikass22@live.com\",\"first_name\":\"vikas\",\"last_name\":\"dubey\",\"payer_id\":\"6NZTQBCPLCD9S\",\"shipping_address\":{\"line1\":\"101 10 floore\",\"line2\":\"City Center\",\"city\":\"Ahmedabad\",\"state\":\"Gujarat\",\"postal_code\":\"3800054\",\"country_code\":\"IN\",\"recipient_name\":\"Ronak Prajapati\"}}},\"transactions\":[{\"amount\":{\"total\":\"0.66\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"0.66\"}},\"description\":\"Payment description\",\"invoice_number\":\"TBH_55815d68082f0\",\"item_list\":{\"items\":[{\"name\":\"Afrikaaans to Arabic Translation\",\"price\":\"0.22\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Afrikaaans to Arabic Translation\"},{\"name\":\"Afrikaaans to English Translation\",\"price\":\"0.22\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Afrikaaans to English Translation\"},{\"name\":\"Afrikaaans to Gujarati Translation\",\"price\":\"0.22\",\"currency\":\"USD\",\"quantity\":\"1\",\"description\":\"Afrikaaans to Gujarati Translation\"}]},\"related_resources\":[{\"sale\":{\"id\":\"0YX952993U1445832\",\"create_time\":\"2015-06-17T11:43:36Z\",\"update_time\":\"2015-06-17"
56
+ read 8192 bytes
57
+ reading 2 bytes...
58
+ -> ""
59
+ -> "\r\n"
60
+ read 2 bytes
61
+ -> "371\r\n"
62
+ reading 881 bytes...
63
+ -> ""
64
+ -> "T11:44:56Z\",\"amount\":{\"total\":\"0.66\",\"currency\":\"USD\"},\"payment_mode\":\"INSTANT_TRANSFER\",\"state\":\"completed\",\"protection_eligibility\":\"ELIGIBLE\",\"protection_eligibility_type\":\"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE\",\"parent_payment\":\"PAY-6053768531209024AKWAV22A\",\"transaction_fee\":{\"value\":\"0.32\",\"currency\":\"USD\"},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0YX952993U1445832\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0YX952993U1445832/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6053768531209024AKWAV22A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6053768531209024AKWAV22A\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-2U295199GL626082MKWAVKJY\"}"
65
+ read 881 bytes
66
+ reading 2 bytes...
67
+ -> ""
68
+ -> "\r\n"
69
+ read 2 bytes
70
+ -> "0\r\n"
71
+ -> "\r\n"
72
+ Conn close
73
+ opening connection to api.sandbox.paypal.com:443...
74
+ opened
75
+ starting SSL for api.sandbox.paypal.com:443...
76
+ SSL established
77
+ <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015hHEMGKOcPqeg2Ngcw8AQ-IN2MfFF5VPkpM-hU.XFXVg\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 138\r\n\r\n"
78
+ <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
79
+ -> "HTTP/1.1 201 Created\r\n"
80
+ -> "Date: Wed, 17 Jun 2015 16:03:26 GMT\r\n"
81
+ -> "Server: Apache\r\n"
82
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=28161\r\n"
83
+ -> "Paypal-Debug-Id: 087b04e850bf0\r\n"
29
84
  -> "Content-Language: *\r\n"
30
- -> "Date: Tue, 05 May 2015 14:30:05 GMT\r\n"
85
+ -> "Content-Length: 667\r\n"
86
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1318748501; domain=.paypal.com; path=/; Secure; HttpOnly\r\n"
87
+ -> "Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n"
88
+ -> "Vary: Authorization\r\n"
31
89
  -> "Connection: close\r\n"
32
90
  -> "Content-Type: application/json\r\n"
33
- -> "Content-Length: 306\r\n"
91
+ -> "\r\n"
92
+ reading 667 bytes...
93
+ -> "{\"id\":\"CARD-6F200375X0174994DKWAZUTQ\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-06-16T00:00:00Z\",\"create_time\":\"2015-06-17T16:03:26Z\",\"update_time\":\"2015-06-17T16:03:26Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6F200375X0174994DKWAZUTQ\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6F200375X0174994DKWAZUTQ\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6F200375X0174994DKWAZUTQ\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
94
+ read 667 bytes
95
+ Conn close
96
+ opening connection to api.sandbox.paypal.com:443...
97
+ opened
98
+ starting SSL for api.sandbox.paypal.com:443...
99
+ SSL established
100
+ <- "GET /v1/vault/credit-card/CARD-6F200375X0174994DKWAZUTQ HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer A015hHEMGKOcPqeg2Ngcw8AQ-IN2MfFF5VPkpM-hU.XFXVg\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/rest-sdk-ruby 1.2.2 (paypal-sdk-core 1.2.2; ruby 2.1.2p95-x86_64-darwin13.0)\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\n\r\n"
101
+ -> "HTTP/1.1 200 OK\r\n"
102
+ -> "Date: Wed, 17 Jun 2015 16:03:26 GMT\r\n"
103
+ -> "Server: Apache\r\n"
104
+ -> "PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=44734\r\n"
105
+ -> "Paypal-Debug-Id: ee7797e650dd2\r\n"
106
+ -> "Content-Language: *\r\n"
107
+ -> "Content-Length: 667\r\n"
108
+ -> "Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D1318748501; 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
+ -> "Vary: Authorization\r\n"
34
111
  -> "Connection: close\r\n"
112
+ -> "Content-Type: application/json\r\n"
35
113
  -> "\r\n"
36
- reading 306 bytes...
37
- -> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"payer\",\"issue\":\"Required field missing\"},{\"field\":\"intent\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"3be36c95d1d44\"}"
38
- read 306 bytes
114
+ reading 667 bytes...
115
+ -> "{\"id\":\"CARD-6F200375X0174994DKWAZUTQ\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"valid_until\":\"2018-06-16T00:00:00Z\",\"create_time\":\"2015-06-17T16:03:26Z\",\"update_time\":\"2015-06-17T16:03:26Z\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6F200375X0174994DKWAZUTQ\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6F200375X0174994DKWAZUTQ\",\"rel\":\"delete\",\"method\":\"DELETE\"},{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-6F200375X0174994DKWAZUTQ\",\"rel\":\"patch\",\"method\":\"PATCH\"}]}"
116
+ read 667 bytes
39
117
  Conn close
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-21 00:00:00.000000000 Z
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls