paypal-sdk-core 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2FlZTU2MWY0MmE1ZmVkOTc4YTU0YTBiYzMwYWI1ODdhN2Y5MGNlZQ==
4
+ NGQxNTQwNGE3MzYyNzNhZTVkNGIyYWVlOGQyNmRhMDMxODU4MDQ5NQ==
5
5
  data.tar.gz: !binary |-
6
- YTVlMzA0MzY0OWU2ZGU0MDFmOTlmZDljNmY3YTE1ZTUzMjBkOWJmMA==
6
+ ZTNlYmZkMWYxNjc4Y2RkN2I4MmU5ZjVlMDY1MzJlYzg2ODUzNzFhYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Mzk3ODAxOTEyZmMyNzdlMzVkMTUyNWRjM2VlMmZhMDk0OGRkYWYzMmRjNDlm
10
- MGM1ZTdlYTA4Mzk5NzBkOGQzYmM3ZjgxMDU2NWJiMGY1NWVmOWJkNDZlNmYy
11
- YTBmZWIxMDZkM2YxNGZmYjE1MmY3NWYwNzQzZjI2MTRlM2M0ZDc=
9
+ ZWE2M2FhNGMwNzk4YWI0MzNlNTJmNTI2YjhjMTJjNDg5ZTMwOWM1MmNlZDE5
10
+ ZGQzZWJmODBhMjUzMTcxNGJhOGNiYjU3ZjI3NmIyZjdjYjY4OGUyNGZhNGU2
11
+ ZTNkNWY0YTg1MDAzMDhjYTI4MzM0YjE1MWEyZDcyZjk1ZGI3OTM=
12
12
  data.tar.gz: !binary |-
13
- MTBmMThmZjZhZTRlN2E1N2RjMTIzNzVhNjg2ZDZlMDFkMWZiYmIwNmQyYWU0
14
- MzVmYTZiZGNmN2QwMTcwZGU1ODVkYjhlNzAzMjRjNmUwNjNjOWUwZTkwMWVj
15
- YjdjZWUyZTEzMmJiYmE4MTkxODIwMjE1NWExZmRjZjRjNWQyMzc=
13
+ ZGM1ZTA2OTg4ZWM2NmRhNmMyZDIxY2EyM2I5ZTE3MDRkYTc0NjE0NjBmMTE1
14
+ ZDRlZGFkZmE2MDJjYjU5ODZhMTJkNjU4NTRiMGRjNWYxYzhmM2QzZjYxODY2
15
+ NGJjZjFiNGI2YWMwNzBlOTRlMWY5MDgzYzAyYTI4YTEzNWM0MDU=
data/CHANGELOG.txt CHANGED
@@ -1,3 +1,6 @@
1
+ Version 0.2.3 - Apr 26, 2013
2
+ - Update User-Agent for openid-connect
3
+
1
4
  Version 0.2.2 - Apr 25, 2013
2
5
  - Validate token expiry duration on every REST API call
3
6
  - Removed exception handling for Socket and Timeout errors
@@ -144,8 +144,12 @@ module PayPal::SDK::Core
144
144
  end
145
145
 
146
146
  class << self
147
+ def sdk_library_details
148
+ @library_details ||= "paypal-sdk-core #{PayPal::SDK::Core::VERSION}; ruby #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}-#{RUBY_PLATFORM}"
149
+ end
150
+
147
151
  def user_agent
148
- @user_agent ||= "paypal-sdk-core/#{VERSION} #{RUBY_DESCRIPTION}"
152
+ @user_agent ||= "PayPalSDK/sdk-core-ruby #{VERSION} (#{sdk_library_details})"
149
153
  end
150
154
  end
151
155
  end
@@ -35,6 +35,12 @@ module PayPal::SDK
35
35
  payload
36
36
  end
37
37
 
38
+ class << self
39
+ def user_agent
40
+ @user_agent ||= "PayPalSDK/openid-connect-ruby #{VERSION} (#{sdk_library_details})"
41
+ end
42
+ end
43
+
38
44
  end
39
45
  end
40
46
  end
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Core
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
6
6
  end
7
7
  end
@@ -8,6 +8,10 @@ describe PayPal::SDK::Core::API::Merchant do
8
8
  MassPayParams = { "ReceiverType" => "EmailAddress", "MassPayItem" => [{
9
9
  "ReceiverEmail" => "enduser_biz@gmail.com", "Amount" => { "@currencyID" => "USD", "value" => "3.00" } }] }
