braintree 2.38.0 → 2.39.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/README.rdoc +1 -1
  2. data/lib/braintree.rb +3 -0
  3. data/lib/braintree/apple_pay_card.rb +1 -1
  4. data/lib/braintree/coinbase_account.rb +20 -0
  5. data/lib/braintree/customer.rb +3 -2
  6. data/lib/braintree/error_codes.rb +49 -1
  7. data/lib/braintree/payment_method_gateway.rb +4 -0
  8. data/lib/braintree/subscription.rb +9 -0
  9. data/lib/braintree/subscription/status_details.rb +13 -0
  10. data/lib/braintree/test/nonce.rb +1 -0
  11. data/lib/braintree/transaction.rb +2 -0
  12. data/lib/braintree/transaction/apple_pay_details.rb +1 -1
  13. data/lib/braintree/transaction/coinbase_details.rb +13 -0
  14. data/lib/braintree/version.rb +1 -1
  15. data/spec/httpsd.pid +1 -1
  16. data/spec/integration/braintree/coinbase_spec.rb +31 -0
  17. data/spec/integration/braintree/customer_spec.rb +1 -0
  18. data/spec/integration/braintree/http_spec.rb +1 -1
  19. data/spec/integration/braintree/payment_method_spec.rb +1 -0
  20. data/spec/integration/braintree/subscription_spec.rb +12 -8
  21. data/spec/integration/braintree/test_transaction_spec.rb +1 -1
  22. data/spec/integration/braintree/transaction_spec.rb +15 -14
  23. data/spec/integration/braintree/transparent_redirect_spec.rb +8 -0
  24. data/spec/spec_helper.rb +13 -3
  25. data/spec/unit/braintree/address_spec.rb +2 -2
  26. data/spec/unit/braintree/credit_card_spec.rb +2 -2
  27. data/spec/unit/braintree/customer_spec.rb +2 -2
  28. data/spec/unit/braintree/digest_spec.rb +3 -3
  29. data/spec/unit/braintree/payment_method_spec.rb +2 -2
  30. data/spec/unit/braintree/subscription_spec.rb +2 -2
  31. data/spec/unit/braintree/transaction_spec.rb +2 -2
  32. data/spec/unit/braintree/transparent_redirect_spec.rb +3 -3
  33. data/spec/unit/braintree/util_spec.rb +1 -1
  34. data/spec/unit/braintree/webhook_notification_spec.rb +16 -11
  35. metadata +143 -135
  36. checksums.yaml +0 -7
@@ -75,7 +75,7 @@ describe Braintree::TestTransaction do
75
75
  sale_result.success?.should == true
76
76
 
77
77
  settle_result = Braintree::TestTransaction.settlement_decline(sale_result.transaction.id)
78
- settle_result.success?.should be_false
78
+ settle_result.success?.should be(false)
79
79
  settle_result.errors.for(:transaction).on(:base).first.code.should == Braintree::ErrorCodes::Transaction::CannotSimulateTransactionSettlement
80
80
  end
81
81
  end
@@ -70,7 +70,7 @@ describe Braintree::Transaction do
70
70
  }
71
71
  )
72
72
 
73
- result.success?.should be_true
73
+ result.success?.should be(true)
74
74
 
75
75
  clone_result = Braintree::Transaction.clone_transaction(result.transaction.id, :amount => "112.44", :options => {:submit_for_settlement => true})
76
76
  clone_result.success?.should == true
@@ -87,7 +87,7 @@ describe Braintree::Transaction do
87
87
  }
88
88
  )
89
89
  result = Braintree::Transaction.clone_transaction(transaction.id, :amount => "112.44")
90
- result.success?.should be_false
90
+ result.success?.should be(false)
91
91
 
92
92
  result.errors.for(:transaction).on(:base).first.code.should == Braintree::ErrorCodes::Transaction::CannotCloneCredit
93
93
  end
@@ -173,7 +173,7 @@ describe Braintree::Transaction do
173
173
  }
174
174
  }
175
175
  )
176
- result.success?.should be_true
176
+ result.success?.should be(true)
177
177
  end
178
178
 
179
179
  it "returns errors if validations on industry lodging data fails" do
@@ -194,7 +194,7 @@ describe Braintree::Transaction do
194
194
  }
195
195
  }
196
196
  )
197
- result.success?.should be_false
197
+ result.success?.should be(false)
198
198
  invalid_folio = Braintree::ErrorCodes::Transaction::Industry::Lodging::FolioNumberIsInvalid
199
199
  check_out_date_must_follow_check_in_date = Braintree::ErrorCodes::Transaction::Industry::Lodging::CheckOutDateMustFollowCheckInDate
200
200
  result.errors.for(:transaction).for(:industry).map { |e| e.code }.sort.should == [invalid_folio, check_out_date_must_follow_check_in_date]
@@ -221,7 +221,7 @@ describe Braintree::Transaction do
221
221
  }
222
222
  }
223
223
  )
224
- result.success?.should be_true
224
+ result.success?.should be(true)
225
225
  end
226
226
 
227
227
  it "returns errors if validations on industry data fails" do
@@ -239,7 +239,7 @@ describe Braintree::Transaction do
239
239
  }
240
240
  }
241
241
  )
