paypal-sdk-core 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NGQxNTQwNGE3MzYyNzNhZTVkNGIyYWVlOGQyNmRhMDMxODU4MDQ5NQ==
5
- data.tar.gz: !binary |-
6
- ZTNlYmZkMWYxNjc4Y2RkN2I4MmU5ZjVlMDY1MzJlYzg2ODUzNzFhYg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZWE2M2FhNGMwNzk4YWI0MzNlNTJmNTI2YjhjMTJjNDg5ZTMwOWM1MmNlZDE5
10
- ZGQzZWJmODBhMjUzMTcxNGJhOGNiYjU3ZjI3NmIyZjdjYjY4OGUyNGZhNGU2
11
- ZTNkNWY0YTg1MDAzMDhjYTI4MzM0YjE1MWEyZDcyZjk1ZGI3OTM=
12
- data.tar.gz: !binary |-
13
- ZGM1ZTA2OTg4ZWM2NmRhNmMyZDIxY2EyM2I5ZTE3MDRkYTc0NjE0NjBmMTE1
14
- ZDRlZGFkZmE2MDJjYjU5ODZhMTJkNjU4NTRiMGRjNWYxYzhmM2QzZjYxODY2
15
- NGJjZjFiNGI2YWMwNzBlOTRlMWY5MDgzYzAyYTI4YTEzNWM0MDU=
2
+ SHA1:
3
+ metadata.gz: 5a5e93acb63e16d36e56660442ca46eb474a6362
4
+ data.tar.gz: 94d2cb6fe227035aa65655d085e6d3be3fa1ab94
5
+ SHA512:
6
+ metadata.gz: 7cc7d4662f32aa114c64ba3596f907e98e3248100339a0796e420a84d9317fd952e6e9489b5abd42616bbd45f53f7079fb967864ef1a79c8716193473ab1e15f
7
+ data.tar.gz: 31e0571cba2427ba27b98b324983b2346a4a90123701e068a1915a43d07b6e8ff556f927408ac50bb9436d44860fed5c8f6cbb6462c192d908577307074074b7
data/CHANGELOG.txt CHANGED
@@ -1,3 +1,6 @@
1
+ Version 0.2.4 - May 29, 2013
2
+ - Support HTTP DELETE method
3
+
1
4
  Version 0.2.3 - Apr 26, 2013
2
5
  - Update User-Agent for openid-connect
3
6
 
@@ -133,7 +133,7 @@ module PayPal::SDK::Core
133
133
  def format_response(payload)
134
134
  payload[:data] =
135
135
  if payload[:response].code >= "200" and payload[:response].code <= "299"
136
- MultiJson.load(payload[:response].body)
136
+ payload[:response].body ? MultiJson.load(payload[:response].body) : {}
137
137
  elsif payload[:response].content_type == "application/json"
138
138
  { "error" => MultiJson.load(payload[:response].body) }
139
139
  else
@@ -62,8 +62,8 @@ module PayPal::SDK::Core
62
62
  log_http_call(payload) do
63
63
  http = payload[:http] || create_http_connection(payload[:uri])
64
64
  http.start do |session|
65
- if payload[:method] == :get
66
- session.get(payload[:uri].request_uri, payload[:header])
65
+ if [ :get, :delete, :head ].include? payload[:method]
66
+ session.send(payload[:method], payload[:uri].request_uri, payload[:header])
67
67
  else
68
68
  session.send(payload[:method], payload[:uri].request_uri, payload[:body], payload[:header])
69
69
  end
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module Core
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
6
6
  end
7
7
  end
@@ -43,22 +43,24 @@ describe PayPal::SDK::OpenIDConnect do
43
43
  url.should match "id_token=testing"
44
44
  end
45
45
 
46
- it "Create token" do
47
- lambda{
48
- tokeninfo = OpenIDConnect::Tokeninfo.create("invalid-autorize-code")
49
- }.should raise_error PayPal::SDK::Core::Exceptions::BadRequest
50
- end
46
+ describe "Validation" do
47
+ it "Create token" do
48
+ lambda{
49
+ tokeninfo = OpenIDConnect::Tokeninfo.create("invalid-autorize-code")
50
+ }.should raise_error PayPal::SDK::Core::Exceptions::BadRequest
51
+ end
51
52
 