10
10
 
11
+ it "Validate user_agent" do
12
+ Merchant.user_agent.should match "PayPalSDK/sdk-core-ruby"
13
+ end
14
+
11
15
  describe "Configuration" do
12
16
  it "service endpoint for sandbox" do
13
17
  client = Merchant.new
@@ -13,6 +13,10 @@ describe PayPal::SDK::Core::API::Platform do
13
13
  { "name"=>"item2", "quantity"=>"2", "unitPrice"=>"2.00" } ] },
14
14
  "currencyCode" => "USD", "paymentTerms" => "DueOnReceipt" } }
15
15
 
16
+ it "Validate user_agent" do
17
+ Platform.user_agent.should match "PayPalSDK/sdk-core-ruby"
18
+ end
19
+
16
20
  describe "Configuration" do
17
21
  it "create client with Service name" do
18
22
  client = Platform.new("AdaptivePayments")
@@ -7,6 +7,10 @@ describe PayPal::SDK::OpenIDConnect do
7
7
  OpenIDConnect.set_config( :client_id => "client_id", :openid_redirect_uri => "http://google.com" )
8
8
  end
9
9
 
10
+ it "Validate user_agent" do
11
+ OpenIDConnect::API.user_agent.should match "PayPalSDK/openid-connect-ruby"
12
+ end
13
+
10
14
  it "generate autorize_url" do
11
15
  url = OpenIDConnect::Tokeninfo.authorize_url
12
16
  url.should match "client_id=client_id"
@@ -1,40 +1,40 @@
1
1
  opening connection to api.sandbox.paypal.com...
2
2
  opened
3
- <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer rmEAod96Ok-P8b0L.yjgtceMgptc4H85ahkd-YSyfWA\r\nContent-Type: application/json\r\nUser-Agent: paypal-sdk-core/0.2.2 ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 286\r\n\r\n"
3
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer JE8G4V.17O9J9xIZFKQITpoUmrpViF8lA-VyQfQCDqo\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.3 (paypal-sdk-core 0.2.3; ruby 1.9.3p327-i686-linux)\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 286\r\n\r\n"
4
4
  <- "{\"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\"}}]}"
5
5
  -> "HTTP/1.1 201 Created\r\n"
6
6
  -> "Server: Apache-Coyote/1.1\r\n"
7
- -> "Date: Thu, 25 Apr 2013 10:48:06 GMT\r\n"
8
- -> "PayPal-Debug-Id: d5acab8deb92c\r\n"
7
+ -> "Date: Fri, 26 Apr 2013 05:46:37 GMT\r\n"
8
+ -> "PayPal-Debug-Id: e6e15a750de50\r\n"
9
9
  -> "Content-Type: application/json\r\n"
10
10
  -> "Content-Length: 1176\r\n"
11
11
  -> "\r\n"
12
12
  reading 1176 bytes...
13
- -> "{\"id\":\"PAY-4V176325M4053643WKF4QTYY\",\"create_time\":\"2013-04-25T10:48:03Z\",\"update_time\":\"2013-04-25T10:48:06Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"4M440216RW8947146\",\"create_time\":\"2013-04-25T10:48:03Z\",\"update_time\":\"2013-04-25T10:48:06Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4V176325M4053643WKF4QTYY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4M440216RW8947146\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4M440216RW8947146/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4V176325M4053643WKF4QTYY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4V176325M4053643WKF4QTYY\",\"rel\":\"self\",\"method\":\"GET\"}]}"
13
+ -> "{\"id\":\"PAY-7F944019LL3444544KF5BJOQ\",\"create_time\":\"2013-04-26T05:46:34Z\",\"update_time\":\"2013-04-26T05:46:37Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"2VF23254MX2272604\",\"create_time\":\"2013-04-26T05:46:34Z\",\"update_time\":\"2013-04-26T05:46:37Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-7F944019LL3444544KF5BJOQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2VF23254MX2272604\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2VF23254MX2272604/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F944019LL3444544KF5BJOQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F944019LL3444544KF5BJOQ\",\"rel\":\"self\",\"method\":\"GET\"}]}"
14
14
  read 1176 bytes
15
15
  Conn keep-alive
16
16
  opening connection to api.sandbox.paypal.com...
17
17
  opened
