braintree 2.31.0 → 2.32.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/lib/braintree.rb +12 -0
- data/lib/braintree/client_token.rb +5 -0
- data/lib/braintree/client_token_gateway.rb +2 -1
- data/lib/braintree/configuration.rb +1 -1
- data/lib/braintree/credit_card.rb +1 -1
- data/lib/braintree/credit_card_gateway.rb +3 -3
- data/lib/braintree/customer.rb +18 -4
- data/lib/braintree/customer_gateway.rb +2 -2
- data/lib/braintree/customer_search.rb +1 -0
- data/lib/braintree/error_codes.rb +81 -14
- data/lib/braintree/exceptions.rb +2 -0
- data/lib/braintree/gateway.rb +16 -0
- data/lib/braintree/payment_instrument_type.rb +7 -0
- data/lib/braintree/payment_method.rb +17 -0
- data/lib/braintree/payment_method_gateway.rb +58 -0
- data/lib/braintree/paypal_account.rb +47 -0
- data/lib/braintree/paypal_account_gateway.rb +41 -0
- data/lib/braintree/sepa_bank_account.rb +34 -0
- data/lib/braintree/sepa_bank_account_gateway.rb +16 -0
- data/lib/braintree/successful_result.rb +1 -1
- data/lib/braintree/test/nonce.rb +10 -0
- data/lib/braintree/test_transaction.rb +15 -0
- data/lib/braintree/testing_gateway.rb +35 -0
- data/lib/braintree/transaction.rb +6 -0
- data/lib/braintree/transaction/paypal_details.rb +14 -0
- data/lib/braintree/transaction_gateway.rb +3 -1
- data/lib/braintree/transaction_search.rb +4 -0
- data/lib/braintree/unknown_payment_method.rb +20 -0
- data/lib/braintree/version.rb +2 -2
- data/lib/braintree/webhook_testing_gateway.rb +1 -1
- data/spec/integration/braintree/client_api/client_token_spec.rb +80 -17
- data/spec/integration/braintree/client_api/spec_helper.rb +93 -10
- data/spec/integration/braintree/credit_card_spec.rb +28 -27
- data/spec/integration/braintree/customer_search_spec.rb +23 -0
- data/spec/integration/braintree/customer_spec.rb +83 -1
- data/spec/integration/braintree/payment_method_spec.rb +315 -0
- data/spec/integration/braintree/paypal_account_spec.rb +188 -0
- data/spec/integration/braintree/subscription_spec.rb +50 -20
- data/spec/integration/braintree/test_transaction_spec.rb +104 -0
- data/spec/integration/braintree/transaction_search_spec.rb +60 -0
- data/spec/integration/braintree/transaction_spec.rb +583 -8
- data/spec/integration/spec_helper.rb +22 -0
- data/spec/spec_helper.rb +8 -2
- data/spec/unit/braintree/customer_spec.rb +24 -4
- data/spec/unit/braintree/payment_method_spec.rb +25 -0
- data/spec/unit/braintree/paypal_account_spec.rb +31 -0
- data/spec/unit/braintree/unknown_payment_method_spec.rb +29 -0
- metadata +141 -120
- checksums.yaml +0 -7
- data/spec/httpsd.pid +0 -1
@@ -24,4 +24,26 @@ unless defined?(INTEGRATION_SPEC_HELPER_LOADED)
|
|
24
24
|
config = Braintree::Configuration.gateway.config
|
25
25
|
config.http.post "/modifications/create_modification_for_tests", :modification => attributes
|
26
26
|
end
|
27
|
+
|
28
|
+
def with_other_merchant(merchant_id, public_key, private_key, &block)
|
29
|
+
old_merchant_id = Braintree::Configuration.merchant_id
|
30
|
+
old_public_key = Braintree::Configuration.public_key
|
31
|
+
old_private_key = Braintree::Configuration.private_key
|
32
|
+
|
33
|
+
Braintree::Configuration.merchant_id = merchant_id
|
34
|
+
Braintree::Configuration.public_key = public_key
|
35
|
+
Braintree::Configuration.private_key = private_key
|
36
|
+
|
37
|
+
begin
|
38
|
+
yield
|
39
|
+
ensure
|
40
|
+
Braintree::Configuration.merchant_id = old_merchant_id
|
41
|
+
Braintree::Configuration.public_key = old_public_key
|
42
|
+
Braintree::Configuration.private_key = old_private_key
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def with_altpay_merchant(&block)
|
47
|
+
with_other_merchant("altpay_merchant", "altpay_merchant_public_key", "altpay_merchant_private_key", &block)
|
48
|
+
end
|
27
49
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -33,6 +33,7 @@ unless defined?(SPEC_HELPER_LOADED)
|
|
33
33
|
DefaultMerchantAccountId = "sandbox_credit_card"
|
34
34
|
NonDefaultMerchantAccountId = "sandbox_credit_card_non_default"
|
35
35
|
NonDefaultSubMerchantAccountId = "sandbox_sub_merchant_account"
|
36
|
+
ThreeDSecureMerchantAccountId = "three_d_secure_merchant_account"
|
36
37
|
|
37
38
|
TrialPlan = {
|
38
39
|
:description => "Plan for integration tests -- with trial",
|
@@ -84,14 +85,19 @@ unless defined?(SPEC_HELPER_LOADED)
|
|
84
85
|
|
85
86
|
def self.make_past_due(subscription, number_of_days_past_due = 1)
|
86
87
|
Braintree::Configuration.instantiate.http.put(
|
87
|
-
|
88
|
-
|
88
|
+
"/subscriptions/#{subscription.id}/make_past_due?days_past_due=#{number_of_days_past_due}"
|
89
|
+
)
|
89
90
|
end
|
90
91
|
|
91
92
|
def self.settle_transaction(transaction_id)
|
92
93
|
Braintree::Configuration.instantiate.http.put("/transactions/#{transaction_id}/settle")
|
93
94
|
end
|
94
95
|
|
96
|
+
def self.create_3ds_verification(merchant_account_id, params)
|
97
|
+
response = Braintree::Configuration.instantiate.http.post("/three_d_secure/create_verification/#{merchant_account_id}", :three_d_secure_verification => params)
|
98
|
+
response[:three_d_secure_verification][:three_d_secure_token]
|
99
|
+
end
|
100
|
+
|
95
101
|
def self.stub_time_dot_now(desired_time)
|
96
102
|
Time.class_eval do
|
97
103
|
class << self
|
@@ -28,6 +28,9 @@ describe Braintree::Customer do
|
|
28
28
|
output.should include(%q(last_name: "Smith"))
|
29
29
|
output.should include(%q(phone: "802-483-5932"))
|
30
30
|
output.should include(%q(website: "patrick.smith.com"))
|
31
|
+
output.should include(%q(addresses: []))
|
32
|
+
output.should include(%q(credit_cards: []))
|
33
|
+
output.should include(%q(paypal_accounts: []))
|
31
34
|
output.should include(%Q(created_at: #{customer.created_at.inspect}))
|
32
35
|
output.should include(%Q(updated_at: #{customer.updated_at.inspect}))
|
33
36
|
end
|
@@ -82,6 +85,7 @@ describe Braintree::Customer do
|
|
82
85
|
:phone,
|
83
86
|
:website,
|
84
87
|
:device_data,
|
88
|
+
:payment_method_nonce,
|
85
89
|
{:credit_card => [
|
86
90
|
:billing_address_id,
|
87
91
|
:cardholder_name,
|
@@ -129,6 +133,7 @@ describe Braintree::Customer do
|
|
129
133
|
:phone,
|
130
134
|
:website,
|
131
135
|
:device_data,
|
136
|
+
:payment_method_nonce,
|
132
137
|
{:credit_card => [
|
133
138
|
:billing_address_id,
|
134
139
|
:cardholder_name,
|
@@ -207,13 +212,28 @@ describe Braintree::Customer do
|
|
207
212
|
customer = Braintree::Customer._new(
|
208
213
|
:gateway,
|
209
214
|
:credit_cards => [
|
210
|
-
{:token => "
|
211
|
-
{:token => "
|
215
|
+
{:token => "credit_card_1"},
|
216
|
+
{:token => "credit_card_2"}
|
217
|
+
],
|
218
|
+
:paypal_accounts => [
|
219
|
+
{:token => "paypal_1"},
|
220
|
+
{:token => "paypal_2"}
|
212
221
|
]
|
213
222
|
)
|
223
|
+
|
214
224
|
customer.credit_cards.size.should == 2
|
215
|
-
customer.credit_cards[0].token.should == "
|
216
|
-
customer.credit_cards[1].token.should == "
|
225
|
+
customer.credit_cards[0].token.should == "credit_card_1"
|
226
|
+
customer.credit_cards[1].token.should == "credit_card_2"
|
227
|
+
|
228
|
+
customer.paypal_accounts.size.should == 2
|
229
|
+
customer.paypal_accounts[0].token.should == "paypal_1"
|
230
|
+
customer.paypal_accounts[1].token.should == "paypal_2"
|
231
|
+
|
232
|
+
customer.payment_methods.count.should == 4
|
233
|
+
customer.payment_methods.map(&:token).should include("credit_card_1")
|
234
|
+
customer.payment_methods.map(&:token).should include("credit_card_2")
|
235
|
+
customer.payment_methods.map(&:token).should include("paypal_1")
|
236
|
+
customer.payment_methods.map(&:token).should include("paypal_2")
|
217
237
|
end
|
218
238
|
end
|
219
239
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
|
2
|
+
|
3
|
+
describe Braintree::PaymentMethod do
|
4
|
+
describe "find" do
|
5
|
+
it "handles an unknown payment method type" do
|
6
|
+
unknown_response = {:unknown_payment_method => {:token => 1234, :default => true}}
|
7
|
+
http_instance = mock(:get => unknown_response)
|
8
|
+
Braintree::Http.stub(:new).and_return(http_instance)
|
9
|
+
unknown_payment_method = Braintree::PaymentMethod.find("UNKNOWN_PAYMENT_METHOD_TOKEN")
|
10
|
+
|
11
|
+
unknown_payment_method.token.should == 1234
|
12
|
+
unknown_payment_method.default?.should be_true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe "timestamps" do
|
17
|
+
it "exposes created_at and updated_at" do
|
18
|
+
now = Time.now
|
19
|
+
paypal_account = Braintree::PayPalAccount._new(:gateway, :updated_at => now, :created_at => now)
|
20
|
+
|
21
|
+
paypal_account.created_at.should == now
|
22
|
+
paypal_account.updated_at.should == now
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
|
2
|
+
|
3
|
+
describe Braintree::PayPalAccount do
|
4
|
+
describe "self.update" do
|
5
|
+
it "raises an exception if attributes contain an invalid key" do
|
6
|
+
expect do
|
7
|
+
Braintree::PayPalAccount.update("some_token", :invalid_key => 'val')
|
8
|
+
end.to raise_error(ArgumentError, "invalid keys: invalid_key")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "default?" do
|
13
|
+
it "is true if the paypal account is the default payment method for the customer" do
|
14
|
+
Braintree::PayPalAccount._new(:gateway, :default => true).default?.should == true
|
15
|
+
end
|
16
|
+
|
17
|
+
it "is false if the paypal account is not the default payment methodfor the customer" do
|
18
|
+
Braintree::PayPalAccount._new(:gateway, :default => false).default?.should == false
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe "timestamps" do
|
23
|
+
it "exposes created_at and updated_at" do
|
24
|
+
now = Time.now
|
25
|
+
paypal_account = Braintree::PayPalAccount._new(:gateway, :updated_at => now, :created_at => now)
|
26
|
+
|
27
|
+
paypal_account.created_at.should == now
|
28
|
+
paypal_account.updated_at.should == now
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
|
2
|
+
|
3
|
+
describe Braintree::PayPalAccount do
|
4
|
+
describe "token" do
|
5
|
+
it "has a token identifier" do
|
6
|
+
params = {:unknown_payment_method => {:token => 1234, :default => true}}
|
7
|
+
Braintree::UnknownPaymentMethod.new(params).token.should == 1234
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "image_url" do
|
12
|
+
it "has a image_url" do
|
13
|
+
params = {:unknown_payment_method => {:token => 1234, :default => true}}
|
14
|
+
Braintree::UnknownPaymentMethod.new(params).image_url.should == "https://assets.braintreegateway.com/payment_method_logo/unknown.png"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "default?" do
|
19
|
+
it "is true if the paypal account is the default payment method for the customer" do
|
20
|
+
params = {:unknown_payment_method => {:token => 1234, :default => true}}
|
21
|
+
Braintree::UnknownPaymentMethod.new(params).should be_default
|
22
|
+
end
|
23
|
+
|
24
|
+
it "is false if the paypal account is not the default payment methodfor the customer" do
|
25
|
+
params = {:unknown_payment_method => {:token => 1234, :default => false}}
|
26
|
+
Braintree::UnknownPaymentMethod.new(params).should_not be_default
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,27 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.32.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Braintree
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: builder
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 2.0.0
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 2.0.0
|
27
30
|
description: Ruby library for integrating with the Braintree Gateway
|
@@ -30,182 +33,200 @@ executables: []
|
|
30
33
|
extensions: []
|
31
34
|
extra_rdoc_files: []
|
32
35
|
files:
|
33
|
-
- LICENSE
|
34
36
|
- README.rdoc
|
35
|
-
-
|
36
|
-
- lib/braintree.rb
|
37
|
-
- lib/braintree/
|
38
|
-
- lib/braintree/add_on_gateway.rb
|
39
|
-
- lib/braintree/address.rb
|
40
|
-
- lib/braintree/address/country_names.rb
|
41
|
-
- lib/braintree/address_gateway.rb
|
42
|
-
- lib/braintree/advanced_search.rb
|
37
|
+
- LICENSE
|
38
|
+
- lib/braintree/payment_method.rb
|
39
|
+
- lib/braintree/payment_method_gateway.rb
|
43
40
|
- lib/braintree/base_module.rb
|
44
|
-
- lib/braintree/
|
45
|
-
- lib/braintree/client_token_gateway.rb
|
46
|
-
- lib/braintree/configuration.rb
|
47
|
-
- lib/braintree/credit_card.rb
|
48
|
-
- lib/braintree/credit_card_gateway.rb
|
49
|
-
- lib/braintree/credit_card_verification.rb
|
50
|
-
- lib/braintree/credit_card_verification_gateway.rb
|
41
|
+
- lib/braintree/settlement_batch_summary_gateway.rb
|
51
42
|
- lib/braintree/credit_card_verification_search.rb
|
52
|
-
- lib/braintree/
|
53
|
-
- lib/braintree/
|
54
|
-
- lib/braintree/
|
55
|
-
- lib/braintree/
|
56
|
-
- lib/braintree/
|
57
|
-
- lib/braintree/
|
58
|
-
- lib/braintree/discount.rb
|
59
|
-
- lib/braintree/discount_gateway.rb
|
60
|
-
- lib/braintree/dispute.rb
|
43
|
+
- lib/braintree/merchant_account_gateway.rb
|
44
|
+
- lib/braintree/xml.rb
|
45
|
+
- lib/braintree/unknown_payment_method.rb
|
46
|
+
- lib/braintree/sepa_bank_account_gateway.rb
|
47
|
+
- lib/braintree/resource_collection.rb
|
48
|
+
- lib/braintree/client_token_gateway.rb
|
61
49
|
- lib/braintree/error_codes.rb
|
62
|
-
- lib/braintree/error_result.rb
|
63
50
|
- lib/braintree/errors.rb
|
64
|
-
- lib/braintree/
|
65
|
-
- lib/braintree/
|
66
|
-
- lib/braintree/
|
67
|
-
- lib/braintree/
|
68
|
-
- lib/braintree/
|
69
|
-
- lib/braintree/merchant_account/business_details.rb
|
51
|
+
- lib/braintree/discount_gateway.rb
|
52
|
+
- lib/braintree/webhook_notification_gateway.rb
|
53
|
+
- lib/braintree/customer.rb
|
54
|
+
- lib/braintree/transaction_gateway.rb
|
55
|
+
- lib/braintree/error_result.rb
|
70
56
|
- lib/braintree/merchant_account/funding_details.rb
|
57
|
+
- lib/braintree/merchant_account/business_details.rb
|
58
|
+
- lib/braintree/merchant_account/address_details.rb
|
71
59
|
- lib/braintree/merchant_account/individual_details.rb
|
72
|
-
- lib/braintree/merchant_account_gateway.rb
|
73
|
-
- lib/braintree/modification.rb
|
74
|
-
- lib/braintree/plan.rb
|
75
|
-
- lib/braintree/plan_gateway.rb
|
76
|
-
- lib/braintree/resource_collection.rb
|
77
|
-
- lib/braintree/settlement_batch.rb
|
78
|
-
- lib/braintree/settlement_batch_summary.rb
|
79
|
-
- lib/braintree/settlement_batch_summary_gateway.rb
|
80
60
|
- lib/braintree/sha256_digest.rb
|
61
|
+
- lib/braintree/settlement_batch.rb
|
62
|
+
- lib/braintree/webhook_testing_gateway.rb
|
63
|
+
- lib/braintree/http.rb
|
64
|
+
- lib/braintree/add_on_gateway.rb
|
65
|
+
- lib/braintree/gateway.rb
|
66
|
+
- lib/braintree/customer_gateway.rb
|
81
67
|
- lib/braintree/signature_service.rb
|
82
|
-
- lib/braintree/
|
83
|
-
- lib/braintree/
|
84
|
-
- lib/braintree/
|
68
|
+
- lib/braintree/sepa_bank_account.rb
|
69
|
+
- lib/braintree/paypal_account_gateway.rb
|
70
|
+
- lib/braintree/credit_card_verification_gateway.rb
|
71
|
+
- lib/braintree/payment_instrument_type.rb
|
72
|
+
- lib/braintree/credit_card.rb
|
73
|
+
- lib/braintree/transaction/paypal_details.rb
|
74
|
+
- lib/braintree/transaction/disbursement_details.rb
|
75
|
+
- lib/braintree/transaction/address_details.rb
|
76
|
+
- lib/braintree/transaction/subscription_details.rb
|
77
|
+
- lib/braintree/transaction/customer_details.rb
|
78
|
+
- lib/braintree/transaction/credit_card_details.rb
|
79
|
+
- lib/braintree/transaction/status_details.rb
|
85
80
|
- lib/braintree/successful_result.rb
|
81
|
+
- lib/braintree/discount.rb
|
82
|
+
- lib/braintree/subscription_search.rb
|
83
|
+
- lib/braintree/test_transaction.rb
|
84
|
+
- lib/braintree/disbursement.rb
|
85
|
+
- lib/braintree/credit_card_verification.rb
|
86
|
+
- lib/braintree/dispute.rb
|
87
|
+
- lib/braintree/customer_search.rb
|
88
|
+
- lib/braintree/modification.rb
|
89
|
+
- lib/braintree/validation_error_collection.rb
|
90
|
+
- lib/braintree/merchant_account.rb
|
91
|
+
- lib/braintree/test/venmo_sdk.rb
|
92
|
+
- lib/braintree/test/nonce.rb
|
86
93
|
- lib/braintree/test/credit_card.rb
|
87
94
|
- lib/braintree/test/merchant_account.rb
|
88
95
|
- lib/braintree/test/transaction_amounts.rb
|
89
|
-
- lib/braintree/
|
96
|
+
- lib/braintree/add_on.rb
|
97
|
+
- lib/braintree/client_token.rb
|
98
|
+
- lib/braintree/advanced_search.rb
|
99
|
+
- lib/braintree/validation_error.rb
|
100
|
+
- lib/braintree/subscription.rb
|
101
|
+
- lib/braintree/webhook_testing.rb
|
102
|
+
- lib/braintree/version.rb
|
103
|
+
- lib/braintree/exceptions.rb
|
90
104
|
- lib/braintree/transaction.rb
|
91
|
-
- lib/braintree/transaction/address_details.rb
|
92
|
-
- lib/braintree/transaction/credit_card_details.rb
|
93
|
-
- lib/braintree/transaction/customer_details.rb
|
94
|
-
- lib/braintree/transaction/disbursement_details.rb
|
95
|
-
- lib/braintree/transaction/status_details.rb
|
96
|
-
- lib/braintree/transaction/subscription_details.rb
|
97
|
-
- lib/braintree/transaction_gateway.rb
|
98
105
|
- lib/braintree/transaction_search.rb
|
99
|
-
- lib/braintree/
|
100
|
-
- lib/braintree/
|
106
|
+
- lib/braintree/configuration.rb
|
107
|
+
- lib/braintree/subscription_gateway.rb
|
108
|
+
- lib/braintree/address_gateway.rb
|
101
109
|
- lib/braintree/util.rb
|
102
|
-
- lib/braintree/
|
103
|
-
- lib/braintree/
|
104
|
-
- lib/braintree/
|
110
|
+
- lib/braintree/plan.rb
|
111
|
+
- lib/braintree/transparent_redirect_gateway.rb
|
112
|
+
- lib/braintree/credit_card_gateway.rb
|
113
|
+
- lib/braintree/paypal_account.rb
|
105
114
|
- lib/braintree/webhook_notification.rb
|
106
|
-
- lib/braintree/
|
107
|
-
- lib/braintree/
|
108
|
-
- lib/braintree/
|
109
|
-
- lib/braintree/xml.rb
|
110
|
-
- lib/braintree/xml/generator.rb
|
115
|
+
- lib/braintree/digest.rb
|
116
|
+
- lib/braintree/plan_gateway.rb
|
117
|
+
- lib/braintree/descriptor.rb
|
118
|
+
- lib/braintree/xml/rexml.rb
|
111
119
|
- lib/braintree/xml/libxml.rb
|
112
120
|
- lib/braintree/xml/parser.rb
|
113
|
-
- lib/braintree/xml/
|
114
|
-
- lib/
|
115
|
-
- lib/
|
121
|
+
- lib/braintree/xml/generator.rb
|
122
|
+
- lib/braintree/settlement_batch_summary.rb
|
123
|
+
- lib/braintree/testing_gateway.rb
|
124
|
+
- lib/braintree/address/country_names.rb
|
125
|
+
- lib/braintree/address.rb
|
126
|
+
- lib/braintree/transparent_redirect.rb
|
127
|
+
- lib/braintree.rb
|
116
128
|
- lib/ssl/securetrust_ca.crt
|
129
|
+
- lib/ssl/api_braintreegateway_com.ca.crt
|
117
130
|
- lib/ssl/www_braintreegateway_com.ca.crt
|
131
|
+
- lib/ssl/sandbox_braintreegateway_com.ca.crt
|
132
|
+
- spec/spec.opts
|
133
|
+
- spec/spec_helper.rb
|
118
134
|
- spec/hacks/tcp_socket.rb
|
119
|
-
- spec/
|
120
|
-
- spec/integration/braintree/
|
121
|
-
- spec/integration/braintree/
|
135
|
+
- spec/integration/braintree/transaction_spec.rb
|
136
|
+
- spec/integration/braintree/disbursement_spec.rb
|
137
|
+
- spec/integration/braintree/customer_spec.rb
|
138
|
+
- spec/integration/braintree/transparent_redirect_spec.rb
|
122
139
|
- spec/integration/braintree/advanced_search_spec.rb
|
123
|
-
- spec/integration/braintree/client_api/client_token_spec.rb
|
124
|
-
- spec/integration/braintree/client_api/spec_helper.rb
|
125
|
-
- spec/integration/braintree/credit_card_spec.rb
|
126
140
|
- spec/integration/braintree/credit_card_verification_search_spec.rb
|
127
|
-
- spec/integration/braintree/credit_card_verification_spec.rb
|
128
|
-
- spec/integration/braintree/customer_search_spec.rb
|
129
|
-
- spec/integration/braintree/customer_spec.rb
|
130
|
-
- spec/integration/braintree/disbursement_spec.rb
|
131
|
-
- spec/integration/braintree/discount_spec.rb
|
132
|
-
- spec/integration/braintree/error_codes_spec.rb
|
133
141
|
- spec/integration/braintree/http_spec.rb
|
134
|
-
- spec/integration/braintree/
|
142
|
+
- spec/integration/braintree/discount_spec.rb
|
135
143
|
- spec/integration/braintree/plan_spec.rb
|
144
|
+
- spec/integration/braintree/client_api/spec_helper.rb
|
145
|
+
- spec/integration/braintree/client_api/client_token_spec.rb
|
136
146
|
- spec/integration/braintree/settlement_batch_summary_spec.rb
|
137
|
-
- spec/integration/braintree/
|
147
|
+
- spec/integration/braintree/test_transaction_spec.rb
|
148
|
+
- spec/integration/braintree/credit_card_verification_spec.rb
|
138
149
|
- spec/integration/braintree/test/transaction_amounts_spec.rb
|
139
150
|
- spec/integration/braintree/transaction_search_spec.rb
|
140
|
-
- spec/integration/braintree/
|
141
|
-
- spec/integration/braintree/
|
151
|
+
- spec/integration/braintree/customer_search_spec.rb
|
152
|
+
- spec/integration/braintree/paypal_account_spec.rb
|
153
|
+
- spec/integration/braintree/merchant_account_spec.rb
|
154
|
+
- spec/integration/braintree/subscription_spec.rb
|
155
|
+
- spec/integration/braintree/error_codes_spec.rb
|
156
|
+
- spec/integration/braintree/add_on_spec.rb
|
157
|
+
- spec/integration/braintree/credit_card_spec.rb
|
158
|
+
- spec/integration/braintree/payment_method_spec.rb
|
159
|
+
- spec/integration/braintree/address_spec.rb
|
142
160
|
- spec/integration/spec_helper.rb
|
143
|
-
- spec/script/httpsd.rb
|
144
|
-
- spec/spec.opts
|
145
|
-
- spec/spec_helper.rb
|
146
161
|
- spec/ssl/certificate.crt
|
147
|
-
- spec/ssl/geotrust_global.crt
|
148
162
|
- spec/ssl/privateKey.key
|
149
|
-
- spec/
|
150
|
-
- spec/unit/braintree/
|
163
|
+
- spec/ssl/geotrust_global.crt
|
164
|
+
- spec/unit/braintree/errors_spec.rb
|
165
|
+
- spec/unit/braintree/successful_result_spec.rb
|
166
|
+
- spec/unit/braintree/transaction_spec.rb
|
167
|
+
- spec/unit/braintree/disbursement_spec.rb
|
168
|
+
- spec/unit/braintree/customer_spec.rb
|
169
|
+
- spec/unit/braintree/validation_error_spec.rb
|
170
|
+
- spec/unit/braintree/transparent_redirect_spec.rb
|
171
|
+
- spec/unit/braintree/credit_card_verification_search_spec.rb
|
172
|
+
- spec/unit/braintree/unknown_payment_method_spec.rb
|
173
|
+
- spec/unit/braintree/http_spec.rb
|
151
174
|
- spec/unit/braintree/client_token_spec.rb
|
175
|
+
- spec/unit/braintree/transaction/customer_details_spec.rb
|
176
|
+
- spec/unit/braintree/transaction/deposit_details_spec.rb
|
177
|
+
- spec/unit/braintree/transaction/credit_card_details_spec.rb
|
152
178
|
- spec/unit/braintree/configuration_spec.rb
|
153
|
-
- spec/unit/braintree/
|
154
|
-
- spec/unit/braintree/
|
179
|
+
- spec/unit/braintree/xml_spec.rb
|
180
|
+
- spec/unit/braintree/base_module_spec.rb
|
181
|
+
- spec/unit/braintree/modification_spec.rb
|
155
182
|
- spec/unit/braintree/credit_card_verification_spec.rb
|
156
|
-
- spec/unit/braintree/
|
157
|
-
- spec/unit/braintree/
|
158
|
-
- spec/unit/braintree/disbursement_spec.rb
|
159
|
-
- spec/unit/braintree/dispute_spec.rb
|
183
|
+
- spec/unit/braintree/transaction_search_spec.rb
|
184
|
+
- spec/unit/braintree/webhook_notification_spec.rb
|
160
185
|
- spec/unit/braintree/error_result_spec.rb
|
161
|
-
- spec/unit/braintree/errors_spec.rb
|
162
|
-
- spec/unit/braintree/http_spec.rb
|
163
|
-
- spec/unit/braintree/merchant_account_spec.rb
|
164
|
-
- spec/unit/braintree/modification_spec.rb
|
165
|
-
- spec/unit/braintree/resource_collection_spec.rb
|
166
|
-
- spec/unit/braintree/sha256_digest_spec.rb
|
167
186
|
- spec/unit/braintree/signature_service_spec.rb
|
168
187
|
- spec/unit/braintree/subscription_search_spec.rb
|
188
|
+
- spec/unit/braintree/paypal_account_spec.rb
|
189
|
+
- spec/unit/braintree/digest_spec.rb
|
190
|
+
- spec/unit/braintree/merchant_account_spec.rb
|
169
191
|
- spec/unit/braintree/subscription_spec.rb
|
170
|
-
- spec/unit/braintree/
|
171
|
-
- spec/unit/braintree/
|
172
|
-
- spec/unit/braintree/
|
173
|
-
- spec/unit/braintree/transaction/deposit_details_spec.rb
|
174
|
-
- spec/unit/braintree/transaction_search_spec.rb
|
175
|
-
- spec/unit/braintree/transaction_spec.rb
|
176
|
-
- spec/unit/braintree/transparent_redirect_spec.rb
|
177
|
-
- spec/unit/braintree/util_spec.rb
|
192
|
+
- spec/unit/braintree/credit_card_spec.rb
|
193
|
+
- spec/unit/braintree/dispute_spec.rb
|
194
|
+
- spec/unit/braintree/sha256_digest_spec.rb
|
178
195
|
- spec/unit/braintree/validation_error_collection_spec.rb
|
179
|
-
- spec/unit/braintree/validation_error_spec.rb
|
180
|
-
- spec/unit/braintree/webhook_notification_spec.rb
|
181
|
-
- spec/unit/braintree/xml/libxml_spec.rb
|
182
196
|
- spec/unit/braintree/xml/parser_spec.rb
|
197
|
+
- spec/unit/braintree/xml/libxml_spec.rb
|
183
198
|
- spec/unit/braintree/xml/rexml_spec.rb
|
184
|
-
- spec/unit/braintree/
|
185
|
-
- spec/unit/
|
199
|
+
- spec/unit/braintree/payment_method_spec.rb
|
200
|
+
- spec/unit/braintree/util_spec.rb
|
201
|
+
- spec/unit/braintree/resource_collection_spec.rb
|
202
|
+
- spec/unit/braintree/address_spec.rb
|
186
203
|
- spec/unit/spec_helper.rb
|
204
|
+
- spec/unit/braintree_spec.rb
|
205
|
+
- spec/script/httpsd.rb
|
206
|
+
- braintree.gemspec
|
187
207
|
homepage: http://www.braintreepayments.com/
|
188
208
|
licenses:
|
189
209
|
- MIT
|
190
|
-
metadata: {}
|
191
210
|
post_install_message:
|
192
211
|
rdoc_options: []
|
193
212
|
require_paths:
|
194
213
|
- lib
|
195
214
|
required_ruby_version: !ruby/object:Gem::Requirement
|
215
|
+
none: false
|
196
216
|
requirements:
|
197
|
-
- - '>='
|
217
|
+
- - ! '>='
|
198
218
|
- !ruby/object:Gem::Version
|
199
219
|
version: '0'
|
200
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
|
+
none: false
|
201
222
|
requirements:
|
202
|
-
- - '>='
|
223
|
+
- - ! '>='
|
203
224
|
- !ruby/object:Gem::Version
|
204
225
|
version: '0'
|
205
226
|
requirements: []
|
206
227
|
rubyforge_project: braintree
|
207
|
-
rubygems_version:
|
228
|
+
rubygems_version: 1.8.23
|
208
229
|
signing_key:
|
209
|
-
specification_version:
|
230
|
+
specification_version: 3
|
210
231
|
summary: Braintree Gateway Ruby Client Library
|
211
232
|
test_files: []
|