52
- it "Refresh token" do
53
- lambda{
54
- tokeninfo = OpenIDConnect::Tokeninfo.refresh("invalid-refresh-token")
55
- }.should raise_error PayPal::SDK::Core::Exceptions::BadRequest
56
- end
53
+ it "Refresh token" do
54
+ lambda{
55
+ tokeninfo = OpenIDConnect::Tokeninfo.refresh("invalid-refresh-token")
56
+ }.should raise_error PayPal::SDK::Core::Exceptions::BadRequest
57
+ end
57
58
 
58
- it "Get userinfo" do
59
- lambda{
60
- userinfo = OpenIDConnect::Userinfo.get("invalid-access-token")
61
- }.should raise_error PayPal::SDK::Core::Exceptions::UnauthorizedAccess
59
+ it "Get userinfo" do
60
+ lambda{
61
+ userinfo = OpenIDConnect::Userinfo.get("invalid-access-token")
62
+ }.should raise_error PayPal::SDK::Core::Exceptions::UnauthorizedAccess
63
+ end
62
64
  end
63
65
 
64
66
  describe "Tokeninfo" do
@@ -68,16 +70,25 @@ describe PayPal::SDK::OpenIDConnect do
68
70
  :id_token => "test_id_token" )
69
71
  end
70
72
 
73
+ it "create" do
74
+ OpenIDConnect::Tokeninfo.api.stub( :post => { :access_token => "access_token" } )
75
+ tokeninfo = OpenIDConnect::Tokeninfo.create("authorize_code")
76
+ tokeninfo.should be_a OpenIDConnect::Tokeninfo
77
+ tokeninfo.access_token.should eql "access_token"
78
+ end
79
+
71
80
  it "refresh" do
72
- lambda{
73
- tokeninfo = @tokeninfo.refresh
74
- }.should raise_error PayPal::SDK::Core::Exceptions::BadRequest
81
+ @tokeninfo.api.stub( :post => { :access_token => "new_access_token" } )
82
+ @tokeninfo.access_token.should eql "test_access_token"
83
+ @tokeninfo.refresh
84
+ @tokeninfo.access_token.should eql "new_access_token"
75
85
  end
76
86
 
77
87
  it "userinfo" do
78
- lambda{
79
- userinfo = @tokeninfo.userinfo
80
- }.should raise_error PayPal::SDK::Core::Exceptions::UnauthorizedAccess
88
+ @tokeninfo.api.stub( :post => { :name => "Testing" } )
89
+ userinfo = @tokeninfo.userinfo
90
+ userinfo.should be_a OpenIDConnect::Userinfo
91
+ userinfo.name.should eql "Testing"
81
92
  end
82
93
 
83
94
  it "Generate logout_url" do
@@ -88,5 +99,19 @@ describe PayPal::SDK::OpenIDConnect do
88
99
  end
89
100
  end
90
101
 
102
+ describe "Userinfo" do
103
+ it "get" do
104
+ OpenIDConnect::Userinfo.api.stub( :post => { :name => "Testing" } )
105
+
106
+ userinfo = OpenIDConnect::Userinfo.get("access_token")
107
+ userinfo.should be_a OpenIDConnect::Userinfo
108
+ userinfo.name.should eql "Testing"
109
+
110
+ userinfo = OpenIDConnect::Userinfo.get( :access_token => "access_token" )
111
+ userinfo.should be_a OpenIDConnect::Userinfo
112
+ userinfo.name.should eql "Testing"
113
+ end
114
+ end
115
+
91
116
 
92
117
  end
