paypal-sdk-core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +11 -0
- data/README.md +16 -0
- data/Rakefile +5 -0
- data/lib/generators/paypal/sdk/USAGE +3 -0
- data/lib/generators/paypal/sdk/install_generator.rb +17 -0
- data/lib/generators/paypal/sdk/templates/paypal.rb +2 -0
- data/lib/generators/paypal/sdk/templates/paypal.yml +32 -0
- data/lib/paypal-sdk-core.rb +40 -0
- data/lib/paypal-sdk/core/api/base.rb +166 -0
- data/lib/paypal-sdk/core/api/data_types/base.rb +236 -0
- data/lib/paypal-sdk/core/api/data_types/enum.rb +26 -0
- data/lib/paypal-sdk/core/api/data_types/simple_types.rb +47 -0
- data/lib/paypal-sdk/core/api/merchant.rb +122 -0
- data/lib/paypal-sdk/core/api/platform.rb +75 -0
- data/lib/paypal-sdk/core/authentication.rb +79 -0
- data/lib/paypal-sdk/core/config.rb +138 -0
- data/lib/paypal-sdk/core/credential/base.rb +27 -0
- data/lib/paypal-sdk/core/credential/certificate.rb +32 -0
- data/lib/paypal-sdk/core/credential/signature.rb +22 -0
- data/lib/paypal-sdk/core/credential/third_party/subject.rb +25 -0
- data/lib/paypal-sdk/core/credential/third_party/token.rb +39 -0
- data/lib/paypal-sdk/core/logging.rb +43 -0
- data/lib/paypal-sdk/core/util/oauth_signature.rb +64 -0
- data/lib/paypal-sdk/core/version.rb +7 -0
- data/spec/config/cert_key.pem +33 -0
- data/spec/config/paypal.yml +29 -0
- data/spec/core/api/data_type_spec.rb +164 -0
- data/spec/core/api/merchant_spec.rb +114 -0
- data/spec/core/api/platform_spec.rb +107 -0
- data/spec/core/config_spec.rb +48 -0
- data/spec/core/logging_spec.rb +28 -0
- data/spec/log/test.log +84 -0
- data/spec/spec_helper.rb +11 -0
- metadata +109 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PayPal::SDK::Core::API::Merchant do
|
4
|
+
|
5
|
+
Merchant = PayPal::SDK::Core::API::Merchant
|
6
|
+
|
7
|
+
TransactionSearchParams = { "StartDate" => "2012-09-30T00:00:00+0530", "EndDate" => "2012-09-30T00:01:00+0530"}
|
8
|
+
|
9
|
+
describe "Success request" do
|
10
|
+
it "with default configuration" do
|
11
|
+
client = Merchant.new
|
12
|
+
response = client.request("TransactionSearch", TransactionSearchParams )
|
13
|
+
response["Ack"].should eql "Success"
|
14
|
+
end
|
15
|
+
|
16
|
+
it "with ssl certificate" do
|
17
|
+
client = Merchant.new(:with_certificate)
|
18
|
+
response = client.request("TransactionSearch", TransactionSearchParams)
|
19
|
+
response["Ack"].should eql "Success"
|
20
|
+
end
|
21
|
+
|
22
|
+
it "with oauth token" do
|
23
|
+
client = Merchant.new(:with_oauth_token)
|
24
|
+
response = client.request("TransactionSearch", TransactionSearchParams)
|
25
|
+
response["Ack"].should eql "Success"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "Format request" do
|
30
|
+
|
31
|
+
before :all do
|
32
|
+
@client = Merchant.new
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should handle :value member" do
|
36
|
+
uri, request, http_header = @client.format_request("Action", :amount => { :value => "50" } )
|
37
|
+
request.should match '<amount>50</amount>'
|
38
|
+
uri, request, http_header = @client.format_request("Action", "amount" => { "value" => "50" } )
|
39
|
+
request.should match '<amount>50</amount>'
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should handle attribute" do
|
43
|
+
uri, request, http_header = @client.format_request("Action", :amount => { :"@currencyID" => "USD", :value => "50" } )
|
44
|
+
request.should match '<amount currencyID="USD">50</amount>'
|
45
|
+
uri, request, http_header = @client.format_request("Action", "amount" => { "@currencyID" => "USD", "value" => "50" } )
|
46
|
+
request.should match '<amount currencyID="USD">50</amount>'
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should handle members" do
|
50
|
+
uri, request, http_header = @client.format_request("Action", :list => { :amount => { :"@currencyID" => "USD", :value => "50" } } )
|
51
|
+
request.should match '<list><amount currencyID="USD">50</amount></list>'
|
52
|
+
end
|
53
|
+
|
54
|
+
it "should handle array of members" do
|
55
|
+
uri, request, http_header = @client.format_request("Action",
|
56
|
+
:list => { :amount => [ { :"@currencyID" => "USD", :value => "50" }, { :"@currencyID" => "USD", :value => "25" } ] } )
|
57
|
+
request.should match '<list><amount currencyID="USD">50</amount><amount currencyID="USD">25</amount></list>'
|
58
|
+
end
|
59
|
+
|
60
|
+
it "should handle namespace" do
|
61
|
+
uri, request, http_header = @client.format_request("Action", :"ebl:amount" => { :"@cc:currencyID" => "USD", :value => "50" } )
|
62
|
+
request.should match '<ebl:amount cc:currencyID="USD">50</ebl:amount>'
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe "Failure request" do
|
67
|
+
|
68
|
+
def should_be_failure(response, message = nil)
|
69
|
+
response.should_not be_nil
|
70
|
+
response["Ack"].should eql "Failure"
|
71
|
+
response["Errors"].should_not be_nil
|
72
|
+
errors = response["Errors"].is_a?(Array) ? response["Errors"][0] : response["Errors"]
|
73
|
+
errors["ShortMessage"].should match message if message
|
74
|
+
end
|
75
|
+
|
76
|
+
it "invalid 3 token authentication" do
|
77
|
+
client = Merchant.new(:username => "invalid")
|
78
|
+
response = client.request("TransactionSearch", TransactionSearchParams )
|
79
|
+
should_be_failure(response, "Security error")
|
80
|
+
end
|
81
|
+
|
82
|
+
it "invalid ssl certificate authentication" do
|
83
|
+
client = Merchant.new(:with_certificate, :username => "invalid")
|
84
|
+
response = client.request("TransactionSearch", TransactionSearchParams )
|
85
|
+
should_be_failure(response, "Authorization Failed")
|
86
|
+
end
|
87
|
+
|
88
|
+
it "invalid end point" do
|
89
|
+
client = Merchant.new(:merchant_end_point => "https://invalid-api-3t.sandbox.paypal.com/2.0/")
|
90
|
+
response = client.request("TransactionSearch", TransactionSearchParams )
|
91
|
+
should_be_failure(response)
|
92
|
+
end
|
93
|
+
|
94
|
+
it "with nvp endpoint" do
|
95
|
+
client = Merchant.new(:merchant_end_point => "https://svcs.sandbox.paypal.com/AdaptivePayments")
|
96
|
+
response = client.request("TransactionSearch", TransactionSearchParams )
|
97
|
+
should_be_failure(response, "Internal Server Error")
|
98
|
+
end
|
99
|
+
|
100
|
+
it "invalid action" do
|
101
|
+
client = Merchant.new
|
102
|
+
response = client.request("InvalidAction", TransactionSearchParams )
|
103
|
+
should_be_failure(response, "Internal Server Error")
|
104
|
+
end
|
105
|
+
|
106
|
+
it "invalid params" do
|
107
|
+
client = Merchant.new
|
108
|
+
response = client.request("TransactionSearch", { :invalid_params => "something" } )
|
109
|
+
should_be_failure(response, "invalid argument")
|
110
|
+
end
|
111
|
+
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PayPal::SDK::Core::API::Platform do
|
4
|
+
|
5
|
+
Platform = PayPal::SDK::Core::API::Platform
|
6
|
+
ConvertCurrencyParams = {
|
7
|
+
"baseAmountList" => { "currency" => [ { "code" => "USD", "amount" => "2.0"} ]},
|
8
|
+
"convertToCurrencyList" => { "currencyCode" => ["GBP"] } }
|
9
|
+
CreateInvoiceParams = {
|
10
|
+
"invoice" => {
|
11
|
+
"merchantEmail" => "platfo_1255077030_biz@gmail.com", "payerEmail" => "sender@yahoo.com",
|
12
|
+
"itemList" => { "item" => [ { "name"=>"item1", "quantity"=>"1", "unitPrice"=>"1.00" },
|
13
|
+
{ "name"=>"item2", "quantity"=>"2", "unitPrice"=>"2.00" } ] },
|
14
|
+
"currencyCode" => "USD", "paymentTerms" => "DueOnReceipt" } }
|
15
|
+
|
16
|
+
it "create client with Service name" do
|
17
|
+
client = Platform.new("AdaptivePayments")
|
18
|
+
client.uri.path.should match "AdaptivePayments$"
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "Success request" do
|
22
|
+
def should_be_success(response)
|
23
|
+
response.should_not be_nil
|
24
|
+
response["responseEnvelope"].should_not be_nil
|
25
|
+
response["responseEnvelope"]["ack"].should eql "Success"
|
26
|
+
end
|
27
|
+
|
28
|
+
it "with default configuration" do
|
29
|
+
client = Platform.new("AdaptivePayments")
|
30
|
+
response = client.request("ConvertCurrency", ConvertCurrencyParams)
|
31
|
+
should_be_success(response)
|
32
|
+
end
|
33
|
+
|
34
|
+
it "with certificate authentication" do
|
35
|
+
client = Platform.new("AdaptivePayments", :with_certificate)
|
36
|
+
response = client.request("ConvertCurrency", ConvertCurrencyParams)
|
37
|
+
should_be_success(response)
|
38
|
+
end
|
39
|
+
|
40
|
+
it "with oauth token" do
|
41
|
+
client = Platform.new("Invoice", :with_oauth_token )
|
42
|
+
response = client.request("CreateInvoice", CreateInvoiceParams)
|
43
|
+
should_be_success(response)
|
44
|
+
end
|
45
|
+
|
46
|
+
it "with proxy" do
|
47
|
+
client = Platform.new("AdaptivePayments", :with_proxy)
|
48
|
+
response = client.request("ConvertCurrency", ConvertCurrencyParams)
|
49
|
+
should_be_success(response)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe "Failure request" do
|
54
|
+
def should_be_failure(response, message = nil)
|
55
|
+
response.should_not be_nil
|
56
|
+
response["responseEnvelope"].should_not be_nil
|
57
|
+
response["responseEnvelope"]["ack"].should eql "Failure"
|
58
|
+
response["error"][0]["message"].should match message if message
|
59
|
+
end
|
60
|
+
|
61
|
+
it "invalid 3 token authentication" do
|
62
|
+
client = Platform.new("AdaptivePayments", :password => "invalid")
|
63
|
+
response = client.request("ConvertCurrency", ConvertCurrencyParams )
|
64
|
+
should_be_failure(response, "Authentication failed")
|
65
|
+
end
|
66
|
+
|
67
|
+
it "invalid ssl certificate authentication" do
|
68
|
+
client = Platform.new("AdaptivePayments", :with_certificate, :username => "invalid")
|
69
|
+
response = client.request("ConvertCurrency", ConvertCurrencyParams )
|
70
|
+
should_be_failure(response, "Authentication failed")
|
71
|
+
end
|
72
|
+
|
73
|
+
it "invalid end point" do
|
74
|
+
client = Platform.new(:platform_end_point => "https://svcs-invalid.sandbox.paypal.com/AdaptivePayments")
|
75
|
+
response = client.request("ConvertCurrency", ConvertCurrencyParams )
|
76
|
+
should_be_failure(response)
|
77
|
+
end
|
78
|
+
|
79
|
+
it "with soap endpoint" do
|
80
|
+
client = Platform.new(:platform_end_point => "https://api-3t.sandbox.paypal.com/2.0/")
|
81
|
+
response = client.request("ConvertCurrency", ConvertCurrencyParams )
|
82
|
+
should_be_failure(response, "Not Found")
|
83
|
+
end
|
84
|
+
|
85
|
+
it "invalid service" do
|
86
|
+
lambda{
|
87
|
+
client = Platform.new("InvalidService")
|
88
|
+
response = client.request("ConvertCurrency", ConvertCurrencyParams )
|
89
|
+
}.should raise_error
|
90
|
+
end
|
91
|
+
|
92
|
+
it "invalid action" do
|
93
|
+
client = Platform.new("AdaptivePayments")
|
94
|
+
response = client.request("InvalidAction", ConvertCurrencyParams)
|
95
|
+
should_be_failure(response, "Internal Server Error")
|
96
|
+
end
|
97
|
+
|
98
|
+
it "invalid params" do
|
99
|
+
client = Platform.new("AdaptivePayments")
|
100
|
+
response = client.request("ConvertCurrency", { "inValidCurrencyParams" => {} })
|
101
|
+
should_be_failure(response, "Invalid request parameter")
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PayPal::SDK::Core::Config do
|
4
|
+
|
5
|
+
Config = PayPal::SDK::Core::Config
|
6
|
+
|
7
|
+
it "load configuration file and default environment" do
|
8
|
+
lambda {
|
9
|
+
Config.load("spec/config/paypal.yml", "test")
|
10
|
+
Config.default_environment.should eql "test"
|
11
|
+
}.should_not raise_error
|
12
|
+
end
|
13
|
+
|
14
|
+
it "return default environment configuration" do
|
15
|
+
Config.config.should be_a Config
|
16
|
+
end
|
17
|
+
|
18
|
+
it "return configuration based on environment" do
|
19
|
+
Config.config(:development).should be_a Config
|
20
|
+
end
|
21
|
+
|
22
|
+
it "override default configuration" do
|
23
|
+
override_configuration = { :username => "test.example.com", :app_id => "test"}
|
24
|
+
config = Config.config(override_configuration)
|
25
|
+
|
26
|
+
config.username.should eql(override_configuration[:username])
|
27
|
+
config.app_id.should eql(override_configuration[:app_id])
|
28
|
+
end
|
29
|
+
|
30
|
+
it "get cached config" do
|
31
|
+
Config.config(:test).should eql Config.config(:test)
|
32
|
+
Config.config(:test).should_not eql Config.config(:development)
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should raise error on invalid environment" do
|
36
|
+
lambda {
|
37
|
+
Config.config(:invalid_env)
|
38
|
+
}.should raise_error "Configuration[invalid_env] NotFound"
|
39
|
+
end
|
40
|
+
|
41
|
+
it "set logger" do
|
42
|
+
require 'logger'
|
43
|
+
my_logger = Logger.new(STDERR)
|
44
|
+
Config.logger = my_logger
|
45
|
+
Config.logger.should eql my_logger
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'stringio'
|
3
|
+
|
4
|
+
describe PayPal::SDK::Core::Logging do
|
5
|
+
Logging = PayPal::SDK::Core::Logging
|
6
|
+
|
7
|
+
class TestLogging
|
8
|
+
include Logging
|
9
|
+
end
|
10
|
+
|
11
|
+
before :each do
|
12
|
+
@logger_file = StringIO.new
|
13
|
+
Logging.logger = Logger.new(@logger_file)
|
14
|
+
@test_logging = TestLogging.new
|
15
|
+
end
|
16
|
+
|
17
|
+
it "get logger object" do
|
18
|
+
@test_logging.logger.should be_a Logger
|
19
|
+
end
|
20
|
+
|
21
|
+
it "write message to logger" do
|
22
|
+
test_message = "Example log message!!!"
|
23
|
+
@test_logging.logger.info(test_message)
|
24
|
+
@logger_file.rewind
|
25
|
+
@logger_file.read.should match test_message
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
data/spec/log/test.log
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Logfile created on 2012-12-05 16:57:39 +0530 by logger.rb/31641
|
2
|
+
I, [2012-12-05T16:57:39.232394 #15222] INFO -- : [3.221] Request: TransactionSearch
|
3
|
+
I, [2012-12-05T16:57:42.039941 #15222] INFO -- : [2.805] Request: TransactionSearch
|
4
|
+
I, [2012-12-05T16:57:44.357491 #15222] INFO -- : [2.276] Request: TransactionSearch
|
5
|
+
I, [2012-12-05T16:57:46.722434 #15222] INFO -- : [2.346] Request: TransactionSearch
|
6
|
+
I, [2012-12-05T16:57:49.122332 #15222] INFO -- : [2.393] Request: TransactionSearch
|
7
|
+
I, [2012-12-05T16:57:50.012914 #15222] INFO -- : [0.888] Request: TransactionSearch
|
8
|
+
I, [2012-12-05T16:57:51.995092 #15222] INFO -- : [1.980] Request: TransactionSearch
|
9
|
+
I, [2012-12-05T16:57:54.249437 #15222] INFO -- : [2.251] Request: InvalidAction
|
10
|
+
I, [2012-12-05T16:57:56.595491 #15222] INFO -- : [2.343] Request: TransactionSearch
|
11
|
+
I, [2012-12-05T16:57:58.692115 #15222] INFO -- : [2.095] Request: ConvertCurrency
|
12
|
+
I, [2012-12-05T16:58:00.581719 #15222] INFO -- : [1.888] Request: ConvertCurrency
|
13
|
+
I, [2012-12-05T16:58:01.974847 #15222] INFO -- : [1.391] Request: CreateInvoice
|
14
|
+
I, [2012-12-05T16:58:03.552033 #15222] INFO -- : [1.576] Request: ConvertCurrency
|
15
|
+
I, [2012-12-05T16:58:04.909613 #15222] INFO -- : [1.356] Request: ConvertCurrency
|
16
|
+
I, [2012-12-05T16:58:06.236921 #15222] INFO -- : [1.326] Request: ConvertCurrency
|
17
|
+
I, [2012-12-05T16:58:06.467116 #15222] INFO -- : [0.229] Request: ConvertCurrency
|
18
|
+
I, [2012-12-05T16:58:07.781136 #15222] INFO -- : [1.313] Request: ConvertCurrency
|
19
|
+
I, [2012-12-05T16:58:38.544691 #15222] INFO -- : [30.762] Request: ConvertCurrency
|
20
|
+
I, [2012-12-05T16:58:39.863460 #15222] INFO -- : [1.318] Request: InvalidAction
|
21
|
+
I, [2012-12-05T16:58:41.465895 #15222] INFO -- : [1.601] Request: ConvertCurrency
|
22
|
+
I, [2012-12-11T12:18:37.585687 #6113] INFO -- : [5.561] Request: TransactionSearch
|
23
|
+
I, [2012-12-11T12:18:40.663259 #6113] INFO -- : [3.056] Request: TransactionSearch
|
24
|
+
I, [2012-12-11T12:18:43.110696 #6113] INFO -- : [2.398] Request: TransactionSearch
|
25
|
+
I, [2012-12-11T12:18:56.458778 #6129] INFO -- : [2.471] Request: TransactionSearch
|
26
|
+
I, [2012-12-11T12:18:59.033853 #6129] INFO -- : [2.572] Request: TransactionSearch
|
27
|
+
I, [2012-12-11T12:19:00.817760 #6129] INFO -- : [1.730] Request: TransactionSearch
|
28
|
+
I, [2012-12-11T12:19:02.502938 #6129] INFO -- : [1.666] Request: TransactionSearch
|
29
|
+
I, [2012-12-11T12:19:04.242122 #6129] INFO -- : [1.731] Request: TransactionSearch
|
30
|
+
I, [2012-12-11T12:19:04.474048 #6129] INFO -- : [0.230] Request: TransactionSearch
|
31
|
+
I, [2012-12-11T12:19:06.231365 #6129] INFO -- : [1.755] Request: TransactionSearch
|
32
|
+
I, [2012-12-11T12:19:07.823633 #6129] INFO -- : [1.589] Request: InvalidAction
|
33
|
+
I, [2012-12-11T12:19:09.687874 #6129] INFO -- : [1.861] Request: TransactionSearch
|
34
|
+
I, [2012-12-11T12:19:11.382975 #6129] INFO -- : [1.693] Request: ConvertCurrency
|
35
|
+
I, [2012-12-11T12:19:13.098523 #6129] INFO -- : [1.714] Request: ConvertCurrency
|
36
|
+
I, [2012-12-11T12:19:14.504886 #6129] INFO -- : [1.404] Request: CreateInvoice
|
37
|
+
I, [2012-12-11T12:19:16.202236 #6129] INFO -- : [1.695] Request: ConvertCurrency
|
38
|
+
I, [2012-12-11T12:19:17.585108 #6129] INFO -- : [1.381] Request: ConvertCurrency
|
39
|
+
I, [2012-12-11T12:19:18.916533 #6129] INFO -- : [1.329] Request: ConvertCurrency
|
40
|
+
I, [2012-12-11T12:19:19.145778 #6129] INFO -- : [0.228] Request: ConvertCurrency
|
41
|
+
I, [2012-12-11T12:19:20.700778 #6129] INFO -- : [1.553] Request: ConvertCurrency
|
42
|
+
I, [2012-12-11T12:19:51.456123 #6129] INFO -- : [30.754] Request: ConvertCurrency
|
43
|
+
I, [2012-12-11T12:19:52.776353 #6129] INFO -- : [1.319] Request: InvalidAction
|
44
|
+
I, [2012-12-11T12:19:54.446933 #6129] INFO -- : [1.669] Request: ConvertCurrency
|
45
|
+
I, [2012-12-11T12:23:47.831975 #6407] INFO -- : [2.926] Request: TransactionSearch
|
46
|
+
I, [2012-12-11T12:23:50.508053 #6407] INFO -- : [2.673] Request: TransactionSearch
|
47
|
+
I, [2012-12-11T12:23:52.754280 #6407] INFO -- : [2.196] Request: TransactionSearch
|
48
|
+
I, [2012-12-11T12:23:54.860769 #6407] INFO -- : [2.088] Request: TransactionSearch
|
49
|
+
I, [2012-12-11T12:23:57.028681 #6407] INFO -- : [2.161] Request: TransactionSearch
|
50
|
+
I, [2012-12-11T12:23:57.919401 #6407] INFO -- : [0.888] Request: TransactionSearch
|
51
|
+
I, [2012-12-11T12:23:59.900302 #6407] INFO -- : [1.978] Request: TransactionSearch
|
52
|
+
I, [2012-12-11T12:24:01.922966 #6407] INFO -- : [2.019] Request: InvalidAction
|
53
|
+
I, [2012-12-11T12:24:04.245955 #6407] INFO -- : [2.320] Request: TransactionSearch
|
54
|
+
I, [2012-12-11T12:24:06.601155 #6407] INFO -- : [2.353] Request: ConvertCurrency
|
55
|
+
I, [2012-12-11T12:24:08.920831 #6407] INFO -- : [2.318] Request: ConvertCurrency
|
56
|
+
I, [2012-12-11T12:24:10.970431 #6407] INFO -- : [2.047] Request: CreateInvoice
|
57
|
+
I, [2012-12-11T12:24:13.294001 #6407] INFO -- : [2.322] Request: ConvertCurrency
|
58
|
+
I, [2012-12-11T12:24:15.353423 #6407] INFO -- : [2.058] Request: ConvertCurrency
|
59
|
+
I, [2012-12-11T12:24:17.339743 #6407] INFO -- : [1.984] Request: ConvertCurrency
|
60
|
+
I, [2012-12-11T12:24:18.229112 #6407] INFO -- : [0.888] Request: ConvertCurrency
|
61
|
+
I, [2012-12-11T12:24:20.201789 #6407] INFO -- : [1.972] Request: ConvertCurrency
|
62
|
+
I, [2012-12-11T12:24:51.628939 #6407] INFO -- : [31.426] Request: ConvertCurrency
|
63
|
+
I, [2012-12-11T12:24:53.169717 #6407] INFO -- : [1.539] Request: InvalidAction
|
64
|
+
I, [2012-12-11T12:24:54.768185 #6407] INFO -- : [1.597] Request: ConvertCurrency
|
65
|
+
I, [2012-12-11T12:31:56.114149 #6859] INFO -- : [2.668] Request: TransactionSearch
|
66
|
+
I, [2012-12-11T12:31:58.782490 #6859] INFO -- : [2.665] Request: TransactionSearch
|
67
|
+
I, [2012-12-11T12:32:00.324595 #6859] INFO -- : [1.493] Request: TransactionSearch
|
68
|
+
I, [2012-12-11T12:32:01.775568 #6859] INFO -- : [1.432] Request: TransactionSearch
|
69
|
+
I, [2012-12-11T12:32:03.326012 #6859] INFO -- : [1.543] Request: TransactionSearch
|
70
|
+
I, [2012-12-11T12:32:03.562141 #6859] INFO -- : [0.234] Request: TransactionSearch
|
71
|
+
I, [2012-12-11T12:32:05.109383 #6859] INFO -- : [1.545] Request: TransactionSearch
|
72
|
+
I, [2012-12-11T12:32:06.914846 #6859] INFO -- : [1.802] Request: InvalidAction
|
73
|
+
I, [2012-12-11T12:32:08.585059 #6859] INFO -- : [1.666] Request: TransactionSearch
|
74
|
+
I, [2012-12-11T12:32:10.296397 #6859] INFO -- : [1.710] Request: ConvertCurrency
|
75
|
+
I, [2012-12-11T12:32:11.948018 #6859] INFO -- : [1.650] Request: ConvertCurrency
|
76
|
+
I, [2012-12-11T12:32:13.424045 #6859] INFO -- : [1.474] Request: CreateInvoice
|
77
|
+
I, [2012-12-11T12:32:15.035141 #6859] INFO -- : [1.609] Request: ConvertCurrency
|
78
|
+
I, [2012-12-11T12:32:16.437864 #6859] INFO -- : [1.401] Request: ConvertCurrency
|
79
|
+
I, [2012-12-11T12:32:17.774598 #6859] INFO -- : [1.335] Request: ConvertCurrency
|
80
|
+
I, [2012-12-11T12:32:18.009612 #6859] INFO -- : [0.234] Request: ConvertCurrency
|
81
|
+
I, [2012-12-11T12:32:19.329705 #6859] INFO -- : [1.319] Request: ConvertCurrency
|
82
|
+
I, [2012-12-11T12:32:50.074458 #6859] INFO -- : [30.743] Request: ConvertCurrency
|
83
|
+
I, [2012-12-11T12:32:51.847657 #6859] INFO -- : [1.772] Request: InvalidAction
|
84
|
+
I, [2012-12-11T12:32:53.445379 #6859] INFO -- : [1.596] Request: ConvertCurrency
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: paypal-sdk-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- PayPal
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: xml-simple
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: Core library for PayPal ruby SDK
|
31
|
+
email:
|
32
|
+
- DL-PP-Platform-Ruby-SDK@ebay.com
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- spec/core/api/platform_spec.rb
|
38
|
+
- spec/core/api/data_type_spec.rb
|
39
|
+
- spec/core/api/merchant_spec.rb
|
40
|
+
- spec/core/config_spec.rb
|
41
|
+
- spec/core/logging_spec.rb
|
42
|
+
- spec/log/test.log
|
43
|
+
- spec/spec_helper.rb
|
44
|
+
- spec/config/paypal.yml
|
45
|
+
- spec/config/cert_key.pem
|
46
|
+
- lib/paypal-sdk-core.rb
|
47
|
+
- lib/generators/paypal/sdk/USAGE
|
48
|
+
- lib/generators/paypal/sdk/templates/paypal.yml
|
49
|
+
- lib/generators/paypal/sdk/templates/paypal.rb
|
50
|
+
- lib/generators/paypal/sdk/install_generator.rb
|
51
|
+
- lib/paypal-sdk/core/util/oauth_signature.rb
|
52
|
+
- lib/paypal-sdk/core/api/merchant.rb
|
53
|
+
- lib/paypal-sdk/core/api/platform.rb
|
54
|
+
- lib/paypal-sdk/core/api/data_types/simple_types.rb
|
55
|
+
- lib/paypal-sdk/core/api/data_types/enum.rb
|
56
|
+
- lib/paypal-sdk/core/api/data_types/base.rb
|
57
|
+
- lib/paypal-sdk/core/api/base.rb
|
58
|
+
- lib/paypal-sdk/core/authentication.rb
|
59
|
+
- lib/paypal-sdk/core/config.rb
|
60
|
+
- lib/paypal-sdk/core/version.rb
|
61
|
+
- lib/paypal-sdk/core/logging.rb
|
62
|
+
- lib/paypal-sdk/core/credential/third_party/subject.rb
|
63
|
+
- lib/paypal-sdk/core/credential/third_party/token.rb
|
64
|
+
- lib/paypal-sdk/core/credential/signature.rb
|
65
|
+
- lib/paypal-sdk/core/credential/certificate.rb
|
66
|
+
- lib/paypal-sdk/core/credential/base.rb
|
67
|
+
- Rakefile
|
68
|
+
- README.md
|
69
|
+
- Gemfile
|
70
|
+
homepage: https://www.x.com/
|
71
|
+
licenses: []
|
72
|
+
post_install_message:
|
73
|
+
rdoc_options: []
|
74
|
+
require_paths:
|
75
|
+
- lib
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
hash: -444567119
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ! '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
hash: -444567119
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 1.8.24
|
97
|
+
signing_key:
|
98
|
+
specification_version: 3
|
99
|
+
summary: Core library for PayPal ruby SDK
|
100
|
+
test_files:
|
101
|
+
- spec/core/api/platform_spec.rb
|
102
|
+
- spec/core/api/data_type_spec.rb
|
103
|
+
- spec/core/api/merchant_spec.rb
|
104
|
+
- spec/core/config_spec.rb
|
105
|
+
- spec/core/logging_spec.rb
|
106
|
+
- spec/log/test.log
|
107
|
+
- spec/spec_helper.rb
|
108
|
+
- spec/config/paypal.yml
|
109
|
+
- spec/config/cert_key.pem
|