18
- <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer rmEAod96Ok-P8b0L.yjgtceMgptc4H85ahkd-YSyfWA\r\nContent-Type: application/json\r\nUser-Agent: paypal-sdk-core/0.2.2 ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]\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"
18
+ <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer JE8G4V.17O9J9xIZFKQITpoUmrpViF8lA-VyQfQCDqo\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.3 (paypal-sdk-core 0.2.3; ruby 1.9.3p327-i686-linux)\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"
19
19
  -> "HTTP/1.1 200 OK\r\n"
20
20
  -> "Server: Apache-Coyote/1.1\r\n"
21
- -> "Date: Thu, 25 Apr 2013 10:48:10 GMT\r\n"
22
- -> "PayPal-Debug-Id: cc1aa426eb68c\r\n"
21
+ -> "Date: Fri, 26 Apr 2013 05:46:40 GMT\r\n"
22
+ -> "PayPal-Debug-Id: 59b6b64d1207d\r\n"
23
23
  -> "Content-Type: application/json\r\n"
24
24
  -> "Transfer-Encoding: chunked\r\n"
25
25
  -> "\r\n"
26
26
  -> "2000\r\n"
27
27
  reading 8192 bytes...
28
- -> "{\"payments\":[{\"id\":\"PAY-4V176325M4053643WKF4QTYY\",\"create_time\":\"2013-04-25T10:48:03Z\",\"update_time\":\"2013-04-25T10:48:06Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"4M440216RW8947146\",\"create_time\":\"2013-04-25T10:48:03Z\",\"update_time\":\"2013-04-25T10:48:06Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4V176325M4053643WKF4QTYY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4M440216RW8947146\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4M440216RW8947146/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4V176325M4053643WKF4QTYY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4V176325M4053643WKF4QTYY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7TN670764C5298445KF4QPGI\",\"create_time\":\"2013-04-25T10:38:17Z\",\"update_time\":\"2013-04-25T10:38:23Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"76N55507AH5227802\",\"create_time\":\"2013-04-25T10:38:17Z\",\"update_time\":\"2013-04-25T10:38:23Z\",\"state\":\"refunded\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-7TN670764C5298445KF4QPGI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/76N55507AH5227802\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/76N55507AH5227802/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7TN670764C5298445KF4QPGI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}},{\"refund\":{\"id\":\"0NV22512548964945\",\"create_time\":\"2013-04-25T10:38:23Z\",\"update_time\":\"2013-04-25T10:38:23Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-7TN670764C5298445KF4QPGI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/refund/0NV22512548964945\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7TN670764C5298445KF4QPGI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7TN670764C5298445KF4QPGI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5P318033B9714045TKF4QPEY\",\"create_time\":\"2013-04-25T10:38:11Z\",\"update_time\":\"2013-04-25T10:38:13Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"4KU48653LS155130Y\",\"create_time\":\"2013-04-25T10:38:11Z\",\"update_time\":\"2013-04-25T10:38:13Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-5P318033B9714045TKF4QPEY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4KU48653LS155130Y\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4KU48653LS155130Y/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5P318033B9714045TKF4QPEY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5P318033B9714045TKF4QPEY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-1CB2792639156360XKF4QO7A\",\"create_time\":\"2013-04-25T10:37:48Z\",\"update_time\":\"2013-04-25T10:37:51Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"2H0726929K574474B\",\"create_time\":\"2013-04-25T10:37:48Z\",\"update_time\":\"2013-04-25T10:37:51Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-1CB2792639156360XKF4QO7A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2H0726929K574474B\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2H0726929K574474B/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1CB2792639156360XKF4QO7A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-1CB2792639156360XKF4QO7A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7V627526C20969744KF4QO5I\",\"create_time\":\"2013-04-25T10:37:41Z\",\"update_time\":\"2013-04-25T10:37:43Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"83A81899W7817181U\",\"create_time\":\"2013-04-25T10:37:41Z\",\"update_time\":\"2013-04-25T10:37:43Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-7V627526C20969744KF4QO5I\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/83A81899W7817181U\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/83A81899W7817181U/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7V627526C20969744KF4QO5I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7V627526C20969744KF4QO5I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9N105488J74848037KF4QO3I\",\"create_time\":\"2013-04-25T10:37:33Z\",\"update_time\":\"2013-04-25T10:37:35Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"52 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"4W335777UN8721338\",\"create_time\":\"2013-04-25T10:37:33Z\",\"update_time\":\"2013-04-25T10:37:35Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-9N105488J74848037KF4QO3I\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4W335777UN8721338\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4W335777UN8721338/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.san"
28
+ -> "{\"payments\":[{\"id\":\"PAY-7F944019LL3444544KF5BJOQ\",\"create_time\":\"2013-04-26T05:46:34Z\",\"update_time\":\"2013-04-26T05:46:37Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"2VF23254MX2272604\",\"create_time\":\"2013-04-26T05:46:34Z\",\"update_time\":\"2013-04-26T05:46:37Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-7F944019LL3444544KF5BJOQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2VF23254MX2272604\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2VF23254MX2272604/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F944019LL3444544KF5BJOQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7F944019LL3444544KF5BJOQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-49A93227RV5030257KF5BIFY\",\"create_time\":\"2013-04-26T05:43:51Z\",\"update_time\":\"2013-04-26T05:43:55Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"5EC63430H42995346\",\"create_time\":\"2013-04-26T05:43:51Z\",\"update_time\":\"2013-04-26T05:43:55Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-49A93227RV5030257KF5BIFY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/5EC63430H42995346\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/5EC63430H42995346/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-49A93227RV5030257KF5BIFY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-49A93227RV5030257KF5BIFY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-51326687487421944KF5BH3Q\",\"create_time\":\"2013-04-26T05:43:10Z\",\"update_time\":\"2013-04-26T05:43:10Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\"},\"transactions\":[{\"amount\":{\"total\":\"10.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"10.00\"}}}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-51326687487421944KF5BH3Q\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-85914261YJ749681L\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-51326687487421944KF5BH3Q/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]},{\"id\":\"PAY-6FC3936313982164AKF5BFHI\",\"create_time\":\"2013-04-26T05:37:33Z\",\"update_time\":\"2013-04-26T05:37:35Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"9MR04769XK572345M\",\"create_time\":\"2013-04-26T05:37:33Z\",\"update_time\":\"2013-04-26T05:37:35Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-6FC3936313982164AKF5BFHI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9MR04769XK572345M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9MR04769XK572345M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6FC3936313982164AKF5BFHI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6FC3936313982164AKF5BFHI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3Y717559PN075215MKF5BFFQ\",\"create_time\":\"2013-04-26T05:37:26Z\",\"update_time\":\"2013-04-26T05:37:28Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"7FF658696N275381M\",\"create_time\":\"2013-04-26T05:37:26Z\",\"update_time\":\"2013-04-26T05:37:28Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-3Y717559PN075215MKF5BFFQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7FF658696N275381M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7FF658696N275381M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3Y717559PN075215MKF5BFFQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3Y717559PN075215MKF5BFFQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-66X542721E258470NKF5BFEA\",\"create_time\":\"2013-04-26T05:37:20Z\",\"update_time\":\"2013-04-26T05:37:23Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"0M6775184W495294L\",\"create_time\":\"2013-04-26T05:37:21Z\",\"update_time\":\"2013-04-26T05:37:23Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-66X542721E258470NKF5BFEA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0M6775184W495294L\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0M6775184W495294L/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-66X542721E258470NKF5BFEA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-66X542721E258470NKF5BFEA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-7XL5305797375744LKF5BFEA\",\"create_time\":\"2013-04-26T05:37:20Z\",\"update_time\":\"2013-04-26T05:37:22Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"4NK94285TB3340154\",\"create_time\":\"2013-04-26T05:37:20Z\",\"update_time\":\"2013-04-26T05:37:22Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-7XL5305797375744LKF5BFEA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4NK94285TB3340154\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/4NK94285TB3340154/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7XL5305797375744LKF5BFEA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-7XL5305797375744LKF5BFEA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-5V573397P4834670DKF5BFCY\",\"create_time\":\"2013-04-26T05:37:15Z\",\"update_time\":\"2013-04-26T05:37:17Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":"
29
29
  read 8192 bytes