@@ -1,103 +1,115 @@
1
- opening connection to api.sandbox.paypal.com...
1
+ opening connection to api.sandbox.paypal.com:443...
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 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"
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 pr6P5VCVJBWctQrwgmtzS4RhLv9LEGLupZFCazFv8Rk\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.4 (paypal-sdk-core 0.2.4; ruby 2.0.0p0-x86_64-darwin12.3.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"
4
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\"}}]}"
5
7
  -> "HTTP/1.1 201 Created\r\n"
6
8
  -> "Server: Apache-Coyote/1.1\r\n"
7
- -> "Date: Fri, 26 Apr 2013 05:46:37 GMT\r\n"
8
- -> "PayPal-Debug-Id: e6e15a750de50\r\n"
9
+ -> "Date: Wed, 29 May 2013 16:35:18 GMT\r\n"
10
+ -> "PayPal-Debug-Id: af7c799944028\r\n"
9
11
  -> "Content-Type: application/json\r\n"
10
12
  -> "Content-Length: 1176\r\n"
11
13
  -> "\r\n"
12
14
  reading 1176 bytes...
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\"}]}"
15
+ -> "{\"id\":\"PAY-4V566961KD6863226KGTC4QY\",\"create_time\":\"2013-05-29T16:35:15Z\",\"update_time\":\"2013-05-29T16:35:18Z\",\"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\":\"7F906919K3645391T\",\"create_time\":\"2013-05-29T16:35:15Z\",\"update_time\":\"2013-05-29T16:35:18Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4V566961KD6863226KGTC4QY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7F906919K3645391T\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7F906919K3645391T/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4V566961KD6863226KGTC4QY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4V566961KD6863226KGTC4QY\",\"rel\":\"self\",\"method\":\"GET\"}]}"
14
16
  read 1176 bytes
15
17
  Conn keep-alive
16
- opening connection to api.sandbox.paypal.com...
18
+ opening connection to api.sandbox.paypal.com:443...
17
19
  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 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"
20
+ starting SSL for api.sandbox.paypal.com:443...
21
+ SSL established
22
+ <- "GET /v1/payments/payment?count=10 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer pr6P5VCVJBWctQrwgmtzS4RhLv9LEGLupZFCazFv8Rk\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.4 (paypal-sdk-core 0.2.4; ruby 2.0.0p0-x86_64-darwin12.3.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"
19
23
  -> "HTTP/1.1 200 OK\r\n"
20
24
  -> "Server: Apache-Coyote/1.1\r\n"
21
- -> "Date: Fri, 26 Apr 2013 05:46:40 GMT\r\n"
22
- -> "PayPal-Debug-Id: 59b6b64d1207d\r\n"
25
+ -> "Date: Wed, 29 May 2013 16:35:22 GMT\r\n"
26
+ -> "PayPal-Debug-Id: 3cc5554543d04\r\n"
23
27
  -> "Content-Type: application/json\r\n"
24
28
  -> "Transfer-Encoding: chunked\r\n"
25
29
  -> "\r\n"
26
30
  -> "2000\r\n"
27
31
  reading 8192 bytes...
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\":"
32
+ -> "{\"payments\":[{\"id\":\"PAY-4V566961KD6863226KGTC4QY\",\"create_time\":\"2013-05-29T16:35:15Z\",\"update_time\":\"2013-05-29T16:35:18Z\",\"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\":\"7F906919K3645391T\",\"create_time\":\"2013-05-29T16:35:15Z\",\"update_time\":\"2013-05-29T16:35:18Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4V566961KD6863226KGTC4QY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7F906919K3645391T\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7F906919K3645391T/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4V566961KD6863226KGTC4QY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4V566961KD6863226KGTC4QY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-81764150P9204300KKGTC4KY\",\"create_time\":\"2013-05-29T16:34:51Z\",\"update_time\":\"2013-05-29T16:34:51Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\"},\"transactions\":[{\"amount\":{\"total\":\"100.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"75.00\",\"tax\":\"15.00\",\"shipping\":\"10.00\"}},\"description\":\"Transaction description.\"}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-81764150P9204300KKGTC4KY\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-3XP069827X693404T\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-81764150P9204300KKGTC4KY/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]},{\"id\":\"PAY-24B12231TM861715XKGTC3CQ\",\"create_time\":\"2013-05-29T16:32:10Z\",\"update_time\":\"2013-05-29T16:32: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\"}}]},\"transactions\":[{\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"7.47\"}},\"related_resources\":[{\"sale\":{\"id\":\"3TJ42157E24040313\",\"create_time\":\"2013-05-29T16:32:10Z\",\"update_time\":\"2013-05-29T16:32:13Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.47\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-24B12231TM861715XKGTC3CQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3TJ42157E24040313\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3TJ42157E24040313/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-24B12231TM861715XKGTC3CQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-24B12231TM861715XKGTC3CQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-6XJ14222FL8087926KGTCSUA\",\"create_time\":\"2013-05-29T16:14:08Z\",\"update_time\":\"2013-05-29T16:14:10Z\",\"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\":\"7.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.00\",\"tax\":\"1.00\",\"shipping\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"1H274673DP037103E\",\"create_time\":\"2013-05-29T16:14:08Z\",\"update_time\":\"2013-05-29T16:14:10Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-6XJ14222FL8087926KGTCSUA\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1H274673DP037103E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/1H274673DP037103E/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6XJ14222FL8087926KGTCSUA\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6XJ14222FL8087926KGTCSUA\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-4RU51688KK3768204KGTCPAI\",\"create_time\":\"2013-05-29T16:06:25Z\",\"update_time\":\"2013-05-29T16:06:32Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"3909 Witmer Road\",\"line2\":\"Niagara Falls\",\"city\":\"Niagara Falls\",\"state\":\"NY\",\"postal_code\":\"14305\",\"country_code\":\"UK\",\"phone\":\"716-298-1822\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"2.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"2.00\"}},\"description\":\"This is the payment description.\",\"related_resources\":[{\"sale\":{\"id\":\"7HA76075V26737635\",\"create_time\":\"2013-05-29T16:06:25Z\",\"update_time\":\"2013-05-29T16:06:32Z\",\"state\":\"completed\",\"amount\":{\"total\":\"2.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-4RU51688KK3768204KGTCPAI\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7HA76075V26737635\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/7HA76075V26737635/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4RU51688KK3768204KGTCPAI\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-4RU51688KK3768204KGTCPAI\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-9V506785ME366553PKGTCODY\",\"create_time\":\"2013-05-29T16:04:31Z\",\"update_time\":\"2013-05-29T16:04:34Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"3909 Witmer Road\",\"line2\":\"Niagara Falls\",\"city\":\"Niagara Falls\",\"state\":\"NY\",\"postal_code\":\"14305\",\"country_code\":\"UK\",\"phone\":\"716-298-1822\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"2.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"2.00\"}},\"description\":\"This is the payment description.\",\"related_resources\":[{\"sale\":{\"id\":\"9UT54249T0218763E\",\"create_time\":\"2013-05-29T16:04:31Z\",\"update_time\":\"2013-05-29T16:04:34Z\",\"state\":\"completed\",\"amount\":{\"total\":\"2.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-9V506785ME366553PKGTCODY\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9UT54249T0218763E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/9UT54249T0218763E/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9V506785ME366553PKGTCODY\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-9V506785ME366553PKGTCODY\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-2N3878544N6319625KGTCN2A\",\"create_time\":\"2013-05-29T16:03:52Z\",\"update_time\":\"2013-05-29T16:03:55Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"3909 Witmer Road\",\"line2\":\"Niagara Falls\",\"city\":\"Niagara Falls\",\"state\":\"NY\",\"postal_code\":\"14305\",\"country_code\":\"UK\",\"phone\":\"716-298-1822\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"2.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"2.00\"}},\"description\":\"This is the payment description.\",\"related_resources\":[{\"sale\":{\"id\":\"2LY07684WB187020E\",\"create_time\":\"2013-05-29T16:03:52Z\",\"update_time\":\"2013-05-29T16:03:55Z\",\"state\":\"completed\",\"amount\":{\"total\":\"2.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-2N38785"
29
33
  read 8192 bytes
30
34
  reading 2 bytes...
31
35
  -> "\r\n"
32
36
  read 2 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
37
+ -> "ff0\r\n"
38
+ reading 4080 bytes...
39
+ -> "44N6319625KGTCN2A\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2LY07684WB187020E\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/2LY07684WB187020E/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2N3878544N6319625KGTCN2A\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2N3878544N6319625KGTCN2A\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-2C7866858C8978021KGTCMCQ\",\"create_time\":\"2013-05-29T16:00:10Z\",\"update_time\":\"2013-05-29T16:00:1"
40
+ -> "3Z\",\"state\":\"approved\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"credit_card\",\"funding_instruments\":[{\"credit_card\":{\"type\":\"visa\",\"number\":\"xxxxxxxxxxxx0331\",\"expire_month\":\"11\",\"expire_year\":\"2019\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\",\"billing_address\":{\"line1\":\"3909 Witmer Road\",\"line2\":\"Niagara Falls\",\"city\":\"Niagara Falls\",\"state\":\"NY\",\"postal_code\":\"14305\",\"country_code\":\"US\",\"phone\":\"716-298-1822\"}}}]},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment description.\",\"related_resources\":[{\"sale\":{\"id\":\"6V412438HX5375506\",\"create_time\":\"2013-05-29T16:00:10Z\",\"update_time\":\"2013-05-29T16:00:13Z\",\"state\":\"completed\",\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-2C7866858C8978021KGTCMCQ\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6V412438HX5375506\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/6V412438HX5375506/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2C7866858C8978021KGTCMCQ\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2C7866858C8978021KGTCMCQ\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-76745787G08902613KGTCL3Q\",\"create_time\":\"2013-05-29T15:59:42Z\",\"update_time\":\"2013-05-29T15:59:49Z\",\"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\":\"7.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"5.00\",\"tax\":\"1.00\",\"shipping\":\"1.00\"}},\"description\":\"This is the payment transaction description.\",\"related_resources\":[{\"sale\":{\"id\":\"3U469105VW698144U\",\"create_time\":\"2013-05-29T15:59:42Z\",\"update_time\":\"2013-05-29T15:59:49Z\",\"state\":\"completed\",\"amount\":{\"total\":\"7.00\",\"currency\":\"USD\"},\"parent_payment\":\"PAY-76745787G08902613KGTCL3Q\",\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3U469105VW698144U\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/sale/3U469105VW698144U/refund\",\"rel\":\"refund\",\"method\":\"POST\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-76745787G08902613KGTCL3Q\",\"rel\":\"parent_payment\",\"method\":\"GET\"}]}}]}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-76745787G08902613KGTCL3Q\",\"rel\":\"self\",\"method\":\"GET\"}]},{\"id\":\"PAY-17P71880FU411491DKGTCLYA\",\"create_time\":\"2013-05-29T15:59:28Z\",\"update_time\":\"2013-05-29T15:59:28Z\",\"state\":\"created\",\"intent\":\"sale\",\"payer\":{\"payment_method\":\"paypal\"},\"transactions\":[{\"amount\":{\"total\":\"1.00\",\"currency\":\"USD\",\"details\":{\"subtotal\":\"1.00\"}},\"description\":\"This is the payment description.\"}],\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-17P71880FU411491DKGTCLYA\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7S6967144W139933M\",\"rel\":\"approval_url\",\"method\":\"REDIRECT\"},{\"href\":\"https://api.sandbox.paypal.com/v1/payments/payment/PAY-17P71880FU411491DKGTCLYA/execute\",\"rel\":\"execute\",\"method\":\"POST\"}]}],\"count\":10,\"next_id\":\"PAY-73C66341BN170503RKGTCKSY\"}"
41
+ read 4080 bytes
38
42
  reading 2 bytes...
39
43
  -> "\r\n"
40
44
  read 2 bytes
41
45
  -> "0\r\n"
42
46
  -> "\r\n"
43
47
  Conn keep-alive
44
- opening connection to api.sandbox.paypal.com...
48
+ opening connection to api.sandbox.paypal.com:443...
45
49
  opened
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"
50
+ starting SSL for api.sandbox.paypal.com:443...
51
+ SSL established
52
+ <- "POST /v1/vault/credit-card HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer 7pqAf0OIZ4PxjJ5XBIzpl0Hm2OyyCfmzrr5MupZHbIo\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.4 (paypal-sdk-core 0.2.4; ruby 2.0.0p0-x86_64-darwin12.3.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"
47
53
  <- "{\"type\":\"visa\",\"number\":\"4111111111111111\",\"expire_month\":\"11\",\"expire_year\":\"2018\",\"cvv2\":\"874\",\"first_name\":\"Joe\",\"last_name\":\"Shopper\"}"
48
54
  -> "HTTP/1.1 201 Created\r\n"
49
55
  -> "Server: Apache-Coyote/1.1\r\n"
50
- -> "Date: Fri, 26 Apr 2013 05:46:46 GMT\r\n"
51
- -> "PayPal-Debug-Id: 9d05b07d102c6\r\n"
56
+ -> "Date: Wed, 29 May 2013 16:35:28 GMT\r\n"
57
+ -> "PayPal-Debug-Id: 536da2314133a\r\n"
52
58
  -> "Content-Type: application/json\r\n"
53
59
  -> "Content-Length: 347\r\n"
54
60
  -> "\r\n"
55
61
  reading 347 bytes...
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\"}]}"
62
+ -> "{\"id\":\"CARD-8TJ30121FL751553XKGTC4TY\",\"valid_until\":\"2016-05-28T00: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-8TJ30121FL751553XKGTC4TY\",\"rel\":\"self\",\"method\":\"GET\"}]}"
57
63
  read 347 bytes
58
64
  Conn keep-alive
59
- opening connection to api.sandbox.paypal.com...
65
+ opening connection to api.sandbox.paypal.com:443...
60
66
  opened
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"
67
+ starting SSL for api.sandbox.paypal.com:443...
68
+ SSL established
69
+ <- "GET /v1/vault/credit-card/CARD-8TJ30121FL751553XKGTC4TY HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer 7pqAf0OIZ4PxjJ5XBIzpl0Hm2OyyCfmzrr5MupZHbIo\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.4 (paypal-sdk-core 0.2.4; ruby 2.0.0p0-x86_64-darwin12.3.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"
62
70
  -> "HTTP/1.1 200 OK\r\n"
63
71
  -> "Server: Apache-Coyote/1.1\r\n"
64
- -> "Date: Fri, 26 Apr 2013 05:46:47 GMT\r\n"
65
- -> "PayPal-Debug-Id: 45a81e4510c22\r\n"
72
+ -> "Date: Wed, 29 May 2013 16:35:30 GMT\r\n"
73
+ -> "PayPal-Debug-Id: e68314ca41aa7\r\n"
66
74
  -> "Content-Type: application/json\r\n"
67
75
  -> "Content-Length: 347\r\n"
68
76
  -> "\r\n"
69
77
  reading 347 bytes...
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\"}]}"
78
+ -> "{\"id\":\"CARD-8TJ30121FL751553XKGTC4TY\",\"valid_until\":\"2016-05-28T00: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-8TJ30121FL751553XKGTC4TY\",\"rel\":\"self\",\"method\":\"GET\"}]}"
71
79
  read 347 bytes
72
80
  Conn keep-alive
73
- opening connection to api.sandbox.paypal.com...
81
+ opening connection to api.sandbox.paypal.com:443...
74
82
  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 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"
83
+ starting SSL for api.sandbox.paypal.com:443...
84
+ SSL established
85
+ <- "GET /v1/payments/payment/PAY-1234 HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer pr6P5VCVJBWctQrwgmtzS4RhLv9LEGLupZFCazFv8Rk\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.4 (paypal-sdk-core 0.2.4; ruby 2.0.0p0-x86_64-darwin12.3.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"
76
86
  -> "HTTP/1.1 404 Not Found\r\n"
77
87
  -> "Server: Apache-Coyote/1.1\r\n"
78
- -> "Date: Fri, 26 Apr 2013 05:46:48 GMT\r\n"
79
- -> "PayPal-Debug-Id: ea69630610998\r\n"
88
+ -> "Date: Wed, 29 May 2013 16:35:31 GMT\r\n"
89
+ -> "PayPal-Debug-Id: b762004140393\r\n"
80
90
  -> "Content-Type: application/json\r\n"
81
91
  -> "Content-Length: 189\r\n"
82
92
  -> "\r\n"
83
93
  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\":\"ea69630610998\"}"
94
+ -> "{\"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\":\"b762004140393\"}"
85
95
  read 189 bytes
86
96
  Conn keep-alive
87
- opening connection to api.sandbox.paypal.com...
97
+ opening connection to api.sandbox.paypal.com:443...
88
98
  opened
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"
99
+ starting SSL for api.sandbox.paypal.com:443...
100
+ SSL established
101
+ <- "POST /v1/payments/payment HTTP/1.1\r\nX-Paypal-Sandbox-Email-Address: Platform.sdk.seller@gmail.com\r\nAuthorization: Bearer pr6P5VCVJBWctQrwgmtzS4RhLv9LEGLupZFCazFv8Rk\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/sdk-core-ruby 0.2.4 (paypal-sdk-core 0.2.4; ruby 2.0.0p0-x86_64-darwin12.3.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"
90
102
  <- "{}"
91
103
  -> "HTTP/1.1 400 Bad Request\r\n"
92
104
  -> "Server: Apache-Coyote/1.1\r\n"
93
- -> "Date: Fri, 26 Apr 2013 05:46:50 GMT\r\n"
105
+ -> "Date: Wed, 29 May 2013 16:35:33 GMT\r\n"
94
106
  -> "Connection: close\r\n"
95
- -> "PayPal-Debug-Id: 1530f96611238\r\n"
107
+ -> "PayPal-Debug-Id: 3f783f1640893\r\n"
96
108
  -> "Content-Type: application/json\r\n"
97
109
  -> "Content-Length: 346\r\n"
98
110
  -> "Connection: close\r\n"
99
111
  -> "\r\n"
100
112
  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\":\"1530f96611238\"}"
113
+ -> "{\"name\":\"VALIDATION_ERROR\",\"details\":[{\"field\":\"transactions\",\"issue\":\"Required field missing\"},{\"field\":\"payer\",\"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\":\"3f783f1640893\"}"
102
114
  read 346 bytes
103
115
  Conn close
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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-26 00:00:00.000000000 Z
11
+ date: 2013-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -45,57 +45,57 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - spec/core/api/platform_spec.rb
48
+ - spec/config/cert_key.pem
49
+ - spec/config/paypal.yml
50
+ - spec/config/sample_data.yml
49
51
  - spec/core/api/data_type_spec.rb
50
52
  - spec/core/api/ipn_spec.rb
51
- - spec/core/api/rest_spec.rb
52
53
  - spec/core/api/merchant_spec.rb
53
- - spec/core/openid_connect_spec.rb
54
+ - spec/core/api/platform_spec.rb
55
+ - spec/core/api/rest_spec.rb
54
56
  - spec/core/config_spec.rb
55
57
  - spec/core/logging_spec.rb
56
- - spec/support/sample_data.rb
57
- - spec/log/test.log
58
+ - spec/core/openid_connect_spec.rb
58
59
  - spec/log/rest_http.log
60
+ - spec/log/test.log
59
61
  - spec/spec_helper.rb
60
- - spec/config/paypal.yml
61
- - spec/config/cert_key.pem
62
- - spec/config/sample_data.yml
63
- - lib/paypal-sdk-core.rb
64
- - lib/generators/paypal/sdk/USAGE
65
- - lib/generators/paypal/sdk/templates/paypal.yml
66
- - lib/generators/paypal/sdk/templates/paypal.rb
62
+ - spec/support/sample_data.rb
67
63
  - lib/generators/paypal/sdk/install_generator.rb
68
- - lib/paypal-sdk/core/util/http_helper.rb
69
- - lib/paypal-sdk/core/util/oauth_signature.rb
70
- - lib/paypal-sdk/core/util/ordered_hash.rb
71
- - lib/paypal-sdk/core/api/rest.rb
72
- - lib/paypal-sdk/core/api/merchant.rb
73
- - lib/paypal-sdk/core/api/ipn.rb
74
- - lib/paypal-sdk/core/api/platform.rb
75
- - lib/paypal-sdk/core/api/data_types/simple_types.rb
76
- - lib/paypal-sdk/core/api/data_types/enum.rb
64
+ - lib/generators/paypal/sdk/templates/paypal.rb
65
+ - lib/generators/paypal/sdk/templates/paypal.yml
66
+ - lib/generators/paypal/sdk/USAGE
67
+ - lib/paypal-sdk/core/api/base.rb
77
68
  - lib/paypal-sdk/core/api/data_types/array_with_block.rb
78
69
  - lib/paypal-sdk/core/api/data_types/base.rb
79
- - lib/paypal-sdk/core/api/base.rb
80
- - lib/paypal-sdk/core/openid_connect/get_api.rb
81
- - lib/paypal-sdk/core/openid_connect/api.rb
82
- - lib/paypal-sdk/core/openid_connect/set_api.rb
83
- - lib/paypal-sdk/core/openid_connect/request_data_type.rb
84
- - lib/paypal-sdk/core/openid_connect/data_types.rb
70
+ - lib/paypal-sdk/core/api/data_types/enum.rb
71
+ - lib/paypal-sdk/core/api/data_types/simple_types.rb
72
+ - lib/paypal-sdk/core/api/ipn.rb
73
+ - lib/paypal-sdk/core/api/merchant.rb
74
+ - lib/paypal-sdk/core/api/platform.rb
75
+ - lib/paypal-sdk/core/api/rest.rb
76
+ - lib/paypal-sdk/core/api.rb
85
77
  - lib/paypal-sdk/core/authentication.rb
86
- - lib/paypal-sdk/core/credential.rb
87
78
  - lib/paypal-sdk/core/config.rb
88
- - lib/paypal-sdk/core/api.rb
89
- - lib/paypal-sdk/core/version.rb
90
- - lib/paypal-sdk/core/exceptions.rb
91
- - lib/paypal-sdk/core/util.rb
92
- - lib/paypal-sdk/core/openid_connect.rb
93
- - lib/paypal-sdk/core/logging.rb
79
+ - lib/paypal-sdk/core/credential/base.rb
80
+ - lib/paypal-sdk/core/credential/certificate.rb
81
+ - lib/paypal-sdk/core/credential/signature.rb
94
82
  - lib/paypal-sdk/core/credential/third_party/subject.rb
95
83
  - lib/paypal-sdk/core/credential/third_party/token.rb
96
- - lib/paypal-sdk/core/credential/signature.rb
97
- - lib/paypal-sdk/core/credential/certificate.rb
98
- - lib/paypal-sdk/core/credential/base.rb
84
+ - lib/paypal-sdk/core/credential.rb
85
+ - lib/paypal-sdk/core/exceptions.rb
86
+ - lib/paypal-sdk/core/logging.rb
87
+ - lib/paypal-sdk/core/openid_connect/api.rb
88
+ - lib/paypal-sdk/core/openid_connect/data_types.rb
89
+ - lib/paypal-sdk/core/openid_connect/get_api.rb
90
+ - lib/paypal-sdk/core/openid_connect/request_data_type.rb
91
+ - lib/paypal-sdk/core/openid_connect/set_api.rb
92
+ - lib/paypal-sdk/core/openid_connect.rb
93
+ - lib/paypal-sdk/core/util/http_helper.rb
94
+ - lib/paypal-sdk/core/util/oauth_signature.rb
95
+ - lib/paypal-sdk/core/util/ordered_hash.rb
96
+ - lib/paypal-sdk/core/util.rb
97
+ - lib/paypal-sdk/core/version.rb
98
+ - lib/paypal-sdk-core.rb
99
99
  - data/paypal.crt
100
100
  - Rakefile
101
101
  - README.md
@@ -110,33 +110,33 @@ require_paths:
110
110
  - lib
111
111
  required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ! '>='
113
+ - - '>='
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - ! '>='
118
+ - - '>='
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.0.0
123
+ rubygems_version: 2.0.3
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Core library for PayPal ruby SDKs
127
127
  test_files:
128
- - spec/core/api/platform_spec.rb
128
+ - spec/config/cert_key.pem
129
+ - spec/config/paypal.yml
130
+ - spec/config/sample_data.yml
129
131
  - spec/core/api/data_type_spec.rb
130
132
  - spec/core/api/ipn_spec.rb
131
- - spec/core/api/rest_spec.rb
132
133
  - spec/core/api/merchant_spec.rb
133
- - spec/core/openid_connect_spec.rb
134
+ - spec/core/api/platform_spec.rb
135
+ - spec/core/api/rest_spec.rb
134
136
  - spec/core/config_spec.rb
135
137
  - spec/core/logging_spec.rb
136
- - spec/support/sample_data.rb
137
- - spec/log/test.log
138
+ - spec/core/openid_connect_spec.rb
138
139
  - spec/log/rest_http.log
140
+ - spec/log/test.log
139
141
  - spec/spec_helper.rb
140
- - spec/config/paypal.yml
141
- - spec/config/cert_key.pem
142
- - spec/config/sample_data.yml
142
+ - spec/support/sample_data.rb