braintree 2.55.0 → 2.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c0f268bc9f0c150d7d47bb52211acfabf25e4986
4
+ data.tar.gz: c7f50ca6d6bc6cda98f0213206e0017d69a09d68
5
+ SHA512:
6
+ metadata.gz: 75efe54c9df5872c3fd908430419f293750d6eb7316dedec1e41b5e10bbac526cbfbe08bab8c53703070cda1030b145c5985849624201754e4856b8898ffde67
7
+ data.tar.gz: c6d478324bd3c1c241e4d76eafb82d45c1c1f715080edeadc6dae540a0a7fdc09451cb515535336ac9eb1ba8f5e7011b7147bd1224a9f37c64b7ae84c781f3fe
@@ -5,19 +5,7 @@ module Braintree
5
5
  DEFAULT_VERSION = 2
6
6
 
7
7
  def self.generate(options={})
8
- _validate_options(options)
9
-
10
- options[:version] ||= DEFAULT_VERSION
11
-
12
8
  Configuration.gateway.client_token.generate(options)
13
9
  end
14
-
15
- def self._validate_options(options)
16
- [:make_default, :fail_on_duplicate_payment_method, :verify_card].each do |credit_card_option|
17
- if options[credit_card_option]
18
- raise ArgumentError.new("cannot specify #{credit_card_option} without a customer_id") unless options[:customer_id]
19
- end
20
- end
21
- end
22
10
  end
23
11
  end
@@ -7,11 +7,13 @@ module Braintree
7
7
  end
8
8
 
9
9
  def generate(options={})
10
- params = nil
11
- if options
12
- Util.verify_keys(ClientTokenGateway._generate_signature, options)
13
- params = {:client_token => options}
14
- end
10
+ _validate_options(options)
11
+
12
+ options[:version] ||= ClientToken::DEFAULT_VERSION
13
+
14
+ Util.verify_keys(ClientTokenGateway._generate_signature, options)
15
+
16
+ params = {:client_token => options}
15
17
  result = @config.http.post("#{@config.base_merchant_path}/client_token", params)
16
18
 
17
19
  if result[:client_token]
@@ -28,5 +30,13 @@ module Braintree
28
30
  {:options => [:make_default, :verify_card, :fail_on_duplicate_payment_method]}
29
31
  ]
30
32
  end
33
+
34
+ def _validate_options(options)
35
+ [:make_default, :fail_on_duplicate_payment_method, :verify_card].each do |credit_card_option|
36
+ if options[credit_card_option]
37
+ raise ArgumentError.new("cannot specify #{credit_card_option} without a customer_id") unless options[:customer_id]
38
+ end
39
+ end
40
+ end
31
41
  end
32
42
  end
@@ -21,5 +21,9 @@ module Braintree
21
21
  def self.grant(token, allow_vaulting)
22
22
  Configuration.gateway.payment_method.grant(token, allow_vaulting)
23
23
  end
24
+
25
+ def self.revoke(token)
26
+ Configuration.gateway.payment_method.revoke(token)
27
+ end
24
28
  end
25
29
  end
@@ -29,6 +29,10 @@ module Braintree
29
29
  SuccessfulResult.new(:payment_method => AmexExpressCheckoutCard._new(@gateway, response[:amex_express_checkout_card]))
30
30
  elsif response[:venmo_account]
31
31
  SuccessfulResult.new(:payment_method => VenmoAccount._new(@gateway, response[:venmo_account]))
32
+ elsif response[:payment_method_nonce]
33
+ SuccessfulResult.new(:payment_method_nonce => PaymentMethodNonce._new(@gateway, response[:payment_method_nonce]))
34
+ elsif response[:success]
35
+ SuccessfulResult.new
32
36
  elsif response[:api_error_response]
33
37
  ErrorResult.new(@gateway, response[:api_error_response])
34
38
  elsif response
@@ -72,14 +76,27 @@ module Braintree
72
76
 
73
77
  def grant(token, allow_vaulting)
74
78
  raise ArgumentError if token.nil? || token.to_s.strip == ""
