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 +6 -14
- data/CHANGELOG.txt +3 -0
- data/lib/paypal-sdk/core/api/rest.rb +1 -1
- data/lib/paypal-sdk/core/util/http_helper.rb +2 -2
- data/lib/paypal-sdk/core/version.rb +1 -1
- data/spec/core/openid_connect_spec.rb +45 -20
- data/spec/log/rest_http.log +47 -35
- metadata +52 -52
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
@@ -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]
|
66
|
-
session.
|
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
|
@@ -43,22 +43,24 @@ describe PayPal::SDK::OpenIDConnect do
|
|
43
43
|
url.should match "id_token=testing"
|
44
44
|
end
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
-
|
73
|
-
|
74
|
-
|
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
|
-
|
79
|
-
|
80
|
-
|
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
|
data/spec/log/rest_http.log
CHANGED
@@ -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
|
-
|
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:
|
8
|
-
-> "PayPal-Debug-Id:
|
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-
|
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
|
-
|
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:
|
22
|
-
-> "PayPal-Debug-Id:
|
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-
|
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
|
-
-> "
|
34
|
-
reading
|
35
|
-
-> "\"
|
36
|
-
-> "
|
37
|
-
read
|
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
|
-
|
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:
|
51
|
-
-> "PayPal-Debug-Id:
|
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-
|
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
|
-
|
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:
|
65
|
-
-> "PayPal-Debug-Id:
|
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-
|
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
|
-
|
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:
|
79
|
-
-> "PayPal-Debug-Id:
|
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\":\"
|
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
|
-
|
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:
|
105
|
+
-> "Date: Wed, 29 May 2013 16:35:33 GMT\r\n"
|
94
106
|
-> "Connection: close\r\n"
|
95
|
-
-> "PayPal-Debug-Id:
|
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\":\"
|
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.
|
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-
|
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/
|
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/
|
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/
|
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/
|
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
|
69
|
-
- lib/paypal
|
70
|
-
- lib/paypal
|
71
|
-
- lib/paypal-sdk/core/api/
|
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/
|
80
|
-
- lib/paypal-sdk/core/
|
81
|
-
- lib/paypal-sdk/core/
|
82
|
-
- lib/paypal-sdk/core/
|
83
|
-
- lib/paypal-sdk/core/
|
84
|
-
- lib/paypal-sdk/core/
|
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/
|
89
|
-
- lib/paypal-sdk/core/
|
90
|
-
- lib/paypal-sdk/core/
|
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
|
97
|
-
- lib/paypal-sdk/core/
|
98
|
-
- lib/paypal-sdk/core/
|
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.
|
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/
|
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/
|
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/
|
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/
|
141
|
-
- spec/config/cert_key.pem
|
142
|
-
- spec/config/sample_data.yml
|
142
|
+
- spec/support/sample_data.rb
|