braintree 2.70.0 → 2.71.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.rdoc +1 -1
- data/lib/braintree.rb +2 -0
- data/lib/braintree/configuration.rb +6 -3
- data/lib/braintree/http.rb +1 -0
- data/lib/braintree/merchant_account_gateway.rb +12 -0
- data/lib/braintree/paginated_collection.rb +25 -0
- data/lib/braintree/paginated_result.rb +13 -0
- data/lib/braintree/successful_result.rb +1 -1
- data/lib/braintree/version.rb +1 -1
- data/spec/httpsd.pid +1 -1
- data/spec/integration/braintree/http_spec.rb +34 -0
- data/spec/integration/braintree/merchant_account_spec.rb +55 -0
- data/spec/unit/braintree/configuration_spec.rb +15 -1
- metadata +182 -184
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3b738bc128d7787e6bd9e22549852b4e7b8523aa
|
4
|
+
data.tar.gz: ab6983d9b00435a632c52093d328db16b190e685
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2628d4ab8d3642a20a268028abd90b3115d676bc14948cb6da534cace84831ec9d372fe106080fa8cfe1f613f6676f6d5dc7fb6349efec956e2a9d86e34916c9
|
7
|
+
data.tar.gz: 042842c809cbc9a7bad52b8d2734b34d48bf1f1798ac23e5c047b09c849435d6c36a2945c0f64d96bc09468c20b1bc01e2082db9bd6c84079a088397f4d85ece
|
data/README.rdoc
CHANGED
data/lib/braintree.rb
CHANGED
@@ -83,6 +83,8 @@ require "braintree/three_d_secure_info"
|
|
83
83
|
require "braintree/settlement_batch_summary"
|
84
84
|
require "braintree/settlement_batch_summary_gateway"
|
85
85
|
require "braintree/resource_collection"
|
86
|
+
require "braintree/paginated_collection"
|
87
|
+
require "braintree/paginated_result"
|
86
88
|
require "braintree/europe_bank_account"
|
87
89
|
require "braintree/europe_bank_account_gateway"
|
88
90
|
require "braintree/us_bank_account"
|
@@ -17,7 +17,8 @@ module Braintree
|
|
17
17
|
:proxy_address,
|
18
18
|
:proxy_port,
|
19
19
|
:proxy_user,
|
20
|
-
:proxy_pass
|
20
|
+
:proxy_pass,
|
21
|
+
:ssl_version
|
21
22
|
]
|
22
23
|
|
23
24
|
WRITABLE_ATTRIBUTES = [
|
@@ -33,7 +34,8 @@ module Braintree
|
|
33
34
|
:proxy_address,
|
34
35
|
:proxy_port,
|
35
36
|
:proxy_user,
|
36
|
-
:proxy_pass
|
37
|
+
:proxy_pass,
|
38
|
+
:ssl_version
|
37
39
|
]
|
38
40
|
|
39
41
|
class << self
|
@@ -81,7 +83,8 @@ module Braintree
|
|
81
83
|
:proxy_address => proxy_address,
|
82
84
|
:proxy_port => proxy_port,
|
83
85
|
:proxy_user => proxy_user,
|
84
|
-
:proxy_pass => proxy_pass
|
86
|
+
:proxy_pass => proxy_pass,
|
87
|
+
:ssl_version => ssl_version
|
85
88
|
)
|
86
89
|
end
|
87
90
|
|
data/lib/braintree/http.rb
CHANGED
@@ -76,6 +76,7 @@ module Braintree
|
|
76
76
|
connection.read_timeout = @config.http_read_timeout
|
77
77
|
if @config.ssl?
|
78
78
|
connection.use_ssl = true
|
79
|
+
connection.ssl_version = @config.ssl_version if @config.ssl_version
|
79
80
|
connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
80
81
|
connection.ca_file = @config.ca_file
|
81
82
|
connection.verify_callback = proc { |preverify_ok, ssl_context| _verify_ssl_certificate(preverify_ok, ssl_context) }
|
@@ -6,6 +6,18 @@ module Braintree
|
|
6
6
|
@config.assert_has_access_token_or_keys
|
7
7
|
end
|
8
8
|
|
9
|
+
def all
|
10
|
+
pc = PaginatedCollection.new { |page| _fetch_merchant_accounts(page) }
|
11
|
+
SuccessfulResult.new(:merchant_accounts => pc)
|
12
|
+
end
|
13
|
+
|
14
|
+
def _fetch_merchant_accounts(page_number)
|
15
|
+
response = @config.http.get("#{@config.base_merchant_path}/merchant_accounts?page=#{page_number}")
|
16
|
+
body = response[:merchant_accounts]
|
17
|
+
merchant_accounts = Util.extract_attribute_as_array(body, :merchant_account).map { |merchant_account| MerchantAccount._new(@gateway, merchant_account) }
|
18
|
+
PaginatedResult.new(body[:total_items], body[:page_size], merchant_accounts)
|
19
|
+
end
|
20
|
+
|
9
21
|
def create(attributes)
|
10
22
|
signature = MerchantAccountGateway._detect_signature(attributes)
|
11
23
|
Util.verify_keys(signature, attributes)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Braintree
|
2
|
+
class PaginatedCollection # :nodoc:
|
3
|
+
include Enumerable
|
4
|
+
|
5
|
+
def initialize(&block) # :nodoc:
|
6
|
+
@next_page_block = block
|
7
|
+
end
|
8
|
+
|
9
|
+
def each(&block)
|
10
|
+
current_page = 0
|
11
|
+
total_items = 0
|
12
|
+
|
13
|
+
loop do
|
14
|
+
current_page += 1
|
15
|
+
|
16
|
+
result = @next_page_block.call(current_page)
|
17
|
+
total_items = result.total_items
|
18
|
+
|
19
|
+
result.current_page.each(&block)
|
20
|
+
|
21
|
+
break if current_page * result.page_size >= total_items
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Braintree
|
2
|
+
class PaginatedResult
|
3
|
+
include BaseModule
|
4
|
+
|
5
|
+
attr_reader :total_items, :current_page, :page_size
|
6
|
+
|
7
|
+
def initialize(total_items, page_size, current_page) # :nodoc:
|
8
|
+
@total_items = total_items
|
9
|
+
@current_page = current_page
|
10
|
+
@page_size = page_size
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -2,7 +2,7 @@ module Braintree
|
|
2
2
|
class SuccessfulResult
|
3
3
|
include BaseModule
|
4
4
|
|
5
|
-
attr_reader :address, :credit_card, :customer, :merchant_account, :payment_method, :settlement_batch_summary, :subscription, :new_transaction, :transaction, :payment_method_nonce, :credentials, :merchant, :supported_networks, :paypal_account
|
5
|
+
attr_reader :address, :credit_card, :customer, :merchant_account, :payment_method, :settlement_batch_summary, :subscription, :new_transaction, :transaction, :payment_method_nonce, :credentials, :merchant, :supported_networks, :paypal_account, :merchant_accounts
|
6
6
|
|
7
7
|
def initialize(attributes = {}) # :nodoc:
|
8
8
|
@attrs = attributes.keys
|
data/lib/braintree/version.rb
CHANGED
data/spec/httpsd.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
4445
|
@@ -88,6 +88,40 @@ describe Braintree::Http do
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
+
describe "ssl_version" do
|
92
|
+
it "causes failed requests to sandbox with incompatible SSL version" do
|
93
|
+
begin
|
94
|
+
original_env = Braintree::Configuration.environment
|
95
|
+
Braintree::Configuration.environment = :sandbox
|
96
|
+
Braintree::Configuration.ssl_version = :TLSv1
|
97
|
+
Braintree::Configuration.stub(:base_merchant_path).and_return("/")
|
98
|
+
|
99
|
+
expect do
|
100
|
+
Braintree::Configuration.instantiate.http._http_do(Net::HTTP::Get, "/login")
|
101
|
+
end.to raise_error(Braintree::SSLCertificateError)
|
102
|
+
ensure
|
103
|
+
Braintree::Configuration.environment = original_env
|
104
|
+
Braintree::Configuration.ssl_version = nil
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
it "results in successful requests to sandbox with up-to-date SSL version" do
|
109
|
+
begin
|
110
|
+
original_env = Braintree::Configuration.environment
|
111
|
+
Braintree::Configuration.environment = :sandbox
|
112
|
+
Braintree::Configuration.ssl_version = :TLSv1_2
|
113
|
+
Braintree::Configuration.stub(:base_merchant_path).and_return("/")
|
114
|
+
|
115
|
+
expect do
|
116
|
+
Braintree::Configuration.instantiate.http._http_do(Net::HTTP::Get, "/login")
|
117
|
+
end.to_not raise_error
|
118
|
+
ensure
|
119
|
+
Braintree::Configuration.environment = original_env
|
120
|
+
Braintree::Configuration.ssl_version = nil
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
91
125
|
describe "ssl verification" do
|
92
126
|
it "rejects when the certificate isn't verified by our certificate authority (self-signed)" do
|
93
127
|
begin
|
@@ -60,6 +60,61 @@ VALID_APPLICATION_PARAMS = {
|
|
60
60
|
}
|
61
61
|
|
62
62
|
describe Braintree::MerchantAccount do
|
63
|
+
describe "all" do
|
64
|
+
it "returns all merchant accounts" do
|
65
|
+
gateway = Braintree::Gateway.new(
|
66
|
+
:client_id => "client_id$#{Braintree::Configuration.environment}$integration_client_id",
|
67
|
+
:client_secret => "client_secret$#{Braintree::Configuration.environment}$integration_client_secret",
|
68
|
+
:logger => Logger.new("/dev/null")
|
69
|
+
)
|
70
|
+
|
71
|
+
code = Braintree::OAuthTestHelper.create_grant(gateway, {
|
72
|
+
:merchant_public_id => "integration_merchant_id",
|
73
|
+
:scope => "read_write"
|
74
|
+
})
|
75
|
+
|
76
|
+
result = gateway.oauth.create_token_from_code(
|
77
|
+
:code => code,
|
78
|
+
:scope => "read_write"
|
79
|
+
)
|
80
|
+
|
81
|
+
gateway = Braintree::Gateway.new(
|
82
|
+
:access_token => result.credentials.access_token,
|
83
|
+
:logger => Logger.new("/dev/null")
|
84
|
+
)
|
85
|
+
|
86
|
+
result = gateway.merchant_account.all
|
87
|
+
result.should be_success
|
88
|
+
result.merchant_accounts.count.should > 20
|
89
|
+
end
|
90
|
+
|
91
|
+
it "returns merchant account with correct attributes" do
|
92
|
+
gateway = Braintree::Gateway.new(
|
93
|
+
:client_id => "client_id$#{Braintree::Configuration.environment}$integration_client_id",
|
94
|
+
:client_secret => "client_secret$#{Braintree::Configuration.environment}$integration_client_secret",
|
95
|
+
:logger => Logger.new("/dev/null")
|
96
|
+
)
|
97
|
+
|
98
|
+
result = gateway.merchant.create(
|
99
|
+
:email => "name@email.com",
|
100
|
+
:country_code_alpha3 => "USA",
|
101
|
+
:payment_methods => ["credit_card", "paypal"]
|
102
|
+
)
|
103
|
+
|
104
|
+
gateway = Braintree::Gateway.new(
|
105
|
+
:access_token => result.credentials.access_token,
|
106
|
+
:logger => Logger.new("/dev/null")
|
107
|
+
)
|
108
|
+
|
109
|
+
result = gateway.merchant_account.all
|
110
|
+
result.should be_success
|
111
|
+
result.merchant_accounts.count.should == 1
|
112
|
+
result.merchant_accounts.first.currency_iso_code.should == "USD"
|
113
|
+
result.merchant_accounts.first.status.should == "active"
|
114
|
+
result.merchant_accounts.first.default.should == true
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
63
118
|
describe "create" do
|
64
119
|
it "accepts the deprecated parameters" do
|
65
120
|
result = Braintree::MerchantAccount.create(DEPRECATED_APPLICATION_PARAMS)
|
@@ -78,6 +78,14 @@ describe Braintree::Configuration do
|
|
78
78
|
config.proxy_user.should == 'user'
|
79
79
|
config.proxy_pass.should == 'test'
|
80
80
|
end
|
81
|
+
|
82
|
+
it "accepts ssl version" do
|
83
|
+
config = Braintree::Configuration.new(
|
84
|
+
:ssl_version => :TLSv1_2
|
85
|
+
)
|
86
|
+
|
87
|
+
config.ssl_version.should == :TLSv1_2
|
88
|
+
end
|
81
89
|
end
|
82
90
|
|
83
91
|
describe "base_merchant_path" do
|
@@ -162,6 +170,13 @@ describe Braintree::Configuration do
|
|
162
170
|
gateway.config.proxy_user.should == "user"
|
163
171
|
gateway.config.proxy_pass.should == "test"
|
164
172
|
end
|
173
|
+
|
174
|
+
it "sets the ssl version" do
|
175
|
+
Braintree::Configuration.ssl_version = :TLSv1_2
|
176
|
+
gateway = Braintree::Configuration.gateway
|
177
|
+
|
178
|
+
gateway.config.ssl_version.should == :TLSv1_2
|
179
|
+
end
|
165
180
|
end
|
166
181
|
|
167
182
|
describe "self.environment=" do
|
@@ -289,7 +304,6 @@ describe Braintree::Configuration do
|
|
289
304
|
Braintree::Configuration.environment = :sandbox
|
290
305
|
Braintree::Configuration.instantiate.protocol.should == "https"
|
291
306
|
end
|
292
|
-
|
293
307
|
end
|
294
308
|
|
295
309
|
describe "server" do
|
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
5
|
-
prerelease:
|
4
|
+
version: 2.71.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Braintree
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: builder
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 2.0.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 2.0.0
|
30
27
|
description: Ruby library for integrating with the Braintree Gateway
|
@@ -35,239 +32,240 @@ extra_rdoc_files: []
|
|
35
32
|
files:
|
36
33
|
- README.rdoc
|
37
34
|
- LICENSE
|
38
|
-
- lib/braintree
|
39
|
-
- lib/braintree/webhook_testing_gateway.rb
|
40
|
-
- lib/braintree/version.rb
|
41
|
-
- lib/braintree/plan.rb
|
42
|
-
- lib/braintree/ach_mandate.rb
|
43
|
-
- lib/braintree/configuration.rb
|
35
|
+
- lib/braintree.rb
|
44
36
|
- lib/braintree/disbursement.rb
|
45
|
-
- lib/braintree/
|
46
|
-
- lib/braintree/
|
47
|
-
- lib/braintree/exceptions.rb
|
48
|
-
- lib/braintree/add_on_gateway.rb
|
49
|
-
- lib/braintree/payment_instrument_type.rb
|
50
|
-
- lib/braintree/transaction_search.rb
|
51
|
-
- lib/braintree/util.rb
|
52
|
-
- lib/braintree/credit_card_verification.rb
|
53
|
-
- lib/braintree/test/nonce.rb
|
54
|
-
- lib/braintree/test/credit_card.rb
|
55
|
-
- lib/braintree/test/transaction_amounts.rb
|
56
|
-
- lib/braintree/test/merchant_account.rb
|
57
|
-
- lib/braintree/test/venmo_sdk.rb
|
58
|
-
- lib/braintree/transaction/credit_card_details.rb
|
59
|
-
- lib/braintree/transaction/subscription_details.rb
|
60
|
-
- lib/braintree/transaction/status_details.rb
|
61
|
-
- lib/braintree/transaction/venmo_account_details.rb
|
62
|
-
- lib/braintree/transaction/disbursement_details.rb
|
63
|
-
- lib/braintree/transaction/address_details.rb
|
64
|
-
- lib/braintree/transaction/amex_express_checkout_details.rb
|
65
|
-
- lib/braintree/transaction/ideal_payment_details.rb
|
66
|
-
- lib/braintree/transaction/customer_details.rb
|
67
|
-
- lib/braintree/transaction/us_bank_account_details.rb
|
68
|
-
- lib/braintree/transaction/android_pay_details.rb
|
69
|
-
- lib/braintree/transaction/paypal_details.rb
|
70
|
-
- lib/braintree/transaction/apple_pay_details.rb
|
71
|
-
- lib/braintree/transaction/coinbase_details.rb
|
72
|
-
- lib/braintree/risk_data.rb
|
73
|
-
- lib/braintree/ideal_payment.rb
|
74
|
-
- lib/braintree/credit_card_verification_search.rb
|
75
|
-
- lib/braintree/transparent_redirect_gateway.rb
|
76
|
-
- lib/braintree/three_d_secure_info.rb
|
77
|
-
- lib/braintree/merchant_gateway.rb
|
78
|
-
- lib/braintree/subscription/status_details.rb
|
79
|
-
- lib/braintree/address/country_names.rb
|
80
|
-
- lib/braintree/settlement_batch.rb
|
81
|
-
- lib/braintree/validation_error.rb
|
82
|
-
- lib/braintree/webhook_notification.rb
|
83
|
-
- lib/braintree/client_token_gateway.rb
|
84
|
-
- lib/braintree/subscription_gateway.rb
|
85
|
-
- lib/braintree/testing_gateway.rb
|
86
|
-
- lib/braintree/address_gateway.rb
|
87
|
-
- lib/braintree/payment_method.rb
|
88
|
-
- lib/braintree/webhook_notification_gateway.rb
|
89
|
-
- lib/braintree/webhook_testing.rb
|
90
|
-
- lib/braintree/base_module.rb
|
91
|
-
- lib/braintree/oauth_credentials.rb
|
92
|
-
- lib/braintree/customer_gateway.rb
|
93
|
-
- lib/braintree/ideal_payment_gateway.rb
|
94
|
-
- lib/braintree/modification.rb
|
95
|
-
- lib/braintree/payment_method_nonce_gateway.rb
|
37
|
+
- lib/braintree/credit_card_gateway.rb
|
38
|
+
- lib/braintree/plan.rb
|
96
39
|
- lib/braintree/plan_gateway.rb
|
97
|
-
- lib/braintree/
|
98
|
-
- lib/braintree/merchant.rb
|
99
|
-
- lib/braintree/advanced_search.rb
|
100
|
-
- lib/braintree/test_transaction.rb
|
101
|
-
- lib/braintree/transaction_gateway.rb
|
102
|
-
- lib/braintree/payment_method_gateway.rb
|
103
|
-
- lib/braintree/settlement_batch_summary.rb
|
40
|
+
- lib/braintree/merchant_account/individual_details.rb
|
104
41
|
- lib/braintree/merchant_account/funding_details.rb
|
105
42
|
- lib/braintree/merchant_account/address_details.rb
|
106
43
|
- lib/braintree/merchant_account/business_details.rb
|
107
|
-
- lib/braintree/
|
108
|
-
- lib/braintree/
|
109
|
-
- lib/braintree/
|
44
|
+
- lib/braintree/paypal_account.rb
|
45
|
+
- lib/braintree/credit_card_verification_gateway.rb
|
46
|
+
- lib/braintree/oauth_credentials.rb
|
47
|
+
- lib/braintree/webhook_notification_gateway.rb
|
48
|
+
- lib/braintree/subscription_gateway.rb
|
49
|
+
- lib/braintree/transparent_redirect_gateway.rb
|
50
|
+
- lib/braintree/gateway.rb
|
51
|
+
- lib/braintree/credentials_parser.rb
|
52
|
+
- lib/braintree/add_on.rb
|
53
|
+
- lib/braintree/subscription/status_details.rb
|
54
|
+
- lib/braintree/payment_method_nonce_gateway.rb
|
55
|
+
- lib/braintree/advanced_search.rb
|
56
|
+
- lib/braintree/transparent_redirect.rb
|
110
57
|
- lib/braintree/validation_error_collection.rb
|
58
|
+
- lib/braintree/exceptions.rb
|
59
|
+
- lib/braintree/settlement_batch.rb
|
60
|
+
- lib/braintree/errors.rb
|
61
|
+
- lib/braintree/coinbase_account.rb
|
62
|
+
- lib/braintree/apple_pay_card.rb
|
63
|
+
- lib/braintree/ach_mandate.rb
|
64
|
+
- lib/braintree/validation_error.rb
|
65
|
+
- lib/braintree/address.rb
|
66
|
+
- lib/braintree/payment_method_gateway.rb
|
67
|
+
- lib/braintree/merchant_account_gateway.rb
|
111
68
|
- lib/braintree/sha256_digest.rb
|
112
|
-
- lib/braintree/
|
113
|
-
- lib/braintree/
|
114
|
-
- lib/braintree/
|
69
|
+
- lib/braintree/credit_card_verification_search.rb
|
70
|
+
- lib/braintree/ideal_payment.rb
|
71
|
+
- lib/braintree/client_token_gateway.rb
|
72
|
+
- lib/braintree/paginated_result.rb
|
115
73
|
- lib/braintree/xml.rb
|
74
|
+
- lib/braintree/webhook_notification.rb
|
75
|
+
- lib/braintree/webhook_testing.rb
|
76
|
+
- lib/braintree/settlement_batch_summary_gateway.rb
|
77
|
+
- lib/braintree/android_pay_card.rb
|
78
|
+
- lib/braintree/facilitator_details.rb
|
79
|
+
- lib/braintree/paypal_account_gateway.rb
|
80
|
+
- lib/braintree/discount_gateway.rb
|
81
|
+
- lib/braintree/venmo_account.rb
|
116
82
|
- lib/braintree/merchant_account.rb
|
117
|
-
- lib/braintree/
|
83
|
+
- lib/braintree/test_transaction.rb
|
84
|
+
- lib/braintree/successful_result.rb
|
118
85
|
- lib/braintree/error_result.rb
|
119
|
-
- lib/braintree/
|
120
|
-
- lib/braintree/
|
86
|
+
- lib/braintree/merchant_gateway.rb
|
87
|
+
- lib/braintree/account_updater_daily_report.rb
|
88
|
+
- lib/braintree/paginated_collection.rb
|
89
|
+
- lib/braintree/three_d_secure_info.rb
|
90
|
+
- lib/braintree/europe_bank_account.rb
|
91
|
+
- lib/braintree/testing_gateway.rb
|
92
|
+
- lib/braintree/dispute/transaction_details.rb
|
121
93
|
- lib/braintree/descriptor.rb
|
122
|
-
- lib/braintree/add_on.rb
|
123
|
-
- lib/braintree/resource_collection.rb
|
124
|
-
- lib/braintree/coinbase_account.rb
|
125
|
-
- lib/braintree/digest.rb
|
126
|
-
- lib/braintree/gateway.rb
|
127
|
-
- lib/braintree/amex_express_checkout_card.rb
|
128
|
-
- lib/braintree/customer.rb
|
129
|
-
- lib/braintree/us_bank_account.rb
|
130
94
|
- lib/braintree/client_token.rb
|
131
|
-
- lib/braintree/
|
95
|
+
- lib/braintree/transaction_gateway.rb
|
96
|
+
- lib/braintree/credit_card.rb
|
97
|
+
- lib/braintree/digest.rb
|
98
|
+
- lib/braintree/payment_instrument_type.rb
|
99
|
+
- lib/braintree/util.rb
|
100
|
+
- lib/braintree/resource_collection.rb
|
101
|
+
- lib/braintree/transaction.rb
|
102
|
+
- lib/braintree/payment_method.rb
|
103
|
+
- lib/braintree/credit_card_verification.rb
|
104
|
+
- lib/braintree/test/nonce.rb
|
105
|
+
- lib/braintree/test/merchant_account.rb
|
106
|
+
- lib/braintree/test/venmo_sdk.rb
|
107
|
+
- lib/braintree/test/transaction_amounts.rb
|
108
|
+
- lib/braintree/test/credit_card.rb
|
132
109
|
- lib/braintree/europe_bank_account_gateway.rb
|
133
|
-
- lib/braintree/
|
134
|
-
- lib/braintree/
|
135
|
-
- lib/braintree/
|
136
|
-
- lib/braintree/
|
137
|
-
- lib/braintree/
|
138
|
-
- lib/braintree/customer_search.rb
|
110
|
+
- lib/braintree/discount.rb
|
111
|
+
- lib/braintree/address/country_names.rb
|
112
|
+
- lib/braintree/transaction_search.rb
|
113
|
+
- lib/braintree/risk_data.rb
|
114
|
+
- lib/braintree/configuration.rb
|
139
115
|
- lib/braintree/error_codes.rb
|
140
|
-
- lib/braintree/
|
116
|
+
- lib/braintree/customer_gateway.rb
|
141
117
|
- lib/braintree/subscription_search.rb
|
142
|
-
- lib/braintree/
|
143
|
-
- lib/braintree/address.rb
|
144
|
-
- lib/braintree/venmo_account.rb
|
145
|
-
- lib/braintree/credit_card_gateway.rb
|
146
|
-
- lib/braintree/credit_card_verification_gateway.rb
|
147
|
-
- lib/braintree/merchant_account_gateway.rb
|
148
|
-
- lib/braintree/android_pay_card.rb
|
149
|
-
- lib/braintree/paypal_account.rb
|
118
|
+
- lib/braintree/settlement_batch_summary.rb
|
150
119
|
- lib/braintree/signature_service.rb
|
151
|
-
- lib/braintree/
|
152
|
-
- lib/braintree/
|
153
|
-
- lib/braintree/
|
154
|
-
- lib/braintree/
|
155
|
-
- lib/braintree/
|
120
|
+
- lib/braintree/dispute.rb
|
121
|
+
- lib/braintree/http.rb
|
122
|
+
- lib/braintree/subscription.rb
|
123
|
+
- lib/braintree/base_module.rb
|
124
|
+
- lib/braintree/amex_express_checkout_card.rb
|
125
|
+
- lib/braintree/add_on_gateway.rb
|
126
|
+
- lib/braintree/oauth_gateway.rb
|
156
127
|
- lib/braintree/xml/parser.rb
|
157
|
-
- lib/braintree.rb
|
158
|
-
- lib/
|
128
|
+
- lib/braintree/xml/libxml.rb
|
129
|
+
- lib/braintree/xml/generator.rb
|
130
|
+
- lib/braintree/xml/rexml.rb
|
131
|
+
- lib/braintree/modification.rb
|
132
|
+
- lib/braintree/address_gateway.rb
|
133
|
+
- lib/braintree/us_bank_account.rb
|
134
|
+
- lib/braintree/customer.rb
|
135
|
+
- lib/braintree/merchant.rb
|
136
|
+
- lib/braintree/webhook_testing_gateway.rb
|
137
|
+
- lib/braintree/version.rb
|
138
|
+
- lib/braintree/unknown_payment_method.rb
|
139
|
+
- lib/braintree/customer_search.rb
|
140
|
+
- lib/braintree/payment_method_nonce.rb
|
141
|
+
- lib/braintree/us_bank_account_gateway.rb
|
142
|
+
- lib/braintree/transaction/coinbase_details.rb
|
143
|
+
- lib/braintree/transaction/credit_card_details.rb
|
144
|
+
- lib/braintree/transaction/customer_details.rb
|
145
|
+
- lib/braintree/transaction/address_details.rb
|
146
|
+
- lib/braintree/transaction/subscription_details.rb
|
147
|
+
- lib/braintree/transaction/status_details.rb
|
148
|
+
- lib/braintree/transaction/ideal_payment_details.rb
|
149
|
+
- lib/braintree/transaction/us_bank_account_details.rb
|
150
|
+
- lib/braintree/transaction/venmo_account_details.rb
|
151
|
+
- lib/braintree/transaction/amex_express_checkout_details.rb
|
152
|
+
- lib/braintree/transaction/paypal_details.rb
|
153
|
+
- lib/braintree/transaction/disbursement_details.rb
|
154
|
+
- lib/braintree/transaction/apple_pay_details.rb
|
155
|
+
- lib/braintree/transaction/android_pay_details.rb
|
156
|
+
- lib/braintree/ideal_payment_gateway.rb
|
159
157
|
- lib/ssl/securetrust_ca.crt
|
160
|
-
-
|
161
|
-
- spec/
|
162
|
-
- spec/unit/
|
163
|
-
- spec/unit/braintree/
|
164
|
-
- spec/unit/braintree/
|
165
|
-
- spec/unit/braintree/modification_spec.rb
|
166
|
-
- spec/unit/braintree/credit_card_verification_search_spec.rb
|
167
|
-
- spec/unit/braintree/transaction/deposit_details_spec.rb
|
168
|
-
- spec/unit/braintree/transaction/customer_details_spec.rb
|
169
|
-
- spec/unit/braintree/transaction/credit_card_details_spec.rb
|
170
|
-
- spec/unit/braintree/error_result_spec.rb
|
171
|
-
- spec/unit/braintree/unknown_payment_method_spec.rb
|
172
|
-
- spec/unit/braintree/credit_card_spec.rb
|
173
|
-
- spec/unit/braintree/disbursement_spec.rb
|
174
|
-
- spec/unit/braintree/credentials_parser_spec.rb
|
175
|
-
- spec/unit/braintree/subscription_spec.rb
|
176
|
-
- spec/unit/braintree/successful_result_spec.rb
|
177
|
-
- spec/unit/braintree/merchant_account_spec.rb
|
178
|
-
- spec/unit/braintree/sha256_digest_spec.rb
|
179
|
-
- spec/unit/braintree/transaction_search_spec.rb
|
180
|
-
- spec/unit/braintree/util_spec.rb
|
181
|
-
- spec/unit/braintree/validation_error_spec.rb
|
158
|
+
- lib/ssl/api_braintreegateway_com.ca.crt
|
159
|
+
- spec/unit/spec_helper.rb
|
160
|
+
- spec/unit/braintree_spec.rb
|
161
|
+
- spec/unit/braintree/risk_data_spec.rb
|
162
|
+
- spec/unit/braintree/subscription_search_spec.rb
|
182
163
|
- spec/unit/braintree/transaction_spec.rb
|
183
|
-
- spec/unit/braintree/
|
184
|
-
- spec/unit/braintree/paypal_account_spec.rb
|
185
|
-
- spec/unit/braintree/address_spec.rb
|
186
|
-
- spec/unit/braintree/webhook_notification_spec.rb
|
164
|
+
- spec/unit/braintree/client_token_spec.rb
|
187
165
|
- spec/unit/braintree/transparent_redirect_spec.rb
|
166
|
+
- spec/unit/braintree/util_spec.rb
|
167
|
+
- spec/unit/braintree/sha256_digest_spec.rb
|
188
168
|
- spec/unit/braintree/configuration_spec.rb
|
169
|
+
- spec/unit/braintree/us_bank_account_spec.rb
|
189
170
|
- spec/unit/braintree/credit_card_verification_spec.rb
|
190
|
-
- spec/unit/braintree/client_token_spec.rb
|
191
171
|
- spec/unit/braintree/apple_pay_card_spec.rb
|
192
|
-
- spec/unit/braintree/
|
193
|
-
- spec/unit/braintree/
|
194
|
-
- spec/unit/braintree/
|
172
|
+
- spec/unit/braintree/validation_error_spec.rb
|
173
|
+
- spec/unit/braintree/errors_spec.rb
|
174
|
+
- spec/unit/braintree/digest_spec.rb
|
175
|
+
- spec/unit/braintree/credit_card_verification_search_spec.rb
|
176
|
+
- spec/unit/braintree/successful_result_spec.rb
|
177
|
+
- spec/unit/braintree/http_spec.rb
|
178
|
+
- spec/unit/braintree/address_spec.rb
|
179
|
+
- spec/unit/braintree/signature_service_spec.rb
|
195
180
|
- spec/unit/braintree/validation_error_collection_spec.rb
|
196
|
-
- spec/unit/braintree/
|
197
|
-
- spec/unit/braintree/
|
198
|
-
- spec/unit/braintree/subscription_search_spec.rb
|
181
|
+
- spec/unit/braintree/paypal_account_spec.rb
|
182
|
+
- spec/unit/braintree/error_result_spec.rb
|
199
183
|
- spec/unit/braintree/three_d_secure_info_spec.rb
|
200
|
-
- spec/unit/braintree/
|
201
|
-
- spec/unit/braintree/
|
184
|
+
- spec/unit/braintree/credentials_parser_spec.rb
|
185
|
+
- spec/unit/braintree/unknown_payment_method_spec.rb
|
186
|
+
- spec/unit/braintree/disbursement_spec.rb
|
187
|
+
- spec/unit/braintree/modification_spec.rb
|
188
|
+
- spec/unit/braintree/base_module_spec.rb
|
202
189
|
- spec/unit/braintree/dispute_spec.rb
|
203
|
-
- spec/unit/braintree/xml/parser_spec.rb
|
204
190
|
- spec/unit/braintree/xml/libxml_spec.rb
|
191
|
+
- spec/unit/braintree/xml/parser_spec.rb
|
205
192
|
- spec/unit/braintree/xml/rexml_spec.rb
|
206
|
-
- spec/unit/
|
207
|
-
- spec/unit/
|
208
|
-
- spec/
|
209
|
-
- spec/
|
210
|
-
- spec/
|
211
|
-
- spec/
|
212
|
-
- spec/
|
213
|
-
- spec/
|
214
|
-
- spec/
|
215
|
-
- spec/
|
216
|
-
- spec/
|
217
|
-
- spec/
|
218
|
-
- spec/
|
219
|
-
- spec/
|
220
|
-
- spec/integration/
|
221
|
-
- spec/integration/braintree/subscription_spec.rb
|
222
|
-
- spec/integration/braintree/merchant_account_spec.rb
|
223
|
-
- spec/integration/braintree/advanced_search_spec.rb
|
224
|
-
- spec/integration/braintree/transaction_search_spec.rb
|
193
|
+
- spec/unit/braintree/subscription_spec.rb
|
194
|
+
- spec/unit/braintree/customer_spec.rb
|
195
|
+
- spec/unit/braintree/xml_spec.rb
|
196
|
+
- spec/unit/braintree/resource_collection_spec.rb
|
197
|
+
- spec/unit/braintree/payment_method_spec.rb
|
198
|
+
- spec/unit/braintree/credit_card_spec.rb
|
199
|
+
- spec/unit/braintree/transaction_search_spec.rb
|
200
|
+
- spec/unit/braintree/transaction/credit_card_details_spec.rb
|
201
|
+
- spec/unit/braintree/transaction/customer_details_spec.rb
|
202
|
+
- spec/unit/braintree/transaction/deposit_details_spec.rb
|
203
|
+
- spec/unit/braintree/merchant_account_spec.rb
|
204
|
+
- spec/unit/braintree/webhook_notification_spec.rb
|
205
|
+
- spec/spec_helper.rb
|
206
|
+
- spec/script/httpsd.rb
|
207
|
+
- spec/integration/spec_helper.rb
|
225
208
|
- spec/integration/braintree/transaction_spec.rb
|
226
|
-
- spec/integration/braintree/
|
227
|
-
- spec/integration/braintree/paypal_account_spec.rb
|
228
|
-
- spec/integration/braintree/discount_spec.rb
|
229
|
-
- spec/integration/braintree/address_spec.rb
|
209
|
+
- spec/integration/braintree/oauth_spec.rb
|
230
210
|
- spec/integration/braintree/transparent_redirect_spec.rb
|
211
|
+
- spec/integration/braintree/payment_method_nonce_spec.rb
|
212
|
+
- spec/integration/braintree/add_on_spec.rb
|
213
|
+
- spec/integration/braintree/us_bank_account_spec.rb
|
231
214
|
- spec/integration/braintree/credit_card_verification_spec.rb
|
232
215
|
- spec/integration/braintree/coinbase_spec.rb
|
233
|
-
- spec/integration/braintree/
|
234
|
-
- spec/integration/braintree/
|
216
|
+
- spec/integration/braintree/discount_spec.rb
|
217
|
+
- spec/integration/braintree/credit_card_verification_search_spec.rb
|
218
|
+
- spec/integration/braintree/http_spec.rb
|
219
|
+
- spec/integration/braintree/merchant_spec.rb
|
220
|
+
- spec/integration/braintree/address_spec.rb
|
235
221
|
- spec/integration/braintree/ideal_payment_spec.rb
|
236
|
-
- spec/integration/braintree/
|
222
|
+
- spec/integration/braintree/advanced_search_spec.rb
|
223
|
+
- spec/integration/braintree/paypal_account_spec.rb
|
237
224
|
- spec/integration/braintree/settlement_batch_summary_spec.rb
|
238
|
-
- spec/integration/braintree/
|
239
|
-
- spec/integration/braintree/
|
225
|
+
- spec/integration/braintree/plan_spec.rb
|
226
|
+
- spec/integration/braintree/test/transaction_amounts_spec.rb
|
240
227
|
- spec/integration/braintree/customer_search_spec.rb
|
241
|
-
- spec/integration/
|
242
|
-
- spec/
|
228
|
+
- spec/integration/braintree/disbursement_spec.rb
|
229
|
+
- spec/integration/braintree/test_transaction_spec.rb
|
230
|
+
- spec/integration/braintree/client_api/spec_helper.rb
|
231
|
+
- spec/integration/braintree/client_api/client_token_spec.rb
|
232
|
+
- spec/integration/braintree/subscription_spec.rb
|
233
|
+
- spec/integration/braintree/customer_spec.rb
|
234
|
+
- spec/integration/braintree/payment_method_spec.rb
|
235
|
+
- spec/integration/braintree/error_codes_spec.rb
|
236
|
+
- spec/integration/braintree/credit_card_spec.rb
|
237
|
+
- spec/integration/braintree/transaction_search_spec.rb
|
238
|
+
- spec/integration/braintree/merchant_account_spec.rb
|
243
239
|
- spec/spec.opts
|
244
|
-
- spec/ssl/geotrust_global.crt
|
245
240
|
- spec/ssl/privateKey.key
|
246
241
|
- spec/ssl/certificate.crt
|
242
|
+
- spec/ssl/geotrust_global.crt
|
243
|
+
- spec/hacks/tcp_socket.rb
|
244
|
+
- spec/httpsd.pid
|
245
|
+
- spec/oauth_test_helper.rb
|
247
246
|
- braintree.gemspec
|
248
247
|
homepage: http://www.braintreepayments.com/
|
249
248
|
licenses:
|
250
249
|
- MIT
|
250
|
+
metadata: {}
|
251
251
|
post_install_message:
|
252
252
|
rdoc_options: []
|
253
253
|
require_paths:
|
254
254
|
- lib
|
255
255
|
required_ruby_version: !ruby/object:Gem::Requirement
|
256
|
-
none: false
|
257
256
|
requirements:
|
258
|
-
- -
|
257
|
+
- - '>='
|
259
258
|
- !ruby/object:Gem::Version
|
260
259
|
version: '0'
|
261
260
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
|
-
none: false
|
263
261
|
requirements:
|
264
|
-
- -
|
262
|
+
- - '>='
|
265
263
|
- !ruby/object:Gem::Version
|
266
264
|
version: '0'
|
267
265
|
requirements: []
|
268
266
|
rubyforge_project: braintree
|
269
|
-
rubygems_version: 1.
|
267
|
+
rubygems_version: 2.1.11
|
270
268
|
signing_key:
|
271
|
-
specification_version:
|
269
|
+
specification_version: 4
|
272
270
|
summary: Braintree Gateway Ruby Client Library
|
273
271
|
test_files: []
|