30
30
  reading 2 bytes...
31
31
  -> "\r\n"
32
32
  read 2 bytes
33
- -> "142a\r\n"
34
- reading 5162 bytes...
35
- -> "dbox.paypal.com/v1/payments/payment/PAY-9N105488J74848037KF4QO3I\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9N105488J74848037KF4QO3I\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3GL2386337922372BKF4QOZQ\",\"create_time\":\"2013-04-25T10:37:26Z\",\"update_time\":\"2013-04-25T10:37:31Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"5"
36
- -> "2 N Main ST\",\"city\":\"Johnstown\",\"state\":\"OH\",\"postal_code\":\"43210\",\"country_code\":\"US\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"0TJ67271619084815\",\"create_time\":\"2013-04-25T10:37:26Z\",\"update_time\":\"2013-04-25T10:37:31Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-3GL2386337922372BKF4QOZQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0TJ67271619084815\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/0TJ67271619084815/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3GL2386337922372BKF4QOZQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3GL2386337922372BKF4QOZQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-96E579680F121110PKF4QKZQ\",\"create_time\":\"2013-04-25T10:28:54Z\",\"update_time\":\"2013-04-25T10:29:53Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\",\"payer_info\":{\"email\":\"marcin.gorny-1@gmail.com\",\"first_name\":\"biedronka\",\"last_name\":\"biedronka\",\"payer_id\":\"8EUBH3F2SKJL2\"}},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"20.00\"}},\"description\":\"Pizza13\",\"related_resources\":[{\"sale\":{\"id\":\"37E90389LS3825352\",\"create_time\":\"2013-04-25T10:28:54Z\",\"update_time\":\"2013-04-25T10:29:53Z\",\"state\":\"completed\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-96E579680F121110PKF4QKZQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/37E90389LS3825352\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/37E90389LS3825352/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-96E579680F121110PKF4QKZQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-96E579680F121110PKF4QKZQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-93551992F6539335KKF4QHKA\",\"create_time\":\"2013-04-25T10:21:28Z\",\"update_time\":\"2013-04-25T10:21:30Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"49M03446R8590435M\",\"create_time\":\"2013-04-25T10:21:28Z\",\"update_time\":\"2013-04-25T10:21:30Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-93551992F6539335KKF4QHKA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/49M03446R8590435M\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/49M03446R8590435M/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-93551992F6539335KKF4QHKA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-93551992F6539335KKF4QHKA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-3JS16356JD102794YKF4QHHQ\",\"create_time\":\"2013-04-25T10:21:18Z\",\"update_time\":\"2013-04-25T10:21:20Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"6LT33095G47591526\",\"create_time\":\"2013-04-25T10:21:18Z\",\"update_time\":\"2013-04-25T10:21:20Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-3JS16356JD102794YKF4QHHQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6LT33095G47591526\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6LT33095G47591526/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3JS16356JD102794YKF4QHHQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3JS16356JD102794YKF4QHHQ\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-91801461P3077731NKF4QHGI\"}"
37
- read 5162 bytes
33
+ -> "bfa\r\n"
34
+ reading 3066 bytes...
35
+ -> "\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"9NS53175HV0997438\",\"create_time\":\"2013-04-26T05:37:15Z\",\"update_time\":\"2013-04-26T05:37:17Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-5V573397P4834670DKF5BFCY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9NS53175HV0997438\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9NS53175HV0997438/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5V573397P4834670DKF5BFCY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\""
36
+ -> ":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-5V573397P4834670DKF5BFCY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-44U57996ER339901MKF5BEYA\",\"create_time\":\"2013-04-26T05:36:32Z\",\"update_time\":\"2013-04-26T05:36:34Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-926684478N266762EKF5AR2Q\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"20.00\"}},\"description\":\"Pizza 4\",\"related_resources\":[{\"sale\":{\"id\":\"5V576565MV6826026\",\"create_time\":\"2013-04-26T05:36:32Z\",\"update_time\":\"2013-04-26T05:36:34Z\",\"state\":\"completed\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-44U57996ER339901MKF5BEYA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/5V576565MV6826026\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/5V576565MV6826026/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-44U57996ER339901MKF5BEYA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-44U57996ER339901MKF5BEYA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-0K313993Y4768024HKF5BEPQ\",\"create_time\":\"2013-04-26T05:35:58Z\",\"update_time\":\"2013-04-26T05:36:01Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card_token\":{\"credit_card_id\":\"CARD-926684478N266762EKF5AR2Q\"}}]},\"transactions\":[{\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"20.00\"}},\"description\":\"Pizza 4\",\"related_resources\":[{\"sale\":{\"id\":\"9KN427579N3250453\",\"create_time\":\"2013-04-26T05:35:58Z\",\"update_time\":\"2013-04-26T05:36:01Z\",\"state\":\"completed\",\"amount\":{\"total\":\"20.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-0K313993Y4768024HKF5BEPQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9KN427579N3250453\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9KN427579N3250453/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0K313993Y4768024HKF5BEPQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-0K313993Y4768024HKF5BEPQ\",\"rel\":\"self\",\"method\":\"GET\"}]}],\"count\":10,\"next_id\":\"PAY-9LW90008G66073115KF5BBDI\"}"
37
+ read 3066 bytes
38
38
  reading 2 bytes...