75
- response = @config.http.post(
76
- "#{@config.base_merchant_path}/payment_methods/grant",
79
+
80
+ _do_create(
81
+ "/payment_methods/grant",
77
82
  :payment_method => {
78
83
  :shared_payment_method_token => token,
79
84
  :allow_vaulting => allow_vaulting
80
85
  }
81
86
  )
82
- PaymentMethodNonce._new(@gateway, response[:payment_method_nonce])
87
+ rescue NotFoundError
88
+ raise NotFoundError, "payment method with token #{token.inspect} not found"
89
+ end
90
+
91
+ def revoke(token)
92
+ raise ArgumentError if token.nil? || token.to_s.strip == ""
93
+
94
+ _do_create(
95
+ "/payment_methods/revoke",
96
+ :payment_method => {
97
+ :shared_payment_method_token => token
98
+ }
99
+ )
83
100
  rescue NotFoundError
84
101
  raise NotFoundError, "payment method with token #{token.inspect} not found"
85
102
  end
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 55
4
+ Minor = 56
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
data/spec/httpsd.pid CHANGED
@@ -1 +1 @@
1
- 19402
1
+ 15622
@@ -512,94 +512,6 @@ describe Braintree::CreditCard do
512
512
  end
513
513
  end
514
514
 
515
- describe "self.grant" do
516
- before(:each) do
517
- partner_merchant_gateway = Braintree::Gateway.new(
518
- :merchant_id => "integration_merchant_public_id",
519
- :public_key => "oauth_app_partner_user_public_key",
520
- :private_key => "oauth_app_partner_user_private_key",
521
- :environment => :development,
522
- :logger => Logger.new("/dev/null")
523
- )
524
- customer = partner_merchant_gateway.customer.create(
525
- :first_name => "Joe",
526
- :last_name => "Brown",
527
- :company => "ExampleCo",
528
- :email => "joe@example.com",
529
- :phone => "312.555.1234",
530
- :fax => "614.555.5678",
531
- :website => "www.example.com"
532
- ).customer
533
- @credit_card = partner_merchant_gateway.credit_card.create(
534
- :customer_id => customer.id,
535
- :cardholder_name => "Adam Davis",
536
- :number => Braintree::Test::CreditCardNumbers::Visa,
537
- :expiration_date => "05/2009"
538
- ).credit_card
539
-
540
- oauth_gateway = Braintree::Gateway.new(
541
- :client_id => "client_id$development$integration_client_id",
542
- :client_secret => "client_secret$development$integration_client_secret",
543
- :logger => Logger.new("/dev/null")
544
- )
545
- access_token = Braintree::OAuthTestHelper.create_token(oauth_gateway, {
546
- :merchant_public_id => "integration_merchant_id",
547
- :scope => "grant_payment_method"
548
- }).credentials.access_token
549
-
550
- @granting_gateway = Braintree::Gateway.new(
551
- :access_token => access_token,
552
- :logger => Logger.new("/dev/null")
553
- )
554
- end
555
-
556
- it "returns a nonce that is transactable by a partner merchant exactly once" do
557
- grant_result = @granting_gateway.credit_card.grant(@credit_card.token, false)
558
-
559
- result = Braintree::Transaction.sale(
560
- :payment_method_nonce => grant_result.nonce,
561
- :amount => Braintree::Test::TransactionAmounts::Authorize
562
- )
563
- result.success?.should == true
564
-
565
- result2 = Braintree::Transaction.sale(
566
- :payment_method_nonce => grant_result.nonce,
567
- :amount => Braintree::Test::TransactionAmounts::Authorize
568
- )
569
- result2.success?.should == false
570
- end
571
-
572
- it "returns a nonce that is not vaultable" do
573
- grant_result = @granting_gateway.credit_card.grant(@credit_card.token, false)
574
-
575
- customer_result = Braintree::Customer.create()
576
-
577
- result = Braintree::PaymentMethod.create(
578
- :customer_id => customer_result.customer.id,
579
- :payment_method_nonce => grant_result.nonce
580
- )
581
- result.success?.should == false
582
- end
583
-
584
- it "returns a nonce that is vaultable" do
585
- grant_result = @granting_gateway.credit_card.grant(@credit_card.token, true)
586
-
587
- customer_result = Braintree::Customer.create()
588
-
589
- result = Braintree::PaymentMethod.create(
590
- :customer_id => customer_result.customer.id,
591
- :payment_method_nonce => grant_result.nonce
592
- )
593
- result.success?.should == true
594
- end
595
-
596
- it "raises an error if the token isn't found" do
597
- expect do
598
- @granting_gateway.credit_card.grant("not_a_real_token", false)
599
- end.to raise_error
600
- end
601
- end
602
-
603
515
  describe "self.create!" do
604
516
  it "returns the credit card if successful" do
605
517
  customer = Braintree::Customer.create!
@@ -1199,7 +1199,7 @@ describe Braintree::PaymentMethod do
1199
1199
  end
1200
1200
  end
1201
1201
 
1202
- describe "self.grant" do
1202
+ context "payment method grant and revoke" do
1203
1203
  before(:each) do
1204
1204
  partner_merchant_gateway = Braintree::Gateway.new(
1205
1205
  :merchant_id => "integration_merchant_public_id",
@@ -1240,50 +1240,80 @@ describe Braintree::PaymentMethod do
1240
1240
  )
1241
1241
  end
1242
1242
 
1243
- it "returns a nonce that is transactable by a partner merchant exactly once" do
1244
- grant_result = @granting_gateway.payment_method.grant(@credit_card.token, false)
1243
+ describe "self.grant" do
1244
+ it "returns an error result when the grant doesn't succeed" do
1245
+ grant_result = @granting_gateway.payment_method.grant("payment_method_from_grant", true)
1246
+ grant_result.should_not be_success
1247
+ end
1245
1248
 
1246
- result = Braintree::Transaction.sale(
1247
- :payment_method_nonce => grant_result.nonce,
1248
- :amount => Braintree::Test::TransactionAmounts::Authorize
1249
- )
1250
- result.success?.should == true
1249
+ it "returns a nonce that is transactable by a partner merchant exactly once" do
1250
+ grant_result = @granting_gateway.payment_method.grant(@credit_card.token, false)
1251
+ grant_result.should be_success
1251
1252
 
1252
- result2 = Braintree::Transaction.sale(
1253
- :payment_method_nonce => grant_result.nonce,
1254
- :amount => Braintree::Test::TransactionAmounts::Authorize
1255
- )
1256
- result2.success?.should == false
1257
- end
1253
+ result = Braintree::Transaction.sale(
1254
+ :payment_method_nonce => grant_result.payment_method_nonce.nonce,
1255
+ :amount => Braintree::Test::TransactionAmounts::Authorize
1256
+ )
1257
+ result.should be_success
1258
1258
 
1259
- it "returns a nonce that is not vaultable" do
1260
- grant_result = @granting_gateway.payment_method.grant(@credit_card.token, false)
1259
+ result2 = Braintree::Transaction.sale(
1260
+ :payment_method_nonce => grant_result.payment_method_nonce.nonce,
1261
+ :amount => Braintree::Test::TransactionAmounts::Authorize
1262
+ )
1263
+ result2.should_not be_success
1264
+ end
1261
1265
 
1262
- customer_result = Braintree::Customer.create()
1266
+ it "returns a nonce that is not vaultable" do
1267
+ grant_result = @granting_gateway.payment_method.grant(@credit_card.token, false)
1263
1268
 
1264
- result = Braintree::PaymentMethod.create(
1265
- :customer_id => customer_result.customer.id,
1266
- :payment_method_nonce => grant_result.nonce
1267
- )
1268
- result.success?.should == false
1269
- end
1269
+ customer_result = Braintree::Customer.create()
1270
1270
 
1271
- it "returns a nonce that is vaultable" do
1272
- grant_result = @granting_gateway.payment_method.grant(@credit_card.token, true)
1271
+ result = Braintree::PaymentMethod.create(
1272
+ :customer_id => customer_result.customer.id,
1273
+ :payment_method_nonce => grant_result.payment_method_nonce.nonce
1274
+ )
1275
+ result.should_not be_success
1276
+ end
1273
1277
 
1274
- customer_result = Braintree::Customer.create()
1278
+ it "returns a nonce that is vaultable" do
1279
+ grant_result = @granting_gateway.payment_method.grant(@credit_card.token, true)
1275
1280
 
1276
- result = Braintree::PaymentMethod.create(
1277
- :customer_id => customer_result.customer.id,
1278
- :payment_method_nonce => grant_result.nonce
1279
- )
1280
- result.success?.should == true
1281
+ customer_result = Braintree::Customer.create()
1282
+
1283
+ result = Braintree::PaymentMethod.create(
1284
+ :customer_id => customer_result.customer.id,
1285
+ :payment_method_nonce => grant_result.payment_method_nonce.nonce
1286
+ )
1287
+ result.should be_success
1288
+ end
1289
+
1290
+ it "raises an error if the token isn't found" do
1291
+ expect do
1292
+ @granting_gateway.payment_method.grant("not_a_real_token", false)
1293
+ end.to raise_error
1294
+ end
1281
1295
  end
1282
1296
 
1283
- it "raises an error if the token isn't found" do
1284
- expect do
1285
- @granting_gateway.payment_method.grant("not_a_real_token", false)
1286
- end.to raise_error
1297
+ describe "self.revoke" do
1298
+ it "raises an error if the token isn't found" do
1299
+ expect do
1300
+ @granting_gateway.payment_method.revoke("not_a_real_token")
1301
+ end.to raise_error
1302
+ end
1303
+
1304
+ it "renders a granted nonce useless" do
1305
+ grant_result = @granting_gateway.payment_method.grant(@credit_card.token, true)
1306
+ revoke_result = @granting_gateway.payment_method.revoke(@credit_card.token)
1307
+ revoke_result.should be_success
1308
+
1309
+ customer_result = Braintree::Customer.create()
1310
+
1311
+ result = Braintree::PaymentMethod.create(
1312
+ :customer_id => customer_result.customer.id,
1313
+ :payment_method_nonce => grant_result.payment_method_nonce.nonce
1314
+ )
1315
+ result.should_not be_success
1316
+ end
1287
1317
  end
1288
1318
  end
1289
1319
  end
@@ -2667,46 +2667,6 @@ describe Braintree::Transaction do
2667
2667
  result.params[:transaction][:amount].should == "1000.01"
2668
2668
  end
2669
2669
 
2670
- it "returns an error result if descriptors are passed in but not supported by processor" do
2671
- transaction = Braintree::Transaction.sale!(
2672
- :amount => Braintree::Test::TransactionAmounts::Authorize,
2673
- :merchant_account_id => SpecHelper::FakeAmexDirectMerchantAccountId,
2674
- :credit_card => {
2675
- :number => Braintree::Test::CreditCardNumbers::AmexPayWithPoints::Success,
2676
- :expiration_date => "05/2009"
2677
- }
2678
- )
2679
-
2680
- options = {
2681
- :descriptor => {
2682
- :name => '123*123456789012345678',
2683
- :phone => '3334445555',
2684
- :url => "ebay.com"
2685
- }
2686
- }
2687
-
2688
- result = Braintree::Transaction.submit_for_settlement(transaction.id, nil, options)
2689
- result.success?.should == false
2690
- result.errors.for(:transaction).on(:base)[0].code.should == Braintree::ErrorCodes::Transaction::ProcessorDoesNotSupportUpdatingDescriptor
2691
- end
2692
-
2693
- it "returns an error result if order_id is passed in but not supported by processor" do
2694
- transaction = Braintree::Transaction.sale!(
2695
- :amount => Braintree::Test::TransactionAmounts::Authorize,
2696
- :merchant_account_id => SpecHelper::FakeAmexDirectMerchantAccountId,
2697
- :credit_card => {
2698
- :number => Braintree::Test::CreditCardNumbers::AmexPayWithPoints::Success,
2699
- :expiration_date => "05/2009"
2700
- }
2701
- )
2702
-
2703
- options = { :order_id => "ABC123" }
2704
-
2705
- result = Braintree::Transaction.submit_for_settlement(transaction.id, nil, options)
2706
- result.success?.should == false
2707
- result.errors.for(:transaction).on(:base)[0].code.should == Braintree::ErrorCodes::Transaction::ProcessorDoesNotSupportUpdatingOrderId
2708
- end
2709
-
2710
2670
  it "returns an error result if status is not authorized" do
2711
2671
  transaction = Braintree::Transaction.sale(
2712
2672
  :amount => Braintree::Test::TransactionAmounts::Decline,
@@ -4037,7 +3997,7 @@ describe Braintree::Transaction do
4037
3997
  grant_result = @granting_gateway.credit_card.grant(@credit_card.token, false)
4038
3998
 
4039
3999
  result = Braintree::Transaction.sale(
4040
- :payment_method_nonce => grant_result.nonce,
4000
+ :payment_method_nonce => grant_result.payment_method_nonce.nonce,
4041
4001
  :amount => Braintree::Test::TransactionAmounts::Authorize
4042
4002
  )
4043
4003
  result.transaction.facilitator_details.should_not == nil
@@ -156,33 +156,6 @@ describe Braintree::CreditCard do
156
156
  end
157
157
  end
158
158
 
159
- describe "self.grant" do
160
- it "raises error if passed empty string" do
161
- expect do
162
- Braintree::CreditCard.grant("", false)
163
- end.to raise_error(ArgumentError)
164
- end
165
-
166
- it "raises error if passed invalid string" do
167
- expect do
168
- Braintree::CreditCard.grant("\t", false)
169
- end.to raise_error(ArgumentError)
170
- end
171
-
172
- it "raises error if passed nil" do
173
- expect do
174
- Braintree::CreditCard.grant(nil, false)
175
- end.to raise_error(ArgumentError)
176
- end
177
-
178
- it "does not raise an error if token does not respond to strip" do
179
- Braintree::Http.stub(:new).and_return double.as_null_object
180
- expect do
181
- Braintree::CreditCard.grant(8675309, false)
182
- end.to_not raise_error
183
- end
184
- end
185
-
186
159
  describe "inspect" do
187
160
  it "includes the token first" do
188
161
  output = Braintree::CreditCard._new(:gateway, :token => "cc123").inspect
@@ -22,4 +22,58 @@ describe Braintree::PaymentMethod do
22
22
  paypal_account.updated_at.should == now
23
23
  end
24
24
  end
25
+
26
+ describe "self.grant" do
27
+ it "raises error if passed empty string" do
28
+ expect do
29
+ Braintree::PaymentMethod.grant("", false)
30
+ end.to raise_error(ArgumentError)
31
+ end
32
+
33
+ it "raises error if passed invalid string" do
34
+ expect do
35
+ Braintree::PaymentMethod.grant("\t", false)
36
+ end.to raise_error(ArgumentError)
37
+ end
38
+
39
+ it "raises error if passed nil" do
40
+ expect do
41
+ Braintree::PaymentMethod.grant(nil, false)
42
+ end.to raise_error(ArgumentError)
43
+ end
44
+
45
+ it "does not raise an error if token does not respond to strip" do
46
+ Braintree::Http.stub(:new).and_return double.as_null_object
47
+ expect do
48
+ Braintree::PaymentMethod.grant(8675309, false)
49
+ end.to_not raise_error
50
+ end
51
+ end
52
+
53
+ describe "self.revoke" do
54
+ it "raises error if passed empty string" do
55
+ expect do
56
+ Braintree::PaymentMethod.revoke("")
57
+ end.to raise_error(ArgumentError)
58
+ end
59
+
60
+ it "raises error if passed invalid string" do
61
+ expect do
62
+ Braintree::PaymentMethod.revoke("\t")
63
+ end.to raise_error(ArgumentError)
64
+ end
65
+
66
+ it "raises error if passed nil" do
67
+ expect do
68
+ Braintree::PaymentMethod.revoke(nil)
69
+ end.to raise_error(ArgumentError)
70
+ end
71
+
72
+ it "does not raise an error if token does not respond to strip" do
73
+ Braintree::Http.stub(:new).and_return double.as_null_object
74
+ expect do
75
+ Braintree::PaymentMethod.revoke(8675309)
76
+ end.to_not raise_error
77
+ end
78
+ end
25
79
  end
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.55.0
5
- prerelease:
4
+ version: 2.56.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Braintree
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2015-12-01 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,230 +32,229 @@ extra_rdoc_files: []
35
32
  files:
36
33
  - README.rdoc
37
34
  - LICENSE
38
- - lib/braintree/payment_method_nonce.rb
39
- - lib/braintree/unknown_payment_method.rb
35
+ - lib/braintree.rb
36
+ - lib/braintree/payment_method.rb
37
+ - lib/braintree/settlement_batch_summary.rb
38
+ - lib/braintree/transaction_gateway.rb
39
+ - lib/braintree/europe_bank_account_gateway.rb
40
+ - lib/braintree/transparent_redirect.rb
41
+ - lib/braintree/credit_card_gateway.rb
42
+ - lib/braintree/http.rb
43
+ - lib/braintree/coinbase_account.rb
44
+ - lib/braintree/risk_data.rb
45
+ - lib/braintree/merchant_account/business_details.rb
46
+ - lib/braintree/merchant_account/individual_details.rb
47
+ - lib/braintree/merchant_account/address_details.rb
48
+ - lib/braintree/merchant_account/funding_details.rb
49
+ - lib/braintree/merchant_account.rb
50
+ - lib/braintree/subscription.rb
51
+ - lib/braintree/webhook_testing.rb
52
+ - lib/braintree/add_on_gateway.rb
53
+ - lib/braintree/merchant_gateway.rb
54
+ - lib/braintree/payment_instrument_type.rb
55
+ - lib/braintree/plan_gateway.rb
56
+ - lib/braintree/customer_search.rb
57
+ - lib/braintree/subscription_search.rb
58
+ - lib/braintree/credit_card_verification_gateway.rb
59
+ - lib/braintree/configuration.rb
60
+ - lib/braintree/test_transaction.rb
61
+ - lib/braintree/transaction_search.rb
62
+ - lib/braintree/transaction.rb
63
+ - lib/braintree/errors.rb
64
+ - lib/braintree/subscription_gateway.rb
65
+ - lib/braintree/testing_gateway.rb
66
+ - lib/braintree/gateway.rb
67
+ - lib/braintree/error_codes.rb
68
+ - lib/braintree/dispute.rb
69
+ - lib/braintree/discount_gateway.rb
70
+ - lib/braintree/europe_bank_account.rb
71
+ - lib/braintree/credentials_parser.rb
72
+ - lib/braintree/settlement_batch.rb
40
73
  - lib/braintree/three_d_secure_info.rb
41
- - lib/braintree/webhook_notification.rb
74
+ - lib/braintree/transparent_redirect_gateway.rb
75
+ - lib/braintree/sha256_digest.rb
76
+ - lib/braintree/disbursement.rb
77
+ - lib/braintree/util.rb
78
+ - lib/braintree/add_on.rb
42
79
  - lib/braintree/android_pay_card.rb
43
- - lib/braintree/payment_method_gateway.rb
44
- - lib/braintree/credit_card_verification.rb
45
- - lib/braintree/exceptions.rb
80
+ - lib/braintree/amex_express_checkout_card.rb
81
+ - lib/braintree/discount.rb
82
+ - lib/braintree/digest.rb
83
+ - lib/braintree/payment_method_nonce.rb
84
+ - lib/braintree/version.rb
85
+ - lib/braintree/base_module.rb
46
86
  - lib/braintree/webhook_testing_gateway.rb
87
+ - lib/braintree/customer_gateway.rb
88
+ - lib/braintree/transaction/subscription_details.rb
89
+ - lib/braintree/transaction/venmo_account_details.rb
90
+ - lib/braintree/transaction/credit_card_details.rb
47
91
  - lib/braintree/transaction/customer_details.rb
48
92
  - lib/braintree/transaction/status_details.rb
49
- - lib/braintree/transaction/address_details.rb
50
- - lib/braintree/transaction/amex_express_checkout_details.rb
51
- - lib/braintree/transaction/subscription_details.rb
52
93
  - lib/braintree/transaction/disbursement_details.rb
94
+ - lib/braintree/transaction/paypal_details.rb
95
+ - lib/braintree/transaction/amex_express_checkout_details.rb
53
96
  - lib/braintree/transaction/android_pay_details.rb
54
97
  - lib/braintree/transaction/apple_pay_details.rb
98
+ - lib/braintree/transaction/address_details.rb
55
99
  - lib/braintree/transaction/coinbase_details.rb
56
- - lib/braintree/transaction/credit_card_details.rb
57
- - lib/braintree/transaction/venmo_account_details.rb
58
- - lib/braintree/transaction/paypal_details.rb
59
- - lib/braintree/transaction_search.rb
60
- - lib/braintree/version.rb
61
- - lib/braintree/settlement_batch.rb
62
- - lib/braintree/payment_instrument_type.rb
63
- - lib/braintree/paypal_account.rb
64
- - lib/braintree/transparent_redirect.rb
65
- - lib/braintree/test/venmo_sdk.rb
66
100
  - lib/braintree/test/merchant_account.rb
101
+ - lib/braintree/test/transaction_amounts.rb
67
102
  - lib/braintree/test/nonce.rb
103
+ - lib/braintree/test/venmo_sdk.rb
68
104
  - lib/braintree/test/credit_card.rb
69
- - lib/braintree/test/transaction_amounts.rb
70
- - lib/braintree/merchant_gateway.rb
71
- - lib/braintree/client_token.rb
72
- - lib/braintree/plan.rb
73
- - lib/braintree/xml/libxml.rb
74
- - lib/braintree/xml/rexml.rb
75
- - lib/braintree/xml/generator.rb
76
- - lib/braintree/xml/parser.rb
77
- - lib/braintree/successful_result.rb
78
- - lib/braintree/util.rb
79
- - lib/braintree/webhook_testing.rb
80
- - lib/braintree/digest.rb
81
- - lib/braintree/europe_bank_account_gateway.rb
82
- - lib/braintree/settlement_batch_summary_gateway.rb
83
- - lib/braintree/gateway.rb
84
- - lib/braintree/base_module.rb
85
- - lib/braintree/customer.rb
86
- - lib/braintree/settlement_batch_summary.rb
87
- - lib/braintree/amex_express_checkout_card.rb
88
- - lib/braintree/credit_card_gateway.rb
89
- - lib/braintree/discount_gateway.rb
90
- - lib/braintree/test_transaction.rb
91
- - lib/braintree/resource_collection.rb
92
- - lib/braintree/risk_data.rb
93
- - lib/braintree/dispute.rb
94
- - lib/braintree/customer_gateway.rb
95
- - lib/braintree/credit_card_verification_gateway.rb
96
- - lib/braintree/errors.rb
97
105
  - lib/braintree/facilitator_details.rb
98
- - lib/braintree/plan_gateway.rb
106
+ - lib/braintree/settlement_batch_summary_gateway.rb
107
+ - lib/braintree/validation_error_collection.rb
108
+ - lib/braintree/webhook_notification_gateway.rb
109
+ - lib/braintree/client_token.rb
110
+ - lib/braintree/oauth_gateway.rb
99
111
  - lib/braintree/subscription/status_details.rb
100
- - lib/braintree/europe_bank_account.rb
101
- - lib/braintree/add_on.rb
102
- - lib/braintree/merchant_account/address_details.rb
103
- - lib/braintree/merchant_account/business_details.rb
104
- - lib/braintree/merchant_account/individual_details.rb
105
- - lib/braintree/merchant_account/funding_details.rb
106
- - lib/braintree/sha256_digest.rb
107
- - lib/braintree/transaction_gateway.rb
108
- - lib/braintree/xml.rb
109
- - lib/braintree/merchant_account.rb
110
- - lib/braintree/transaction.rb
111
- - lib/braintree/configuration.rb
112
+ - lib/braintree/merchant.rb
112
113
  - lib/braintree/payment_method_nonce_gateway.rb
113
- - lib/braintree/subscription.rb
114
- - lib/braintree/discount.rb
115
- - lib/braintree/subscription_search.rb
116
- - lib/braintree/http.rb
117
- - lib/braintree/dispute/transaction_details.rb
118
- - lib/braintree/oauth_credentials.rb
119
- - lib/braintree/advanced_search.rb
120
- - lib/braintree/transparent_redirect_gateway.rb
121
- - lib/braintree/validation_error.rb
122
114
  - lib/braintree/client_token_gateway.rb
123
- - lib/braintree/venmo_account.rb
124
- - lib/braintree/paypal_account_gateway.rb
125
- - lib/braintree/webhook_notification_gateway.rb
126
115
  - lib/braintree/signature_service.rb
127
- - lib/braintree/testing_gateway.rb
128
- - lib/braintree/descriptor.rb
116
+ - lib/braintree/payment_method_gateway.rb
117
+ - lib/braintree/customer.rb
118
+ - lib/braintree/oauth_credentials.rb
129
119
  - lib/braintree/address.rb
130
- - lib/braintree/subscription_gateway.rb
131
- - lib/braintree/error_codes.rb
132
- - lib/braintree/coinbase_account.rb
133
- - lib/braintree/error_result.rb
120
+ - lib/braintree/venmo_account.rb
134
121
  - lib/braintree/apple_pay_card.rb
135
- - lib/braintree/credentials_parser.rb
136
- - lib/braintree/merchant.rb
137
- - lib/braintree/validation_error_collection.rb
122
+ - lib/braintree/xml.rb
123
+ - lib/braintree/validation_error.rb
124
+ - lib/braintree/webhook_notification.rb
125
+ - lib/braintree/xml/generator.rb
126
+ - lib/braintree/xml/rexml.rb
127
+ - lib/braintree/xml/parser.rb
128
+ - lib/braintree/xml/libxml.rb
138
129
  - lib/braintree/modification.rb
139
- - lib/braintree/customer_search.rb
140
- - lib/braintree/disbursement.rb
141
- - lib/braintree/add_on_gateway.rb
142
- - lib/braintree/credit_card.rb
130
+ - lib/braintree/resource_collection.rb
131
+ - lib/braintree/exceptions.rb
132
+ - lib/braintree/paypal_account_gateway.rb
133
+ - lib/braintree/error_result.rb
134
+ - lib/braintree/paypal_account.rb
143
135
  - lib/braintree/credit_card_verification_search.rb
144
- - lib/braintree/merchant_account_gateway.rb
136
+ - lib/braintree/plan.rb
145
137
  - lib/braintree/address/country_names.rb
146
- - lib/braintree/oauth_gateway.rb
147
- - lib/braintree/payment_method.rb
138
+ - lib/braintree/merchant_account_gateway.rb
139
+ - lib/braintree/advanced_search.rb
140
+ - lib/braintree/descriptor.rb
141
+ - lib/braintree/credit_card.rb
148
142
  - lib/braintree/address_gateway.rb
149
- - lib/braintree.rb
150
- - lib/ssl/sandbox_braintreegateway_com.ca.crt
143
+ - lib/braintree/dispute/transaction_details.rb
144
+ - lib/braintree/successful_result.rb
145
+ - lib/braintree/unknown_payment_method.rb
146
+ - lib/braintree/credit_card_verification.rb
151
147
  - lib/ssl/securetrust_ca.crt
152
148
  - lib/ssl/api_braintreegateway_com.ca.crt
153
149
  - lib/ssl/www_braintreegateway_com.ca.crt
154
- - spec/oauth_test_helper.rb
155
- - spec/spec.opts
156
- - spec/hacks/tcp_socket.rb
157
- - spec/script/httpsd.rb
158
- - spec/integration/braintree/discount_spec.rb
159
- - spec/integration/braintree/merchant_spec.rb
150
+ - lib/ssl/sandbox_braintreegateway_com.ca.crt
151
+ - spec/spec_helper.rb
152
+ - spec/integration/spec_helper.rb
153
+ - spec/integration/braintree/transaction_search_spec.rb
154
+ - spec/integration/braintree/transparent_redirect_spec.rb
155
+ - spec/integration/braintree/customer_spec.rb
156
+ - spec/integration/braintree/plan_spec.rb
157
+ - spec/integration/braintree/error_codes_spec.rb
158
+ - spec/integration/braintree/client_api/spec_helper.rb
159
+ - spec/integration/braintree/client_api/client_token_spec.rb
160
+ - spec/integration/braintree/disbursement_spec.rb
160
161
  - spec/integration/braintree/payment_method_spec.rb
161
- - spec/integration/braintree/test/transaction_amounts_spec.rb
162
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
163
+ - spec/integration/braintree/discount_spec.rb
162
164
  - spec/integration/braintree/http_spec.rb
163
- - spec/integration/braintree/advanced_search_spec.rb
164
- - spec/integration/braintree/test_transaction_spec.rb
165
- - spec/integration/braintree/disbursement_spec.rb
166
- - spec/integration/braintree/add_on_spec.rb
165
+ - spec/integration/braintree/credit_card_spec.rb
167
166
  - spec/integration/braintree/coinbase_spec.rb
167
+ - spec/integration/braintree/test_transaction_spec.rb
168
+ - spec/integration/braintree/advanced_search_spec.rb
168
169
  - spec/integration/braintree/oauth_spec.rb
169
- - spec/integration/braintree/credit_card_spec.rb
170
- - spec/integration/braintree/paypal_account_spec.rb
171
- - spec/integration/braintree/customer_search_spec.rb
172
- - spec/integration/braintree/error_codes_spec.rb
173
- - spec/integration/braintree/transaction_search_spec.rb
174
- - spec/integration/braintree/merchant_account_spec.rb
175
- - spec/integration/braintree/credit_card_verification_search_spec.rb
176
- - spec/integration/braintree/plan_spec.rb
177
- - spec/integration/braintree/settlement_batch_summary_spec.rb
178
- - spec/integration/braintree/payment_method_nonce_spec.rb
170
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
179
171
  - spec/integration/braintree/transaction_spec.rb
180
172
  - spec/integration/braintree/address_spec.rb
181
- - spec/integration/braintree/client_api/client_token_spec.rb
182
- - spec/integration/braintree/client_api/spec_helper.rb
183
173
  - spec/integration/braintree/credit_card_verification_spec.rb
184
- - spec/integration/braintree/customer_spec.rb
185
- - spec/integration/braintree/transparent_redirect_spec.rb
174
+ - spec/integration/braintree/add_on_spec.rb
175
+ - spec/integration/braintree/paypal_account_spec.rb
176
+ - spec/integration/braintree/payment_method_nonce_spec.rb
177
+ - spec/integration/braintree/customer_search_spec.rb
178
+ - spec/integration/braintree/merchant_spec.rb
186
179
  - spec/integration/braintree/subscription_spec.rb
187
- - spec/integration/spec_helper.rb
180
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
181
+ - spec/integration/braintree/merchant_account_spec.rb
188
182
  - spec/ssl/certificate.crt
189
- - spec/ssl/privateKey.key
190
183
  - spec/ssl/geotrust_global.crt
191
- - spec/httpsd.pid
192
- - spec/spec_helper.rb
193
- - spec/unit/braintree/dispute_spec.rb
194
- - spec/unit/braintree/util_spec.rb
195
- - spec/unit/braintree/resource_collection_spec.rb
196
- - spec/unit/braintree/validation_error_collection_spec.rb
197
- - spec/unit/braintree/transaction/credit_card_details_spec.rb
198
- - spec/unit/braintree/transaction/deposit_details_spec.rb
199
- - spec/unit/braintree/transaction/customer_details_spec.rb
200
- - spec/unit/braintree/payment_method_spec.rb
201
- - spec/unit/braintree/base_module_spec.rb
202
- - spec/unit/braintree/http_spec.rb
203
- - spec/unit/braintree/xml/libxml_spec.rb
204
- - spec/unit/braintree/xml/parser_spec.rb
205
- - spec/unit/braintree/xml/rexml_spec.rb
184
+ - spec/ssl/privateKey.key
185
+ - spec/unit/spec_helper.rb
186
+ - spec/unit/braintree_spec.rb
187
+ - spec/unit/braintree/unknown_payment_method_spec.rb
188
+ - spec/unit/braintree/transaction_search_spec.rb
189
+ - spec/unit/braintree/transparent_redirect_spec.rb
190
+ - spec/unit/braintree/signature_service_spec.rb
206
191
  - spec/unit/braintree/digest_spec.rb
207
- - spec/unit/braintree/sha256_digest_spec.rb
208
- - spec/unit/braintree/disbursement_spec.rb
209
- - spec/unit/braintree/xml_spec.rb
210
- - spec/unit/braintree/client_token_spec.rb
192
+ - spec/unit/braintree/base_module_spec.rb
193
+ - spec/unit/braintree/customer_spec.rb
194
+ - spec/unit/braintree/subscription_search_spec.rb
211
195
  - spec/unit/braintree/error_result_spec.rb
212
- - spec/unit/braintree/credit_card_spec.rb
213
- - spec/unit/braintree/paypal_account_spec.rb
214
- - spec/unit/braintree/webhook_notification_spec.rb
215
- - spec/unit/braintree/credentials_parser_spec.rb
216
- - spec/unit/braintree/transaction_search_spec.rb
196
+ - spec/unit/braintree/validation_error_spec.rb
197
+ - spec/unit/braintree/validation_error_collection_spec.rb
198
+ - spec/unit/braintree/xml_spec.rb
199
+ - spec/unit/braintree/risk_data_spec.rb
200
+ - spec/unit/braintree/modification_spec.rb
201
+ - spec/unit/braintree/disbursement_spec.rb
217
202
  - spec/unit/braintree/errors_spec.rb
218
- - spec/unit/braintree/merchant_account_spec.rb
219
- - spec/unit/braintree/credit_card_verification_search_spec.rb
220
- - spec/unit/braintree/configuration_spec.rb
221
203
  - spec/unit/braintree/three_d_secure_info_spec.rb
222
- - spec/unit/braintree/unknown_payment_method_spec.rb
223
- - spec/unit/braintree/modification_spec.rb
224
- - spec/unit/braintree/risk_data_spec.rb
225
- - spec/unit/braintree/signature_service_spec.rb
204
+ - spec/unit/braintree/payment_method_spec.rb
205
+ - spec/unit/braintree/http_spec.rb
206
+ - spec/unit/braintree/credit_card_spec.rb
207
+ - spec/unit/braintree/resource_collection_spec.rb
226
208
  - spec/unit/braintree/apple_pay_card_spec.rb
209
+ - spec/unit/braintree/client_token_spec.rb
210
+ - spec/unit/braintree/transaction/deposit_details_spec.rb
211
+ - spec/unit/braintree/transaction/customer_details_spec.rb
212
+ - spec/unit/braintree/transaction/credit_card_details_spec.rb
213
+ - spec/unit/braintree/dispute_spec.rb
227
214
  - spec/unit/braintree/transaction_spec.rb
228
- - spec/unit/braintree/successful_result_spec.rb
229
215
  - spec/unit/braintree/address_spec.rb
216
+ - spec/unit/braintree/configuration_spec.rb
230
217
  - spec/unit/braintree/credit_card_verification_spec.rb
231
- - spec/unit/braintree/validation_error_spec.rb
232
- - spec/unit/braintree/subscription_search_spec.rb
233
- - spec/unit/braintree/customer_spec.rb
234
- - spec/unit/braintree/transparent_redirect_spec.rb
218
+ - spec/unit/braintree/credentials_parser_spec.rb
219
+ - spec/unit/braintree/paypal_account_spec.rb
220
+ - spec/unit/braintree/successful_result_spec.rb
221
+ - spec/unit/braintree/webhook_notification_spec.rb
222
+ - spec/unit/braintree/xml/rexml_spec.rb
223
+ - spec/unit/braintree/xml/parser_spec.rb
224
+ - spec/unit/braintree/xml/libxml_spec.rb
225
+ - spec/unit/braintree/sha256_digest_spec.rb
226
+ - spec/unit/braintree/util_spec.rb
235
227
  - spec/unit/braintree/subscription_spec.rb
236
- - spec/unit/braintree_spec.rb
237
- - spec/unit/spec_helper.rb
228
+ - spec/unit/braintree/credit_card_verification_search_spec.rb
229
+ - spec/unit/braintree/merchant_account_spec.rb
230
+ - spec/oauth_test_helper.rb
231
+ - spec/spec.opts
232
+ - spec/script/httpsd.rb
233
+ - spec/hacks/tcp_socket.rb
234
+ - spec/httpsd.pid
238
235
  - braintree.gemspec
239
236
  homepage: http://www.braintreepayments.com/
240
237
  licenses:
241
238
  - MIT
239
+ metadata: {}
242
240
  post_install_message:
243
241
  rdoc_options: []
244
242
  require_paths:
245
243
  - lib
246
244
  required_ruby_version: !ruby/object:Gem::Requirement
247
- none: false
248
245
  requirements:
249
- - - ! '>='
246
+ - - '>='
250
247
  - !ruby/object:Gem::Version
251
248
  version: '0'
252
249
  required_rubygems_version: !ruby/object:Gem::Requirement
253
- none: false
254
250
  requirements:
255
- - - ! '>='
251
+ - - '>='
256
252
  - !ruby/object:Gem::Version
257
253
  version: '0'
258
254
  requirements: []
259
255
  rubyforge_project: braintree
260
- rubygems_version: 1.8.24
256
+ rubygems_version: 2.1.11
261
257
  signing_key:
262
- specification_version: 3
258
+ specification_version: 4
263
259
  summary: Braintree Gateway Ruby Client Library
264
260
  test_files: []