242
- result.success?.should be_false
242
+ result.success?.should be(false)
243
243
  result.errors.for(:transaction).for(:industry).map { |e| e.code }.sort.should == [Braintree::ErrorCodes::Transaction::Industry::TravelCruise::TravelPackageIsInvalid]
244
244
  end
245
245
  end
@@ -799,7 +799,7 @@ describe Braintree::Transaction do
799
799
  }
800
800
  )
801
801
 
802
- result.success?.should be_true
802
+ result.success?.should be(true)
803
803
  transaction = result.subscription.transactions.first
804
804
 
805
805
  transaction.plan_id.should == SpecHelper::TriallessPlan[:id]
@@ -811,13 +811,13 @@ describe Braintree::Transaction do
811
811
  add_ons.first.amount.should == BigDecimal.new("11.00")
812
812
  add_ons.first.quantity.should == 2
813
813
  add_ons.first.number_of_billing_cycles.should == 5
814
- add_ons.first.never_expires?.should be_false
814
+ add_ons.first.never_expires?.should be(false)
815
815
 
816
816
  add_ons.last.id.should == "increase_20"
817
817
  add_ons.last.amount.should == BigDecimal.new("21.00")
818
818
  add_ons.last.quantity.should == 3
819
819
  add_ons.last.number_of_billing_cycles.should == 6
820
- add_ons.last.never_expires?.should be_false
820
+ add_ons.last.never_expires?.should be(false)
821
821
 
822
822
  transaction.discounts.size.should == 1
823
823
 
@@ -825,7 +825,7 @@ describe Braintree::Transaction do
825
825
  transaction.discounts.first.amount.should == BigDecimal.new("7.50")
826
826
  transaction.discounts.first.quantity.should == 2
827
827
  transaction.discounts.first.number_of_billing_cycles.should be_nil
828
- transaction.discounts.first.never_expires?.should be_true
828
+ transaction.discounts.first.never_expires?.should be(true)
829
829
  end
830
830
 
831
831
  context "descriptors" do
@@ -1264,6 +1264,7 @@ describe Braintree::Transaction do
1264
1264
  apple_pay_details = result.transaction.apple_pay_details
1265
1265
  apple_pay_details.should_not be_nil
1266
1266
  apple_pay_details.card_type.should == Braintree::ApplePayCard::CardType::Visa
1267
+ apple_pay_details.payment_instrument_name.should == "Visa 8886"
1267
1268
  apple_pay_details.expiration_month.to_i.should > 0
1268
1269
  apple_pay_details.expiration_year.to_i.should > 0
1269
1270
  apple_pay_details.cardholder_name.should_not be_nil
@@ -2342,7 +2343,7 @@ describe Braintree::Transaction do
2342
2343
 
2343
2344
  result = Braintree::Transaction.cancel_release(transaction.id)
2344
2345
 
2345
- result.success?.should be_true
2346
+ result.success?.should be(true)
2346
2347
  result.transaction.escrow_status.should == Braintree::Transaction::EscrowStatus::Held
2347
2348
  end
2348
2349
 
@@ -2351,7 +2352,7 @@ describe Braintree::Transaction do
2351
2352
 
2352
2353
  result = Braintree::Transaction.cancel_release(transaction.id)
2353
2354
 
2354
- result.success?.should be_false
2355
+ result.success?.should be(false)
2355
2356
  result.errors.for(:transaction).on(:base)[0].code.should == Braintree::ErrorCodes::Transaction::CannotCancelRelease
2356
2357
  end
2357
2358
  end
@@ -2693,7 +2694,7 @@ describe Braintree::Transaction do
2693
2694
  disbursement.settlement_currency_iso_code.should == "USD"
2694
2695
  disbursement.settlement_currency_exchange_rate.should == "1"
2695
2696
  disbursement.funds_held?.should == false
2696
- disbursement.success?.should be_true
2697
+ disbursement.success?.should be(true)
2697
2698
  end
2698
2699
 
2699
2700
  it "is not disbursed" do
@@ -2776,7 +2777,7 @@ describe Braintree::Transaction do
2776
2777
  result.transaction.escrow_status.should be_nil
2777
2778
  result = Braintree::Transaction.hold_in_escrow(result.transaction.id)
2778
2779
 
2779
- result.success?.should be_true
2780
+ result.success?.should be(true)
2780
2781
  result.transaction.escrow_status.should == Braintree::Transaction::EscrowStatus::HoldPending
2781
2782
  end
2782
2783
 
@@ -9,6 +9,14 @@ describe Braintree::TransparentRedirect do
9
9
  end.to raise_error(Braintree::DownForMaintenanceError)
10
10
  end
11
11
 
12
+ it "raises a DownForMaintenanceError when the request times out", :if => ENV['UNICORN'] do
13
+ tr_data = Braintree::TransparentRedirect.create_customer_data({:redirect_url => "http://example.com"}.merge({}))
14
+ query_string_response = SpecHelper.simulate_form_post_for_tr(tr_data, {}, Braintree::Configuration.instantiate.base_merchant_url + "/test/die")
15
+ expect do
16
+ Braintree::Customer.create_from_transparent_redirect(query_string_response)
17
+ end.to raise_error(Braintree::DownForMaintenanceError)
18
+ end
19
+
12
20
  it "raises an AuthenticationError when authentication fails on TR requests" do