39
39
  -> "\r\n"
40
40
  read 2 bytes
@@ -43,61 +43,61 @@ read 2 bytes
43
43
  Conn keep-alive
44
44
  opening connection to api.sandbox.paypal.com...
45
45
  opened
46
- <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer oZZJUPoSoOwErVU0Fvf8dWwENTtGDBSERWKfivjakcU\r\nContent-Type: application/json\r\nUser-Agent: paypal-sdk-core/0.2.2 ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 138\r\n\r\n"
46
+ <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer VpNUzWtf3ZMZx5fbtzthRTtV.Mw3E5j0oeUkOLaClWc\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.3 (paypal-sdk-core 0.2.3; ruby 1.9.3p327-i686-linux)\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 138\r\n\r\n"
47
47
  <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
48
48
  -> "HTTP/1.1 201 Created\r\n"
49
49
  -> "Server: Apache-Coyote/1.1\r\n"
50
- -> "Date: Thu, 25 Apr 2013 10:48:15 GMT\r\n"
51
- -> "PayPal-Debug-Id: 37464bc9ed4a0\r\n"
50
+ -> "Date: Fri, 26 Apr 2013 05:46:46 GMT\r\n"
51
+ -> "PayPal-Debug-Id: 9d05b07d102c6\r\n"
52
52
  -> "Content-Type: application/json\r\n"
53
53
  -> "Content-Length: 347\r\n"
54
54
  -> "\r\n"
55
55
  reading 347 bytes...
56
- -> "{\"id\":\"CARD-5NK38980C6213343VKF4QT3Y\",\"valid_until\":\"2016-04-24T00:00:00.000Z\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5NK38980C6213343VKF4QT3Y\",\"rel\":\"self\",\"method\":\"GET\"}]}"
56
+ -> "{\"id\":\"CARD-30429915LC3037518KF5BJRQ\",\"valid_until\":\"2016-04-25T00:00:00.000Z\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-30429915LC3037518KF5BJRQ\",\"rel\":\"self\",\"method\":\"GET\"}]}"
57
57
  read 347 bytes
58
58
  Conn keep-alive
59
59
  opening connection to api.sandbox.paypal.com...
60
60
  opened
61
- <- "GET /v1/vault/credit-card/CARD-5NK38980C6213343VKF4QT3Y HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer oZZJUPoSoOwErVU0Fvf8dWwENTtGDBSERWKfivjakcU\r\nContent-Type: application/json\r\nUser-Agent: paypal-sdk-core/0.2.2 ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]\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"
61
+ <- "GET /v1/vault/credit-card/CARD-30429915LC3037518KF5BJRQ HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer VpNUzWtf3ZMZx5fbtzthRTtV.Mw3E5j0oeUkOLaClWc\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.3 (paypal-sdk-core 0.2.3; ruby 1.9.3p327-i686-linux)\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"
62
62
  -> "HTTP/1.1 200 OK\r\n"
63
63
  -> "Server: Apache-Coyote/1.1\r\n"
64
- -> "Date: Thu, 25 Apr 2013 10:48:15 GMT\r\n"
65
- -> "PayPal-Debug-Id: 0e9e5226eca6b\r\n"
64
+ -> "Date: Fri, 26 Apr 2013 05:46:47 GMT\r\n"
65
+ -> "PayPal-Debug-Id: 45a81e4510c22\r\n"
66
66
  -> "Content-Type: application/json\r\n"
67
67
  -> "Content-Length: 347\r\n"
68
68
  -> "\r\n"
69
69
  reading 347 bytes...