13
21
  SpecHelper.using_configuration(:private_key => "incorrect") do
14
22
  tr_data = Braintree::TransparentRedirect.create_customer_data({:redirect_url => "http://example.com"}.merge({}))
@@ -2,6 +2,8 @@ unless defined?(SPEC_HELPER_LOADED)
2
2
  SPEC_HELPER_LOADED = true
3
3
  project_root = File.expand_path(File.dirname(__FILE__) + "/..")
4
4
  require "rubygems"
5
+ require "bundler/setup"
6
+ require "rspec"
5
7
  require "libxml"
6
8
 
7
9
  braintree_lib = "#{project_root}/lib"
@@ -175,7 +177,7 @@ unless defined?(SPEC_HELPER_LOADED)
175
177
  "xml parsing failed for #{@failed_parser}, expected #{@expected_hash.inspect} but was #{@results.inspect}"
176
178
  end
177
179
 
178
- def negative_failure_message
180
+ def failure_message_when_negated
179
181
  raise NotImplementedError
180
182
  end
181
183
  end
@@ -184,8 +186,16 @@ unless defined?(SPEC_HELPER_LOADED)
184
186
  ParseTo.new(hash)
185
187
  end
186
188
  end
189
+ end
190
+
191
+ RSpec.configure do |config|
192
+ config.include CustomMatchers
193
+
194
+ config.expect_with :rspec do |expect|
195
+ expect.syntax = [:should, :expect]
196
+ end
187
197
 
188
- Spec::Runner.configure do |config|
189
- config.include CustomMatchers
198
+ config.mock_with :rspec do |mock|
199
+ mock.syntax = :should
190
200
  end
191
201
  end
@@ -80,10 +80,10 @@ describe Braintree::Address do
80
80
  end
81
81
 
82
82
  it "does not raise an error if address_id does not respond to strip" do
83
- Braintree::Http.stub(:new).and_return stub.as_null_object
83
+ Braintree::Http.stub(:new).and_return double.as_null_object
84
84
  expect do
85
85
  Braintree::Address.find("customer_id", 8675309)
86
- end.to_not raise_error(NoMethodError)
86
+ end.to_not raise_error
87
87
  end
88
88
  end
89
89
 
@@ -149,10 +149,10 @@ describe Braintree::CreditCard do
149
149
  end
150
150
 
151
151
  it "does not raise an error if address_id does not respond to strip" do
152
- Braintree::Http.stub(:new).and_return stub.as_null_object
152
+ Braintree::Http.stub(:new).and_return double.as_null_object
153
153
  expect do
154
154
  Braintree::CreditCard.find(8675309)
155
- end.to_not raise_error(NoMethodError)
155
+ end.to_not raise_error
156
156
  end
157
157
  end
158
158
 
@@ -58,10 +58,10 @@ describe Braintree::Customer do
58
58
  end
59
59
 
60
60
  it "does not raise an exception if the id is a fixnum" do
61
- Braintree::Http.stub(:new).and_return stub.as_null_object
61
+ Braintree::Http.stub(:new).and_return double.as_null_object
62
62
  expect do
63
63
  Braintree::Customer.find(8675309)
64
- end.to_not raise_error(NoMethodError)
64
+ end.to_not raise_error
65
65
  end
66
66
  end
67
67
 
@@ -22,15 +22,15 @@ describe Braintree::Digest do
22
22
 
23
23
  describe "self.secure_compare" do
24
24
  it "returns true if two strings are equal" do
25
- Braintree::Digest.secure_compare("A_string", "A_string").should be_true
25
+ Braintree::Digest.secure_compare("A_string", "A_string").should be(true)
26
26
  end
27
27
 
28
28
  it "returns false if two strings are different and the same length" do
29
- Braintree::Digest.secure_compare("A_string", "A_strong").should be_false
29
+ Braintree::Digest.secure_compare("A_string", "A_strong").should be(false)
30
30
  end
31
31
 
32
32
  it "returns false if one is a prefix of the other" do
33
- Braintree::Digest.secure_compare("A_string", "A_string_that_is_longer").should be_false
33
+ Braintree::Digest.secure_compare("A_string", "A_string_that_is_longer").should be(false)
34
34
  end
35
35
  end
36
36
  end
@@ -4,12 +4,12 @@ describe Braintree::PaymentMethod do
4
4
  describe "find" do
5
5
  it "handles an unknown payment method type" do
6
6
  unknown_response = {:unknown_payment_method => {:token => 1234, :default => true}}
7
- http_instance = mock(:get => unknown_response)
7
+ http_instance = double(:get => unknown_response)
8
8
  Braintree::Http.stub(:new).and_return(http_instance)
9
9
  unknown_payment_method = Braintree::PaymentMethod.find("UNKNOWN_PAYMENT_METHOD_TOKEN")
10
10
 
11
11
  unknown_payment_method.token.should == 1234
12
- unknown_payment_method.default?.should be_true
12
+ unknown_payment_method.default?.should be(true)
13
13
  end
14
14
  end
15
15
 
@@ -42,10 +42,10 @@ describe Braintree::Subscription do
42
42
  end
43
43
 
44
44
  it "does not raise an error if subscription id does not respond to strip" do
45
- Braintree::Http.stub(:new).and_return stub(:get => {:subscription => default_params})
45
+ Braintree::Http.stub(:new).and_return double(:get => {:subscription => default_params})
46
46
  expect do
47
47
  Braintree::Subscription.find(8675309)
48
- end.to_not raise_error(NoMethodError)
48
+ end.to_not raise_error
49
49
  end
50
50
  end
51
51
 
@@ -102,8 +102,8 @@ describe Braintree::Transaction do
102
102
  disbursement.settlement_amount.should == "120.00"
103
103
  disbursement.settlement_currency_iso_code.should == "USD"
104
104
  disbursement.settlement_currency_exchange_rate.should == "1"
105
- disbursement.funds_held?.should be_false
106
- disbursement.success?.should be_true
105
+ disbursement.funds_held?.should be(false)
106
+ disbursement.success?.should be(true)
107
107
  end
108
108
 
109
109
  it "sets up credit card attributes in credit_card_details" do
@@ -75,7 +75,7 @@ describe Braintree::TransparentRedirect do
75
75
 
76
76
  expect do
77
77
  Braintree::Configuration.gateway.transparent_redirect.parse_and_validate_query_string url_encoded_query_string
78
- end.to_not raise_error(Braintree::ForgedQueryString)
78
+ end.to raise_error(Braintree::UnexpectedError)
79
79
  end
80
80
 
81
81
  it "does not raise Braintree::ForgedQueryString if query string is url decoded" do
@@ -88,7 +88,7 @@ describe Braintree::TransparentRedirect do
88
88
 
89
89
  expect do
90
90
  Braintree::Configuration.gateway.transparent_redirect.parse_and_validate_query_string url_decoded_query_string
91
- end.to_not raise_error(Braintree::ForgedQueryString)
91
+ end.to_not raise_error
92
92
  end
93
93
 
94
94
  it "does not raise Braintree::ForgedQueryString if the query string is partially encoded" do
@@ -100,7 +100,7 @@ describe Braintree::TransparentRedirect do
100
100
 
101
101
  expect do
102
102
  Braintree::Configuration.gateway.transparent_redirect.parse_and_validate_query_string url_partially_encoded_query_string
103
- end.to_not raise_error(Braintree::ForgedQueryString)
103
+ end.to_not raise_error
104
104
  end
105
105
 
106
106
  it "raises an AuthenticationError if authentication fails" do
@@ -115,7 +115,7 @@ describe Braintree::Util do
115
115
  :add => [{:bar => 5}]
116
116
  }
117
117
  )
118
- end.to_not raise_error(ArgumentError, "invalid keys: add_ons[update][foo], add_ons[add][bar]")
118
+ end.to raise_error(ArgumentError, /invalid keys: add_ons\[add\]\[bar\], add_ons\[update\]\[foo\]/)
119
119
  end
120
120
  end
121
121
 
@@ -12,7 +12,7 @@ describe Braintree::WebhookNotification do
12
12
 
13
13
  notification.kind.should == Braintree::WebhookNotification::Kind::SubscriptionWentPastDue
14
14
  notification.subscription.id.should == "my_id"
15
- notification.timestamp.should be_close(Time.now.utc, 10)
15
+ notification.timestamp.should be_within(10).of(Time.now.utc)
16
16
  end
17
17
 
18
18
  it "builds a sample notification for a partner merchant connected webhook" do
@@ -29,7 +29,7 @@ describe Braintree::WebhookNotification do
29
29
  notification.partner_merchant.private_key.should == "private_key"
30
30
  notification.partner_merchant.partner_merchant_id.should == "abc123"
31
31
  notification.partner_merchant.client_side_encryption_key.should == "cse_key"
32
- notification.timestamp.should be_close(Time.now.utc, 10)
32
+ notification.timestamp.should be_within(10).of(Time.now.utc)
33
33
  end
34
34
 
35
35
  it "builds a sample notification for a partner merchant disconnected webhook" do
@@ -42,7 +42,7 @@ describe Braintree::WebhookNotification do
42
42
 
43
43
  notification.kind.should == Braintree::WebhookNotification::Kind::PartnerMerchantDisconnected
44
44
  notification.partner_merchant.partner_merchant_id.should == "abc123"
45
- notification.timestamp.should be_close(Time.now.utc, 10)
45
+ notification.timestamp.should be_within(10).of(Time.now.utc)
46
46
  end
47
47
 
48
48
  it "builds a sample notification for a partner merchant declined webhook" do
@@ -55,7 +55,7 @@ describe Braintree::WebhookNotification do
55
55
 
56
56
  notification.kind.should == Braintree::WebhookNotification::Kind::PartnerMerchantDeclined
57
57
  notification.partner_merchant.partner_merchant_id.should == "abc123"
58
- notification.timestamp.should be_close(Time.now.utc, 10)
58
+ notification.timestamp.should be_within(10).of(Time.now.utc)
59
59
  end
60
60
 
61
61
  context "disputes" do
@@ -131,8 +131,8 @@ describe Braintree::WebhookNotification do
131
131
  notification.kind.should == Braintree::WebhookNotification::Kind::DisbursementException
132
132
  notification.disbursement.id.should == "my_id"
133
133
  notification.disbursement.transaction_ids.should == %W{ afv56j kj8hjk }
134
- notification.disbursement.retry.should be_false
135
- notification.disbursement.success.should be_false
134
+ notification.disbursement.retry.should be(false)
135
+ notification.disbursement.success.should be(false)
136
136
  notification.disbursement.exception_message.should == "bank_rejected"
137
137
  notification.disbursement.disbursement_date.should == Date.parse("2014-02-10")
138
138
  notification.disbursement.follow_up_action.should == "update_funding_information"
@@ -150,8 +150,8 @@ describe Braintree::WebhookNotification do
150
150
  notification.kind.should == Braintree::WebhookNotification::Kind::Disbursement
151
151
  notification.disbursement.id.should == "my_id"
152
152
  notification.disbursement.transaction_ids.should == %W{ afv56j kj8hjk }
153
- notification.disbursement.retry.should be_false
154
- notification.disbursement.success.should be_true
153
+ notification.disbursement.retry.should be(false)
154
+ notification.disbursement.success.should be(true)
155
155
  notification.disbursement.exception_message.should be_nil
156
156
  notification.disbursement.disbursement_date.should == Date.parse("2014-02-10")
157
157
  notification.disbursement.follow_up_action.should be_nil
@@ -263,9 +263,14 @@ describe Braintree::WebhookNotification do
263
263
  )
264
264
 
265
265
  sample_notification[:bt_payload] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+=/\n"
266
- expect do
266
+
267
+ begin
267
268
  Braintree::WebhookNotification.parse(sample_notification[:bt_signature], sample_notification[:bt_payload])
268
- end.to_not raise_error(Braintree::InvalidSignature, /payload contains illegal characters/)
269
+ rescue Braintree::InvalidSignature => e
270
+ exception = e
271
+ end
272
+
273
+ exception.message.should_not match(/payload contains illegal characters/)
269
274
  end
270
275
 
271
276
  it "retries a payload with a newline" do
@@ -278,7 +283,7 @@ describe Braintree::WebhookNotification do
278
283
 
279
284
  notification.kind.should == Braintree::WebhookNotification::Kind::SubscriptionWentPastDue
280
285
  notification.subscription.id.should == "my_id"
281
- notification.timestamp.should be_close(Time.now.utc, 10)
286
+ notification.timestamp.should be_within(10).of(Time.now.utc)
282
287
  end
283
288
  end
284
289
 
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.38.0
4
+ version: 2.39.0
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-12-10 00:00:00.000000000 Z
12
+ date: 2015-01-29 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
@@ -33,202 +36,207 @@ files:
33
36
  - README.rdoc
34
37
  - LICENSE
35
38
  - lib/braintree.rb
36
- - lib/braintree/configuration.rb
37
- - lib/braintree/credit_card_verification_search.rb
38
- - lib/braintree/discount_gateway.rb
39
+ - lib/braintree/test/credit_card.rb
40
+ - lib/braintree/test/merchant_account.rb
41
+ - lib/braintree/test/nonce.rb
42
+ - lib/braintree/test/transaction_amounts.rb
43
+ - lib/braintree/test/venmo_sdk.rb
39
44
  - lib/braintree/add_on_gateway.rb
45
+ - lib/braintree/credit_card.rb
46
+ - lib/braintree/testing_gateway.rb
47
+ - lib/braintree/subscription_gateway.rb
48
+ - lib/braintree/error_result.rb
49
+ - lib/braintree/digest.rb
50
+ - lib/braintree/settlement_batch_summary.rb
51
+ - lib/braintree/validation_error_collection.rb
52
+ - lib/braintree/merchant_account/individual_details.rb
53
+ - lib/braintree/merchant_account/address_details.rb
54
+ - lib/braintree/merchant_account/funding_details.rb
55
+ - lib/braintree/merchant_account/business_details.rb
56
+ - lib/braintree/add_on.rb
57
+ - lib/braintree/merchant_account.rb
58
+ - lib/braintree/address_gateway.rb
40
59
  - lib/braintree/descriptor.rb
41
- - lib/braintree/paypal_account_gateway.rb
42
- - lib/braintree/subscription_search.rb
43
- - lib/braintree/apple_pay_card.rb
44
- - lib/braintree/merchant_account_gateway.rb
60
+ - lib/braintree/sha256_digest.rb
61
+ - lib/braintree/successful_result.rb
62
+ - lib/braintree/client_token_gateway.rb
63
+ - lib/braintree/subscription/status_details.rb
64
+ - lib/braintree/xml.rb
65
+ - lib/braintree/settlement_batch.rb
66
+ - lib/braintree/dispute/transaction_details.rb
67
+ - lib/braintree/resource_collection.rb
68
+ - lib/braintree/configuration.rb
69
+ - lib/braintree/webhook_notification_gateway.rb
45
70
  - lib/braintree/util.rb
46
- - lib/braintree/add_on.rb
47
- - lib/braintree/validation_error.rb
48
- - lib/braintree/errors.rb
49
- - lib/braintree/error_codes.rb
71
+ - lib/braintree/transparent_redirect_gateway.rb
72
+ - lib/braintree/transaction_gateway.rb
73
+ - lib/braintree/address/country_names.rb
50
74
  - lib/braintree/signature_service.rb
51
- - lib/braintree/test_transaction.rb
75
+ - lib/braintree/customer_search.rb
76
+ - lib/braintree/transparent_redirect.rb
77
+ - lib/braintree/subscription_search.rb
78
+ - lib/braintree/base_module.rb
52
79
  - lib/braintree/discount.rb
53
- - lib/braintree/client_token_gateway.rb
54
- - lib/braintree/merchant_account/business_details.rb
55
- - lib/braintree/merchant_account/address_details.rb
56
- - lib/braintree/merchant_account/individual_details.rb
57
- - lib/braintree/merchant_account/funding_details.rb
58
- - lib/braintree/address.rb
59
- - lib/braintree/webhook_testing_gateway.rb
60
80
  - lib/braintree/transaction_search.rb
61
- - lib/braintree/risk_data.rb
62
- - lib/braintree/transparent_redirect.rb
63
- - lib/braintree/digest.rb
64
- - lib/braintree/plan.rb
65
- - lib/braintree/resource_collection.rb
81
+ - lib/braintree/address.rb
82
+ - lib/braintree/settlement_batch_summary_gateway.rb
83
+ - lib/braintree/webhook_testing.rb
66
84
  - lib/braintree/sepa_bank_account.rb
67
85
  - lib/braintree/payment_instrument_type.rb
68
- - lib/braintree/subscription.rb
69
- - lib/braintree/payment_method_gateway.rb
70
- - lib/braintree/error_result.rb
71
- - lib/braintree/settlement_batch.rb
86
+ - lib/braintree/unknown_payment_method.rb
87
+ - lib/braintree/http.rb
88
+ - lib/braintree/credit_card_verification_search.rb
89
+ - lib/braintree/credit_card_gateway.rb
90
+ - lib/braintree/version.rb
91
+ - lib/braintree/client_token.rb
92
+ - lib/braintree/credit_card_verification.rb
93
+ - lib/braintree/payment_method.rb
94
+ - lib/braintree/plan.rb
95
+ - lib/braintree/dispute.rb
96
+ - lib/braintree/credit_card_verification_gateway.rb
72
97
  - lib/braintree/plan_gateway.rb
73
- - lib/braintree/webhook_notification_gateway.rb
74
- - lib/braintree/advanced_search.rb
98
+ - lib/braintree/subscription.rb
99
+ - lib/braintree/coinbase_account.rb
75
100
  - lib/braintree/xml/rexml.rb
101
+ - lib/braintree/xml/parser.rb
76
102
  - lib/braintree/xml/libxml.rb
77
103
  - lib/braintree/xml/generator.rb
78
- - lib/braintree/xml/parser.rb
79
- - lib/braintree/customer.rb
80
- - lib/braintree/settlement_batch_summary_gateway.rb
81
- - lib/braintree/credit_card.rb
82
- - lib/braintree/dispute.rb
83
- - lib/braintree/subscription_gateway.rb
84
- - lib/braintree/client_token.rb
85
- - lib/braintree/transaction.rb
104
+ - lib/braintree/modification.rb
105
+ - lib/braintree/error_codes.rb
106
+ - lib/braintree/customer_gateway.rb
107
+ - lib/braintree/webhook_testing_gateway.rb
108
+ - lib/braintree/apple_pay_card.rb
109
+ - lib/braintree/validation_error.rb
110
+ - lib/braintree/advanced_search.rb
86
111
  - lib/braintree/paypal_account.rb
87
- - lib/braintree/webhook_notification.rb
112
+ - lib/braintree/customer.rb
88
113
  - lib/braintree/disbursement.rb
89
- - lib/braintree/http.rb
90
- - lib/braintree/webhook_testing.rb
91
- - lib/braintree/unknown_payment_method.rb
92
- - lib/braintree/validation_error_collection.rb
93
- - lib/braintree/sha256_digest.rb
94
- - lib/braintree/credit_card_verification_gateway.rb
95
- - lib/braintree/xml.rb
96
- - lib/braintree/modification.rb
97
- - lib/braintree/transaction_gateway.rb
114
+ - lib/braintree/discount_gateway.rb
115
+ - lib/braintree/webhook_notification.rb
116
+ - lib/braintree/errors.rb
117
+ - lib/braintree/transaction.rb
98
118
  - lib/braintree/sepa_bank_account_gateway.rb
99
- - lib/braintree/testing_gateway.rb
100
- - lib/braintree/version.rb
101
- - lib/braintree/successful_result.rb
102
- - lib/braintree/base_module.rb
103
- - lib/braintree/transaction/status_details.rb
104
- - lib/braintree/transaction/paypal_details.rb
105
- - lib/braintree/transaction/customer_details.rb
119
+ - lib/braintree/paypal_account_gateway.rb
120
+ - lib/braintree/exceptions.rb
121
+ - lib/braintree/test_transaction.rb
122
+ - lib/braintree/merchant_account_gateway.rb
123
+ - lib/braintree/risk_data.rb
124
+ - lib/braintree/payment_method_gateway.rb
125
+ - lib/braintree/transaction/apple_pay_details.rb
106
126
  - lib/braintree/transaction/address_details.rb
127
+ - lib/braintree/transaction/credit_card_details.rb
107
128
  - lib/braintree/transaction/disbursement_details.rb
129
+ - lib/braintree/transaction/status_details.rb
130
+ - lib/braintree/transaction/coinbase_details.rb
108
131
  - lib/braintree/transaction/subscription_details.rb
109
- - lib/braintree/transaction/apple_pay_details.rb
110
- - lib/braintree/transaction/credit_card_details.rb
111
- - lib/braintree/address_gateway.rb
112
- - lib/braintree/customer_search.rb
113
- - lib/braintree/exceptions.rb
114
- - lib/braintree/dispute/transaction_details.rb
115
- - lib/braintree/credit_card_gateway.rb
116
- - lib/braintree/credit_card_verification.rb
117
- - lib/braintree/transparent_redirect_gateway.rb
118
- - lib/braintree/customer_gateway.rb
119
- - lib/braintree/merchant_account.rb
120
- - lib/braintree/test/venmo_sdk.rb
121
- - lib/braintree/test/credit_card.rb
122
- - lib/braintree/test/nonce.rb
123
- - lib/braintree/test/transaction_amounts.rb
124
- - lib/braintree/test/merchant_account.rb
132
+ - lib/braintree/transaction/customer_details.rb
133
+ - lib/braintree/transaction/paypal_details.rb
125
134
  - lib/braintree/gateway.rb
126
- - lib/braintree/address/country_names.rb
127
- - lib/braintree/settlement_batch_summary.rb
128
- - lib/braintree/payment_method.rb
129
135
  - lib/ssl/api_braintreegateway_com.ca.crt
130
136
  - lib/ssl/sandbox_braintreegateway_com.ca.crt
131
137
  - lib/ssl/securetrust_ca.crt
132
138
  - lib/ssl/www_braintreegateway_com.ca.crt
133
- - spec/script/httpsd.rb
134
- - spec/httpsd.pid
135
- - spec/hacks/tcp_socket.rb
136
- - spec/unit/braintree/configuration_spec.rb
139
+ - spec/unit/spec_helper.rb
140
+ - spec/unit/braintree_spec.rb
137
141
  - spec/unit/braintree/credit_card_spec.rb
138
- - spec/unit/braintree/risk_data_spec.rb
139
- - spec/unit/braintree/digest_spec.rb
140
- - spec/unit/braintree/client_token_spec.rb
141
142
  - spec/unit/braintree/payment_method_spec.rb
142
- - spec/unit/braintree/transaction_spec.rb
143
- - spec/unit/braintree/address_spec.rb
144
- - spec/unit/braintree/successful_result_spec.rb
145
- - spec/unit/braintree/util_spec.rb
146
- - spec/unit/braintree/transparent_redirect_spec.rb
143
+ - spec/unit/braintree/credit_card_verification_spec.rb
144
+ - spec/unit/braintree/validation_error_collection_spec.rb
145
+ - spec/unit/braintree/base_module_spec.rb
147
146
  - spec/unit/braintree/modification_spec.rb
147
+ - spec/unit/braintree/webhook_notification_spec.rb
148
+ - spec/unit/braintree/error_result_spec.rb
149
+ - spec/unit/braintree/subscription_spec.rb
148
150
  - spec/unit/braintree/unknown_payment_method_spec.rb
149
- - spec/unit/braintree/sha256_digest_spec.rb
150
- - spec/unit/braintree/base_module_spec.rb
151
+ - spec/unit/braintree/digest_spec.rb
152
+ - spec/unit/braintree/transaction_spec.rb
153
+ - spec/unit/braintree/disbursement_spec.rb
154
+ - spec/unit/braintree/customer_spec.rb
155
+ - spec/unit/braintree/dispute_spec.rb
156
+ - spec/unit/braintree/resource_collection_spec.rb
157
+ - spec/unit/braintree/http_spec.rb
158
+ - spec/unit/braintree/paypal_account_spec.rb
159
+ - spec/unit/braintree/util_spec.rb
151
160
  - spec/unit/braintree/xml_spec.rb
152
- - spec/unit/braintree/validation_error_spec.rb
153
- - spec/unit/braintree/credit_card_verification_search_spec.rb
154
161
  - spec/unit/braintree/subscription_search_spec.rb
155
- - spec/unit/braintree/xml/libxml_spec.rb
162
+ - spec/unit/braintree/sha256_digest_spec.rb
163
+ - spec/unit/braintree/successful_result_spec.rb
164
+ - spec/unit/braintree/transparent_redirect_spec.rb
165
+ - spec/unit/braintree/configuration_spec.rb
166
+ - spec/unit/braintree/signature_service_spec.rb
167
+ - spec/unit/braintree/errors_spec.rb
156
168
  - spec/unit/braintree/xml/parser_spec.rb
169
+ - spec/unit/braintree/xml/libxml_spec.rb
157
170
  - spec/unit/braintree/xml/rexml_spec.rb
158
- - spec/unit/braintree/http_spec.rb
159
- - spec/unit/braintree/errors_spec.rb
171
+ - spec/unit/braintree/validation_error_spec.rb
172
+ - spec/unit/braintree/address_spec.rb
173
+ - spec/unit/braintree/credit_card_verification_search_spec.rb
160
174
  - spec/unit/braintree/merchant_account_spec.rb
161
- - spec/unit/braintree/dispute_spec.rb
162
- - spec/unit/braintree/signature_service_spec.rb
163
- - spec/unit/braintree/customer_spec.rb
175
+ - spec/unit/braintree/risk_data_spec.rb
164
176
  - spec/unit/braintree/transaction_search_spec.rb
165
- - spec/unit/braintree/subscription_spec.rb
166
- - spec/unit/braintree/paypal_account_spec.rb
167
- - spec/unit/braintree/webhook_notification_spec.rb
168
177
  - spec/unit/braintree/transaction/deposit_details_spec.rb
169
178
  - spec/unit/braintree/transaction/credit_card_details_spec.rb
170
179
  - spec/unit/braintree/transaction/customer_details_spec.rb
171
- - spec/unit/braintree/validation_error_collection_spec.rb
172
- - spec/unit/braintree/credit_card_verification_spec.rb
173
- - spec/unit/braintree/error_result_spec.rb
174
- - spec/unit/braintree/disbursement_spec.rb
175
- - spec/unit/braintree/resource_collection_spec.rb
176
- - spec/unit/braintree_spec.rb
177
- - spec/unit/spec_helper.rb
178
- - spec/spec.opts
180
+ - spec/unit/braintree/client_token_spec.rb
181
+ - spec/hacks/tcp_socket.rb
179
182
  - spec/ssl/certificate.crt
180
- - spec/ssl/privateKey.key
181
183
  - spec/ssl/geotrust_global.crt
182
- - spec/integration/braintree/plan_spec.rb
184
+ - spec/ssl/privateKey.key
185
+ - spec/integration/spec_helper.rb
186
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
183
187
  - spec/integration/braintree/credit_card_spec.rb
184
- - spec/integration/braintree/client_api/client_token_spec.rb
185
- - spec/integration/braintree/client_api/spec_helper.rb
186
188
  - spec/integration/braintree/payment_method_spec.rb
189
+ - spec/integration/braintree/credit_card_verification_spec.rb
190
+ - spec/integration/braintree/subscription_spec.rb
187
191
  - spec/integration/braintree/transaction_spec.rb
188
- - spec/integration/braintree/address_spec.rb
189
- - spec/integration/braintree/transparent_redirect_spec.rb
190
- - spec/integration/braintree/credit_card_verification_search_spec.rb
191
- - spec/integration/braintree/http_spec.rb
192
- - spec/integration/braintree/merchant_account_spec.rb
192
+ - spec/integration/braintree/disbursement_spec.rb
193
193
  - spec/integration/braintree/customer_spec.rb
194
- - spec/integration/braintree/transaction_search_spec.rb
195
- - spec/integration/braintree/subscription_spec.rb
196
- - spec/integration/braintree/settlement_batch_summary_spec.rb
197
- - spec/integration/braintree/advanced_search_spec.rb
194
+ - spec/integration/braintree/http_spec.rb
198
195
  - spec/integration/braintree/paypal_account_spec.rb
199
- - spec/integration/braintree/test_transaction_spec.rb
200
- - spec/integration/braintree/credit_card_verification_spec.rb
196
+ - spec/integration/braintree/client_api/spec_helper.rb
197
+ - spec/integration/braintree/client_api/client_token_spec.rb
201
198
  - spec/integration/braintree/discount_spec.rb
202
- - spec/integration/braintree/customer_search_spec.rb
203
199
  - spec/integration/braintree/add_on_spec.rb
204
- - spec/integration/braintree/disbursement_spec.rb
205
- - spec/integration/braintree/test/transaction_amounts_spec.rb
206
200
  - spec/integration/braintree/error_codes_spec.rb
207
- - spec/integration/spec_helper.rb
201
+ - spec/integration/braintree/transparent_redirect_spec.rb
202
+ - spec/integration/braintree/coinbase_spec.rb
203
+ - spec/integration/braintree/test_transaction_spec.rb
204
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
205
+ - spec/integration/braintree/address_spec.rb
206
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
207
+ - spec/integration/braintree/merchant_account_spec.rb
208
+ - spec/integration/braintree/transaction_search_spec.rb
209
+ - spec/integration/braintree/customer_search_spec.rb
210
+ - spec/integration/braintree/advanced_search_spec.rb
211
+ - spec/integration/braintree/plan_spec.rb
208
212
  - spec/spec_helper.rb
213
+ - spec/spec.opts
214
+ - spec/script/httpsd.rb
215
+ - spec/httpsd.pid
209
216
  - braintree.gemspec
210
217
  homepage: http://www.braintreepayments.com/
211
218
  licenses:
212
219
  - MIT
213
- metadata: {}
214
220
  post_install_message:
215
221
  rdoc_options: []
216
222
  require_paths:
217
223
  - lib
218
224
  required_ruby_version: !ruby/object:Gem::Requirement
225
+ none: false
219
226
  requirements:
220
- - - '>='
227
+ - - ! '>='
221
228
  - !ruby/object:Gem::Version
222
229
  version: '0'
223
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
+ none: false
224
232
  requirements:
225
- - - '>='
233
+ - - ! '>='
226
234
  - !ruby/object:Gem::Version
227
235
  version: '0'
228
236
  requirements: []
229
237
  rubyforge_project: braintree
230
- rubygems_version: 2.1.11
238
+ rubygems_version: 1.8.23
231
239
  signing_key:
232
- specification_version: 4
240
+ specification_version: 3
233
241
  summary: Braintree Gateway Ruby Client Library
234
242
  test_files: []