70
- -> "{\"id\":\"CARD-5NK38980C6213343VKF4QT3Y\",\"valid_until\":\"2016-04-24T00:00:00.000Z\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-5NK38980C6213343VKF4QT3Y\",\"rel\":\"self\",\"method\":\"GET\"}]}"
70
+ -> "{\"id\":\"CARD-30429915LC3037518KF5BJRQ\",\"valid_until\":\"2016-04-25T00:00:00.000Z\",\"state\":\"ok\",\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx1111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-30429915LC3037518KF5BJRQ\",\"rel\":\"self\",\"method\":\"GET\"}]}"
71
71
  read 347 bytes
72
72
  Conn keep-alive
73
73
  opening connection to api.sandbox.paypal.com...
74
74
  opened
75
- <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer rmEAod96Ok-P8b0L.yjgtceMgptc4H85ahkd-YSyfWA\r\nContent-Type: application/json\r\nUser-Agent: paypal-sdk-core/0.2.2 ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]\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"
75
+ <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer JE8G4V.17O9J9xIZFKQITpoUmrpViF8lA-VyQfQCDqo\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.3 (paypal-sdk-core 0.2.3; ruby 1.9.3p327-i686-linux)\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"
76
76
  -> "HTTP/1.1 404 Not Found\r\n"
77
77
  -> "Server: Apache-Coyote/1.1\r\n"
78
- -> "Date: Thu, 25 Apr 2013 10:48:17 GMT\r\n"
79
- -> "PayPal-Debug-Id: 8812df9cec100\r\n"
78
+ -> "Date: Fri, 26 Apr 2013 05:46:48 GMT\r\n"
79
+ -> "PayPal-Debug-Id: ea69630610998\r\n"
80
80
  -> "Content-Type: application/json\r\n"
81
81
  -> "Content-Length: 189\r\n"
82
82
  -> "\r\n"
83
83
  reading 189 bytes...
84
- -> "{\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"The requested resource ID was not found\",\"information_link\":\"https://developer.paypal.com/docs/api/#INVALID_RESOURCE_ID\",\"debug_id\":\"8812df9cec100\"}"
84
+ -> "{\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"The requested resource ID was not found\",\"information_link\":\"https://developer.paypal.com/docs/api/#INVALID_RESOURCE_ID\",\"debug_id\":\"ea69630610998\"}"
85
85
  read 189 bytes
86
86
  Conn keep-alive
87
87
  opening connection to api.sandbox.paypal.com...
88
88
  opened
89
- <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer rmEAod96Ok-P8b0L.yjgtceMgptc4H85ahkd-YSyfWA\r\nContent-Type: application/json\r\nUser-Agent: paypal-sdk-core/0.2.2 ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 2\r\n\r\n"
89
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer JE8G4V.17O9J9xIZFKQITpoUmrpViF8lA-VyQfQCDqo\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.3 (paypal-sdk-core 0.2.3; ruby 1.9.3p327-i686-linux)\r\nAccept: */*\r\nHost: api.sandbox.paypal.com\r\nContent-Length: 2\r\n\r\n"
90
90
  <- "{}"
91
91
  -> "HTTP/1.1 400 Bad Request\r\n"
92
92
  -> "Server: Apache-Coyote/1.1\r\n"
93
- -> "Date: Thu, 25 Apr 2013 10:48:19 GMT\r\n"
93
+ -> "Date: Fri, 26 Apr 2013 05:46:50 GMT\r\n"
94
94
  -> "Connection: close\r\n"
95
- -> "PayPal-Debug-Id: c985399cec4c8\r\n"
95
+ -> "PayPal-Debug-Id: 1530f96611238\r\n"
96
96
  -> "Content-Type: application/json\r\n"
97
97
  -> "Content-Length: 346\r\n"
98
98
  -> "Connection: close\r\n"
99
99
  -> "\r\n"
100
100
  reading 346 bytes...
101
- -> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"payer\",\"issue\":\"Required field missing\"},{\"field\":\"transactions\",\"issue\":\"Required field missing\"},{\"field\":\"intent\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"c985399cec4c8\"}"
101
+ -> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"payer\",\"issue\":\"Required field missing\"},{\"field\":\"transactions\",\"issue\":\"Required field missing\"},{\"field\":\"intent\",\"issue\":\"Required field missing\"}],\"message\":\"Invalid request - see details\",\"information_link\":\"https://developer.paypal.com/docs/api/#VALIDATION_ERROR\",\"debug_id\":\"1530f96611238\"}"
102
102
  read 346 bytes
103
103
  Conn close
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-25 00:00:00.000000000 Z
11
+ date: 2013-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple