braintree 2.33.1 → 2.34.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a72dfe2b3ddb0af40d37f56f0028db5170cde83c
4
+ data.tar.gz: 69d924724e033cba49d5201e9db37f7204534f8f
5
+ SHA512:
6
+ metadata.gz: 763effca5e3de654c1b1adfe05fbee1fbf161d7ffeaa3c339a185071e378c8c741a480f625cb7d8db189b07a4a1c80c1011172be5c07eef0802765df38767961
7
+ data.tar.gz: 351b0b1493e41f6bd176734a1ad97c52b1b9b2ae5c4ade08b64a86f7379d1d25dc302bd63c986fa48180e23ced2a8926edb60b5f239a84815eb24f1d33847181
@@ -112,7 +112,7 @@ module Braintree
112
112
  when :production
113
113
  "#{endpoint}.braintreegateway.com"
114
114
  when :qa
115
- "qa.braintreegateway.com"
115
+ "gateway.qa.braintreepayments.com"
116
116
  when :sandbox
117
117
  "api.sandbox.braintreegateway.com"
118
118
  end
@@ -29,6 +29,7 @@ module Braintree
29
29
  attr_reader :add_ons, :discounts
30
30
  attr_reader :descriptor
31
31
  attr_reader :current_billing_cycle
32
+ attr_reader :updated_at, :created_at
32
33
 
33
34
  # See http://www.braintreepayments.com/docs/ruby/subscriptions/cancel
34
35
  def self.cancel(subscription_id)
@@ -11,5 +11,9 @@ module Braintree
11
11
  def self.settlement_decline(transaction_id)
12
12
  Configuration.gateway.testing.settlement_decline(transaction_id)
13
13
  end
14
+
15
+ def self.settlement_pending(transaction_id)
16
+ Configuration.gateway.testing.settlement_pending(transaction_id)
17
+ end
14
18
  end
15
19
  end
@@ -28,6 +28,13 @@ module Braintree
28
28
  @transaction_gateway._handle_transaction_response(response)
29
29
  end
30
30
 
31
+ def settlement_pending(transaction_id)
32
+ check_environment
33
+
34
+ response = @config.http.put "/transactions/#{transaction_id}/settlement_pending"
35
+ @transaction_gateway._handle_transaction_response(response)
36
+ end
37
+
31
38
  def check_environment
32
39
  raise TestOperationPerformedInProduction if Braintree::Configuration.environment == :production
33
40
  end
@@ -37,6 +37,7 @@ module Braintree
37
37
  Settled = 'settled'
38
38
  SettlementConfirmed = 'settlement_confirmed'
39
39
  SettlementDeclined = 'settlement_declined'
40
+ SettlementPending = 'settlement_pending'
40
41
  Settling = 'settling'
41
42
  SubmittedForSettlement = 'submitted_for_settlement'
42
43
  Voided = 'voided'
@@ -87,6 +88,10 @@ module Braintree
87
88
  attr_reader :processor_response_code
88
89
  # The response text from the processor.
89
90
  attr_reader :processor_response_text
91
+ # The settlement response code from the processor.
92
+ attr_reader :processor_settlement_response_code
93
+ # The settlement response text from the processor.
94
+ attr_reader :processor_settlement_response_text
90
95
  attr_reader :voice_referral_number
91
96
  attr_reader :purchase_order_number
92
97
  attr_reader :recurring
@@ -4,7 +4,7 @@ module Braintree
4
4
  include BaseModule
5
5
 
6
6
  attr_reader :payer_email, :payment_id, :authorization_id, :token,
7
- :image_url
7
+ :image_url, :debug_id, :payee_email
8
8
 
9
9
  def initialize(attributes)
10
10
  set_instance_variables_from_hash attributes unless attributes.nil?
@@ -130,7 +130,7 @@ module Braintree
130
130
  {:options => [:hold_in_escrow, :store_in_vault, :store_in_vault_on_success, :submit_for_settlement, :add_billing_address_to_payment_method, :store_shipping_address_in_vault, :venmo_sdk_session]},
131
131
  {:custom_fields => :_any_key_},
132
132
  {:descriptor => [:name, :phone, :url]},
133
- {:paypal_account => [:email, :token, :paypal_data]},
133
+ {:paypal_account => [:email, :token, :paypal_data, :payee_email]},
134
134
  {:industry => [:industry_type, {:data => [:folio_number, :check_in_date, :check_out_date]}]}
135
135
  ]
136
136
  end
@@ -1,8 +1,8 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 33
5
- Tiny = 1
4
+ Minor = 34
5
+ Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
8
8
  end
@@ -1 +1 @@
1
- 24973
1
+ 15083
@@ -414,7 +414,7 @@ describe Braintree::PaymentMethod do
414
414
 
415
415
  it "doesn't return an error if credit card options are present for a paypal nonce" do
416
416
  customer = Braintree::Customer.create!
417
- original_token = "paypal-account-#{Time.now.to_i}"
417
+ original_token = random_payment_method_token
418
418
  nonce = nonce_for_paypal_account(
419
419
  :consent_code => "consent-code",
420
420
  :token => original_token
@@ -816,7 +816,7 @@ describe Braintree::PaymentMethod do
816
816
  context "paypal accounts" do
817
817
  it "updates a paypal account's token" do
818
818
  customer = Braintree::Customer.create!
819
- original_token = "paypal-account-#{Time.now.to_i}"
819
+ original_token = random_payment_method_token
820
820
  nonce = nonce_for_paypal_account(
821
821
  :consent_code => "consent-code",
822
822
  :token => original_token
@@ -867,8 +867,8 @@ describe Braintree::PaymentMethod do
867
867
 
868
868
  it "returns an error if a token for account is used to attempt an update" do
869
869
  customer = Braintree::Customer.create!
870
- first_token = "paypal-account-#{rand(36**3).to_s(36)}"
871
- second_token = "paypal-account-#{rand(36**3).to_s(36)}"
870
+ first_token = random_payment_method_token
871
+ second_token = random_payment_method_token
872
872
 
873
873
  first_nonce = nonce_for_paypal_account(
874
874
  :consent_code => "consent-code",
@@ -5,7 +5,7 @@ describe Braintree::PayPalAccount do
5
5
  describe "self.find" do
6
6
  it "returns a PayPalAccount" do
7
7
  customer = Braintree::Customer.create!
8
- payment_method_token = "paypal-account-#{Time.now.to_i}"
8
+ payment_method_token = random_payment_method_token
9
9
 
10
10
  nonce = nonce_for_paypal_account(
11
11
  :consent_code => "consent-code",
@@ -49,7 +49,7 @@ describe Braintree::PayPalAccount do
49
49
 
50
50
  it "returns subscriptions associated with a paypal account" do
51
51
  customer = Braintree::Customer.create!
52
- payment_method_token = "paypal-account-#{Time.now.to_i}"
52
+ payment_method_token = random_payment_method_token
53
53
 
54
54
  nonce = nonce_for_paypal_account(
55
55
  :consent_code => "consent-code",
@@ -81,7 +81,7 @@ describe Braintree::PayPalAccount do
81
81
  describe "self.update" do
82
82
  it "updates a paypal account's token" do
83
83
  customer = Braintree::Customer.create!
84
- original_token = "paypal-account-#{Time.now.to_i}"
84
+ original_token = random_payment_method_token
85
85
  nonce = nonce_for_paypal_account(
86
86
  :consent_code => "consent-code",
87
87
  :token => original_token
@@ -132,8 +132,8 @@ describe Braintree::PayPalAccount do
132
132
 
133
133
  it "returns an error if a token for account is used to attempt an update" do
134
134
  customer = Braintree::Customer.create!
135
- first_token = "paypal-account-#{rand(36**3).to_s(36)}"
136
- second_token = "paypal-account-#{rand(36**3).to_s(36)}"
135
+ first_token = random_payment_method_token
136
+ second_token = random_payment_method_token
137
137
 
138
138
  first_nonce = nonce_for_paypal_account(
139
139
  :consent_code => "consent-code",
@@ -166,7 +166,7 @@ describe Braintree::PayPalAccount do
166
166
  context "self.delete" do
167
167
  it "deletes a PayPal account" do
168
168
  customer = Braintree::Customer.create!
169
- token = "paypal-account-#{Time.now.to_i}"
169
+ token = random_payment_method_token
170
170
 
171
171
  nonce = nonce_for_paypal_account(
172
172
  :consent_code => "consent-code",
@@ -31,6 +31,9 @@ describe Braintree::Subscription do
31
31
  result.subscription.billing_period_end_date.should match(date_format)
32
32
  result.subscription.paid_through_date.should match(date_format)
33
33
 
34
+ result.subscription.created_at.between?(Time.now - 60, Time.now).should == true
35
+ result.subscription.updated_at.between?(Time.now - 60, Time.now).should == true
36
+
34
37
  result.subscription.failure_count.should == 0
35
38
  result.subscription.next_bill_amount.should == "12.34"
36
39
  result.subscription.next_billing_period_amount.should == "12.34"
@@ -51,6 +51,22 @@ describe Braintree::TestTransaction do
51
51
  settle_result.success?.should == true
52
52
  end
53
53
 
54
+ it "changes transaction status to settlement_pending" do
55
+ sale_result = Braintree::Transaction.sale(
56
+ :amount => "100",
57
+ :payment_method_nonce => Braintree::Test::Nonce::PayPalOneTimePayment,
58
+ :options => {
59
+ :submit_for_settlement => true
60
+ }
61
+ )
62
+ sale_result.success?.should == true
63
+ sale_result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
64
+
65
+ settle_result = Braintree::TestTransaction.settlement_pending(sale_result.transaction.id)
66
+ settle_result.transaction.status.should == Braintree::Transaction::Status::SettlementPending
67
+ settle_result.success?.should == true
68
+ end
69
+
54
70
  it "returns a validation error when invalid transition is specified" do
55
71
  sale_result = Braintree::Transaction.sale(
56
72
  :amount => "100",
@@ -1292,6 +1292,8 @@ describe Braintree::Transaction do
1292
1292
  :payment_method_nonce => nonce
1293
1293
  )
1294
1294
  result.success?.should == true
1295
+ result.transaction.paypal_details.should_not be_nil
1296
+ result.transaction.paypal_details.debug_id.should_not be_nil
1295
1297
  end
1296
1298
 
1297
1299
  it "can create a transaction with a params nonce with PayPal account params" do
@@ -1309,6 +1311,32 @@ describe Braintree::Transaction do
1309
1311
  :payment_method_nonce => nonce
1310
1312
  )
1311
1313
  result.success?.should == true
1314
+ result.transaction.paypal_details.should_not be_nil
1315
+ result.transaction.paypal_details.debug_id.should_not be_nil
1316
+ end
1317
+
1318
+ it "can create a transaction with a payee email" do
1319
+ customer = Braintree::Customer.create!
1320
+ nonce = nonce_for_new_payment_method(
1321
+ :paypal_account => {
1322
+ :consent_code => "PAYPAL_CONSENT_CODE",
1323
+ }
1324
+ )
1325
+ nonce.should_not be_nil
1326
+
1327
+ result = Braintree::Transaction.create(
1328
+ :type => "sale",
1329
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1330
+ :payment_method_nonce => nonce,
1331
+ :paypal_account => {
1332
+ :payee_email => "bt_seller_us@paypal.com"
1333
+ }
1334
+ )
1335
+
1336
+ result.success?.should == true
1337
+ result.transaction.paypal_details.should_not be_nil
1338
+ result.transaction.paypal_details.debug_id.should_not be_nil
1339
+ result.transaction.paypal_details.payee_email.should == "bt_seller_us@paypal.com"
1312
1340
  end
1313
1341
  end
1314
1342
 
@@ -1400,6 +1428,8 @@ describe Braintree::Transaction do
1400
1428
 
1401
1429
  result.should be_success
1402
1430
  result.transaction.payment_instrument_type.should == Braintree::PaymentInstrumentType::PayPalAccount
1431
+ result.transaction.paypal_details.should_not be_nil
1432
+ result.transaction.paypal_details.debug_id.should_not be_nil
1403
1433
  end
1404
1434
  end
1405
1435
 
@@ -1418,6 +1448,8 @@ describe Braintree::Transaction do
1418
1448
  )
1419
1449
 
1420
1450
  result.should be_success
1451
+ result.transaction.paypal_details.should_not be_nil
1452
+ result.transaction.paypal_details.debug_id.should_not be_nil
1421
1453
 
1422
1454
  expect do
1423
1455
  Braintree::PaymentMethod.find(payment_method_token)
@@ -1439,6 +1471,8 @@ describe Braintree::Transaction do
1439
1471
  )
1440
1472
 
1441
1473
  result.success?.should == true
1474
+ result.transaction.paypal_details.should_not be_nil
1475
+ result.transaction.paypal_details.debug_id.should_not be_nil
1442
1476
 
1443
1477
  found_paypal_account = Braintree::PaymentMethod.find(payment_method_token)
1444
1478
  found_paypal_account.should be_a(Braintree::PayPalAccount)
@@ -1455,6 +1489,8 @@ describe Braintree::Transaction do
1455
1489
  )
1456
1490
 
1457
1491
  result.should be_success
1492
+ result.transaction.paypal_details.should_not be_nil
1493
+ result.transaction.paypal_details.debug_id.should_not be_nil
1458
1494
  end
1459
1495
 
1460
1496
  it "can create a paypal transaction and does not vault even if asked to" do
@@ -1472,6 +1508,8 @@ describe Braintree::Transaction do
1472
1508
  )
1473
1509
 
1474
1510
  result.success?.should == true
1511
+ result.transaction.paypal_details.should_not be_nil
1512
+ result.transaction.paypal_details.debug_id.should_not be_nil
1475
1513
 
1476
1514
  expect do
1477
1515
  Braintree::PaymentMethod.find(payment_method_token)
@@ -1497,10 +1535,7 @@ describe Braintree::Transaction do
1497
1535
  it "successfully voids a paypal transaction that's been authorized" do
1498
1536
  sale_transaction = Braintree::Transaction.sale!(
1499
1537
  :amount => Braintree::Test::TransactionAmounts::Authorize,
1500
- :payment_method_nonce => Braintree::Test::Nonce::PayPalOneTimePayment,
1501
- :options => {
1502
- :submit_for_settlement => true
1503
- }
1538
+ :payment_method_nonce => Braintree::Test::Nonce::PayPalOneTimePayment
1504
1539
  )
1505
1540
 
1506
1541
  void_transaction = Braintree::Transaction.void!(sale_transaction.id)
@@ -1511,10 +1546,7 @@ describe Braintree::Transaction do
1511
1546
  it "fails to void a paypal transaction that's been declined" do
1512
1547
  sale_transaction = Braintree::Transaction.sale(
1513
1548
  :amount => Braintree::Test::TransactionAmounts::Decline,
1514
- :payment_method_nonce => Braintree::Test::Nonce::PayPalOneTimePayment,
1515
- :options => {
1516
- :submit_for_settlement => true
1517
- }
1549
+ :payment_method_nonce => Braintree::Test::Nonce::PayPalOneTimePayment
1518
1550
  ).transaction
1519
1551
 
1520
1552
  expect do
@@ -3239,5 +3271,37 @@ describe Braintree::Transaction do
3239
3271
  result.errors.for(:transaction).for(:paypal_account).first.code.should == Braintree::ErrorCodes::PayPalAccount::IncompletePayPalAccount
3240
3272
  end
3241
3273
  end
3274
+
3275
+ context "inline capture" do
3276
+ it "includes processor_settlement_response_code and processor_settlement_response_text for settlement declined transactions" do
3277
+ result = Braintree::Transaction.sale(
3278
+ :amount => "100",
3279
+ :payment_method_nonce => Braintree::Test::Nonce::PayPalFuturePayment,
3280
+ :options => { :submit_for_settlement => true }
3281
+ )
3282
+
3283
+ result.should be_success
3284
+ Braintree::Configuration.gateway.testing.settlement_decline(result.transaction.id)
3285
+
3286
+ settlement_declined_transaction = Braintree::Transaction.find(result.transaction.id)
3287
+ settlement_declined_transaction.processor_settlement_response_code.should == "4001"
3288
+ settlement_declined_transaction.processor_settlement_response_text.should == "Settlement Declined"
3289
+ end
3290
+
3291
+ it "includes processor_settlement_response_code and processor_settlement_response_text for settlement pending transactions" do
3292
+ result = Braintree::Transaction.sale(
3293
+ :amount => "100",
3294
+ :payment_method_nonce => Braintree::Test::Nonce::PayPalFuturePayment,
3295
+ :options => { :submit_for_settlement => true }
3296
+ )
3297
+
3298
+ result.should be_success
3299
+ Braintree::Configuration.gateway.testing.settlement_pending(result.transaction.id)
3300
+
3301
+ settlement_declined_transaction = Braintree::Transaction.find(result.transaction.id)
3302
+ settlement_declined_transaction.processor_settlement_response_code.should == "4002"
3303
+ settlement_declined_transaction.processor_settlement_response_text.should == "Settlement Pending"
3304
+ end
3305
+ end
3242
3306
  end
3243
3307
  end
@@ -1,3 +1,5 @@
1
+ require "securerandom"
2
+
1
3
  unless defined?(INTEGRATION_SPEC_HELPER_LOADED)
2
4
  INTEGRATION_SPEC_HELPER_LOADED = true
3
5
  SSL_TEST_PORT = ENV['SSL_TEST_PORT'] || 8443
@@ -46,4 +48,8 @@ unless defined?(INTEGRATION_SPEC_HELPER_LOADED)
46
48
  def with_altpay_merchant(&block)
47
49
  with_other_merchant("altpay_merchant", "altpay_merchant_public_key", "altpay_merchant_private_key", &block)
48
50
  end
51
+
52
+ def random_payment_method_token
53
+ "payment-method-token-#{SecureRandom.hex(6)}"
54
+ end
49
55
  end
@@ -68,13 +68,6 @@ describe Braintree::Configuration do
68
68
  end
69
69
 
70
70
  describe "ca_file" do
71
- it "qa" do
72
- Braintree::Configuration.environment = :qa
73
- ca_file = Braintree::Configuration.instantiate.ca_file
74
- ca_file.should match(/api_braintreegateway_com\.ca\.crt$/)
75
- File.exists?(ca_file).should == true
76
- end
77
-
78
71
  it "sandbox" do
79
72
  Braintree::Configuration.environment = :sandbox
80
73
  ca_file = Braintree::Configuration.instantiate.ca_file
@@ -225,7 +218,7 @@ describe Braintree::Configuration do
225
218
 
226
219
  it "is qa.braintreegateway.com for qa" do
227
220
  Braintree::Configuration.environment = :qa
228
- Braintree::Configuration.instantiate.server.should == "qa.braintreegateway.com"
221
+ Braintree::Configuration.instantiate.server.should == "gateway.qa.braintreepayments.com"
229
222
  end
230
223
 
231
224
  it "can by changed by configuring the production endpoint" do
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.33.1
5
- prerelease:
4
+ version: 2.34.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Braintree
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-08-05 00:00:00.000000000 Z
11
+ date: 2014-09-11 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,200 +32,199 @@ extra_rdoc_files: []
35
32
  files:
36
33
  - README.rdoc
37
34
  - LICENSE
38
- - lib/braintree/sepa_bank_account.rb
39
- - lib/braintree/settlement_batch.rb
40
- - lib/braintree/payment_method_gateway.rb
41
- - lib/braintree/webhook_testing_gateway.rb
42
- - lib/braintree/add_on_gateway.rb
43
- - lib/braintree/subscription_search.rb
44
- - lib/braintree/credit_card.rb
35
+ - lib/braintree.rb
36
+ - lib/braintree/transaction_gateway.rb
37
+ - lib/braintree/credit_card_verification.rb
38
+ - lib/braintree/transparent_redirect_gateway.rb
39
+ - lib/braintree/resource_collection.rb
40
+ - lib/braintree/subscription.rb
41
+ - lib/braintree/dispute/transaction_details.rb
42
+ - lib/braintree/address/country_names.rb
45
43
  - lib/braintree/credit_card_verification_search.rb
46
- - lib/braintree/unknown_payment_method.rb
47
- - lib/braintree/webhook_testing.rb
48
- - lib/braintree/xml.rb
49
- - lib/braintree/error_result.rb
44
+ - lib/braintree/merchant_account_gateway.rb
45
+ - lib/braintree/util.rb
46
+ - lib/braintree/paypal_account_gateway.rb
47
+ - lib/braintree/address_gateway.rb
50
48
  - lib/braintree/webhook_notification_gateway.rb
51
- - lib/braintree/transaction/status_details.rb
52
49
  - lib/braintree/transaction/subscription_details.rb
53
- - lib/braintree/transaction/address_details.rb
54
- - lib/braintree/transaction/paypal_details.rb
50
+ - lib/braintree/transaction/status_details.rb
55
51
  - lib/braintree/transaction/disbursement_details.rb
52
+ - lib/braintree/transaction/address_details.rb
56
53
  - lib/braintree/transaction/customer_details.rb
54
+ - lib/braintree/transaction/paypal_details.rb
57
55
  - lib/braintree/transaction/credit_card_details.rb
58
- - lib/braintree/address/country_names.rb
59
- - lib/braintree/modification.rb
56
+ - lib/braintree/errors.rb
60
57
  - lib/braintree/transaction_search.rb
61
- - lib/braintree/settlement_batch_summary_gateway.rb
62
- - lib/braintree/add_on.rb
63
- - lib/braintree/configuration.rb
58
+ - lib/braintree/validation_error_collection.rb
59
+ - lib/braintree/webhook_testing_gateway.rb
60
+ - lib/braintree/payment_method_gateway.rb
61
+ - lib/braintree/discount.rb
62
+ - lib/braintree/credit_card.rb
63
+ - lib/braintree/version.rb
64
+ - lib/braintree/disbursement.rb
65
+ - lib/braintree/paypal_account.rb
66
+ - lib/braintree/subscription_search.rb
67
+ - lib/braintree/exceptions.rb
68
+ - lib/braintree/settlement_batch_summary.rb
69
+ - lib/braintree/transaction.rb
70
+ - lib/braintree/discount_gateway.rb
71
+ - lib/braintree/gateway.rb
64
72
  - lib/braintree/advanced_search.rb
65
- - lib/braintree/plan.rb
66
- - lib/braintree/merchant_account.rb
73
+ - lib/braintree/add_on_gateway.rb
74
+ - lib/braintree/payment_method.rb
75
+ - lib/braintree/settlement_batch.rb
76
+ - lib/braintree/customer_search.rb
77
+ - lib/braintree/transparent_redirect.rb
78
+ - lib/braintree/payment_instrument_type.rb
67
79
  - lib/braintree/digest.rb
68
- - lib/braintree/client_token.rb
80
+ - lib/braintree/customer.rb
81
+ - lib/braintree/subscription_gateway.rb
82
+ - lib/braintree/client_token_gateway.rb
83
+ - lib/braintree/customer_gateway.rb
84
+ - lib/braintree/sepa_bank_account.rb
85
+ - lib/braintree/signature_service.rb
86
+ - lib/braintree/test/credit_card.rb
87
+ - lib/braintree/test/transaction_amounts.rb
88
+ - lib/braintree/test/nonce.rb
89
+ - lib/braintree/test/merchant_account.rb
90
+ - lib/braintree/test/venmo_sdk.rb
69
91
  - lib/braintree/dispute.rb
70
- - lib/braintree/xml/parser.rb
92
+ - lib/braintree/testing_gateway.rb
93
+ - lib/braintree/error_result.rb
94
+ - lib/braintree/successful_result.rb
95
+ - lib/braintree/xml/generator.rb
71
96
  - lib/braintree/xml/libxml.rb
97
+ - lib/braintree/xml/parser.rb
72
98
  - lib/braintree/xml/rexml.rb
73
- - lib/braintree/xml/generator.rb
74
- - lib/braintree/client_token_gateway.rb
75
99
  - lib/braintree/webhook_notification.rb
76
100
  - lib/braintree/error_codes.rb
77
- - lib/braintree/customer_search.rb
78
- - lib/braintree/discount.rb
79
- - lib/braintree/discount_gateway.rb
101
+ - lib/braintree/base_module.rb
80
102
  - lib/braintree/credit_card_verification_gateway.rb
81
- - lib/braintree/subscription.rb
103
+ - lib/braintree/client_token.rb
104
+ - lib/braintree/add_on.rb
105
+ - lib/braintree/webhook_testing.rb
106
+ - lib/braintree/configuration.rb
82
107
  - lib/braintree/http.rb
83
- - lib/braintree/validation_error.rb
84
- - lib/braintree/plan_gateway.rb
85
- - lib/braintree/credit_card_verification.rb
86
- - lib/braintree/sepa_bank_account_gateway.rb
87
- - lib/braintree/util.rb
88
- - lib/braintree/settlement_batch_summary.rb
108
+ - lib/braintree/unknown_payment_method.rb
109
+ - lib/braintree/xml.rb
110
+ - lib/braintree/credit_card_gateway.rb
111
+ - lib/braintree/merchant_account/funding_details.rb
89
112
  - lib/braintree/merchant_account/individual_details.rb
90
113
  - lib/braintree/merchant_account/address_details.rb
91
114
  - lib/braintree/merchant_account/business_details.rb
92
- - lib/braintree/merchant_account/funding_details.rb
93
- - lib/braintree/paypal_account.rb
94
- - lib/braintree/test/credit_card.rb
95
- - lib/braintree/test/merchant_account.rb
96
- - lib/braintree/test/nonce.rb
97
- - lib/braintree/test/transaction_amounts.rb
98
- - lib/braintree/test/venmo_sdk.rb
99
- - lib/braintree/customer_gateway.rb
100
- - lib/braintree/gateway.rb
101
- - lib/braintree/merchant_account_gateway.rb
102
- - lib/braintree/transaction_gateway.rb
103
- - lib/braintree/test_transaction.rb
104
- - lib/braintree/descriptor.rb
105
- - lib/braintree/transparent_redirect.rb
106
- - lib/braintree/exceptions.rb
107
- - lib/braintree/customer.rb
108
- - lib/braintree/errors.rb
109
- - lib/braintree/transaction.rb
110
- - lib/braintree/address_gateway.rb
111
- - lib/braintree/payment_instrument_type.rb
112
- - lib/braintree/disbursement.rb
113
- - lib/braintree/sha256_digest.rb
114
- - lib/braintree/payment_method.rb
115
- - lib/braintree/base_module.rb
116
- - lib/braintree/paypal_account_gateway.rb
117
- - lib/braintree/signature_service.rb
115
+ - lib/braintree/plan_gateway.rb
116
+ - lib/braintree/settlement_batch_summary_gateway.rb
118
117
  - lib/braintree/address.rb
119
- - lib/braintree/transparent_redirect_gateway.rb
120
- - lib/braintree/credit_card_gateway.rb
121
- - lib/braintree/version.rb
122
- - lib/braintree/subscription_gateway.rb
123
- - lib/braintree/successful_result.rb
124
- - lib/braintree/validation_error_collection.rb
125
- - lib/braintree/dispute/transaction_details.rb
126
- - lib/braintree/testing_gateway.rb
127
- - lib/braintree/resource_collection.rb
128
- - lib/braintree.rb
129
- - lib/ssl/api_braintreegateway_com.ca.crt
130
- - lib/ssl/sandbox_braintreegateway_com.ca.crt
118
+ - lib/braintree/plan.rb
119
+ - lib/braintree/merchant_account.rb
120
+ - lib/braintree/sha256_digest.rb
121
+ - lib/braintree/descriptor.rb
122
+ - lib/braintree/validation_error.rb
123
+ - lib/braintree/sepa_bank_account_gateway.rb
124
+ - lib/braintree/modification.rb
125
+ - lib/braintree/test_transaction.rb
131
126
  - lib/ssl/www_braintreegateway_com.ca.crt
127
+ - lib/ssl/api_braintreegateway_com.ca.crt
132
128
  - lib/ssl/securetrust_ca.crt
133
- - spec/ssl/privateKey.key
134
- - spec/ssl/geotrust_global.crt
135
- - spec/ssl/certificate.crt
136
- - spec/unit/braintree/http_spec.rb
137
- - spec/unit/braintree/errors_spec.rb
138
- - spec/unit/braintree/digest_spec.rb
139
- - spec/unit/braintree/transparent_redirect_spec.rb
140
- - spec/unit/braintree/transaction/customer_details_spec.rb
129
+ - lib/ssl/sandbox_braintreegateway_com.ca.crt
130
+ - spec/unit/braintree_spec.rb
131
+ - spec/unit/spec_helper.rb
132
+ - spec/unit/braintree/resource_collection_spec.rb
141
133
  - spec/unit/braintree/transaction/credit_card_details_spec.rb
134
+ - spec/unit/braintree/transaction/customer_details_spec.rb
142
135
  - spec/unit/braintree/transaction/deposit_details_spec.rb
143
136
  - spec/unit/braintree/base_module_spec.rb
144
- - spec/unit/braintree/transaction_spec.rb
145
- - spec/unit/braintree/xml_spec.rb
146
- - spec/unit/braintree/validation_error_spec.rb
147
- - spec/unit/braintree/paypal_account_spec.rb
148
137
  - spec/unit/braintree/transaction_search_spec.rb
149
- - spec/unit/braintree/xml/parser_spec.rb
150
- - spec/unit/braintree/xml/libxml_spec.rb
151
- - spec/unit/braintree/xml/rexml_spec.rb
138
+ - spec/unit/braintree/disbursement_spec.rb
152
139
  - spec/unit/braintree/credit_card_verification_search_spec.rb
153
- - spec/unit/braintree/credit_card_verification_spec.rb
154
- - spec/unit/braintree/credit_card_spec.rb
155
140
  - spec/unit/braintree/util_spec.rb
156
- - spec/unit/braintree/error_result_spec.rb
157
- - spec/unit/braintree/successful_result_spec.rb
141
+ - spec/unit/braintree/payment_method_spec.rb
142
+ - spec/unit/braintree/address_spec.rb
143
+ - spec/unit/braintree/transaction_spec.rb
158
144
  - spec/unit/braintree/subscription_search_spec.rb
159
- - spec/unit/braintree/dispute_spec.rb
160
- - spec/unit/braintree/subscription_spec.rb
161
- - spec/unit/braintree/configuration_spec.rb
145
+ - spec/unit/braintree/client_token_spec.rb
162
146
  - spec/unit/braintree/validation_error_collection_spec.rb
163
- - spec/unit/braintree/sha256_digest_spec.rb
164
147
  - spec/unit/braintree/merchant_account_spec.rb
165
- - spec/unit/braintree/client_token_spec.rb
148
+ - spec/unit/braintree/sha256_digest_spec.rb
166
149
  - spec/unit/braintree/signature_service_spec.rb
167
- - spec/unit/braintree/resource_collection_spec.rb
150
+ - spec/unit/braintree/digest_spec.rb
151
+ - spec/unit/braintree/credit_card_verification_spec.rb
152
+ - spec/unit/braintree/xml_spec.rb
153
+ - spec/unit/braintree/http_spec.rb
154
+ - spec/unit/braintree/configuration_spec.rb
168
155
  - spec/unit/braintree/customer_spec.rb
156
+ - spec/unit/braintree/xml/parser_spec.rb
157
+ - spec/unit/braintree/xml/rexml_spec.rb
158
+ - spec/unit/braintree/xml/libxml_spec.rb
159
+ - spec/unit/braintree/paypal_account_spec.rb
160
+ - spec/unit/braintree/subscription_spec.rb
161
+ - spec/unit/braintree/transparent_redirect_spec.rb
162
+ - spec/unit/braintree/validation_error_spec.rb
169
163
  - spec/unit/braintree/webhook_notification_spec.rb
170
- - spec/unit/braintree/disbursement_spec.rb
171
- - spec/unit/braintree/modification_spec.rb
172
- - spec/unit/braintree/payment_method_spec.rb
173
- - spec/unit/braintree/address_spec.rb
164
+ - spec/unit/braintree/dispute_spec.rb
165
+ - spec/unit/braintree/credit_card_spec.rb
166
+ - spec/unit/braintree/error_result_spec.rb
174
167
  - spec/unit/braintree/unknown_payment_method_spec.rb
175
- - spec/unit/spec_helper.rb
176
- - spec/unit/braintree_spec.rb
177
- - spec/integration/braintree/http_spec.rb
178
- - spec/integration/braintree/transparent_redirect_spec.rb
179
- - spec/integration/braintree/advanced_search_spec.rb
180
- - spec/integration/braintree/settlement_batch_summary_spec.rb
181
- - spec/integration/braintree/transaction_spec.rb
182
- - spec/integration/braintree/paypal_account_spec.rb
168
+ - spec/unit/braintree/modification_spec.rb
169
+ - spec/unit/braintree/errors_spec.rb
170
+ - spec/unit/braintree/successful_result_spec.rb
171
+ - spec/integration/spec_helper.rb
172
+ - spec/integration/braintree/plan_spec.rb
183
173
  - spec/integration/braintree/transaction_search_spec.rb
184
- - spec/integration/braintree/discount_spec.rb
174
+ - spec/integration/braintree/disbursement_spec.rb
185
175
  - spec/integration/braintree/credit_card_verification_search_spec.rb
186
- - spec/integration/braintree/error_codes_spec.rb
187
- - spec/integration/braintree/plan_spec.rb
188
- - spec/integration/braintree/credit_card_verification_spec.rb
189
- - spec/integration/braintree/credit_card_spec.rb
176
+ - spec/integration/braintree/payment_method_spec.rb
177
+ - spec/integration/braintree/address_spec.rb
178
+ - spec/integration/braintree/transaction_spec.rb
190
179
  - spec/integration/braintree/customer_search_spec.rb
191
- - spec/integration/braintree/subscription_spec.rb
192
- - spec/integration/braintree/test/transaction_amounts_spec.rb
193
- - spec/integration/braintree/test_transaction_spec.rb
180
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
181
+ - spec/integration/braintree/discount_spec.rb
194
182
  - spec/integration/braintree/merchant_account_spec.rb
195
- - spec/integration/braintree/customer_spec.rb
183
+ - spec/integration/braintree/test_transaction_spec.rb
184
+ - spec/integration/braintree/credit_card_verification_spec.rb
185
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
186
+ - spec/integration/braintree/http_spec.rb
196
187
  - spec/integration/braintree/add_on_spec.rb
197
- - spec/integration/braintree/disbursement_spec.rb
198
- - spec/integration/braintree/payment_method_spec.rb
188
+ - spec/integration/braintree/customer_spec.rb
189
+ - spec/integration/braintree/paypal_account_spec.rb
190
+ - spec/integration/braintree/subscription_spec.rb
191
+ - spec/integration/braintree/transparent_redirect_spec.rb
192
+ - spec/integration/braintree/advanced_search_spec.rb
193
+ - spec/integration/braintree/credit_card_spec.rb
199
194
  - spec/integration/braintree/client_api/client_token_spec.rb
200
195
  - spec/integration/braintree/client_api/spec_helper.rb
201
- - spec/integration/braintree/address_spec.rb
202
- - spec/integration/spec_helper.rb
203
- - spec/httpsd.pid
204
- - spec/spec.opts
205
- - spec/script/httpsd.rb
196
+ - spec/integration/braintree/error_codes_spec.rb
206
197
  - spec/spec_helper.rb
198
+ - spec/spec.opts
207
199
  - spec/hacks/tcp_socket.rb
200
+ - spec/ssl/geotrust_global.crt
201
+ - spec/ssl/certificate.crt
202
+ - spec/ssl/privateKey.key
203
+ - spec/script/httpsd.rb
204
+ - spec/httpsd.pid
208
205
  - braintree.gemspec
209
206
  homepage: http://www.braintreepayments.com/
210
207
  licenses:
211
208
  - MIT
209
+ metadata: {}
212
210
  post_install_message:
213
211
  rdoc_options: []
214
212
  require_paths:
215
213
  - lib
216
214
  required_ruby_version: !ruby/object:Gem::Requirement
217
- none: false
218
215
  requirements:
219
- - - ! '>='
216
+ - - '>='
220
217
  - !ruby/object:Gem::Version
221
218
  version: '0'
222
219
  required_rubygems_version: !ruby/object:Gem::Requirement
223
- none: false
224
220
  requirements:
225
- - - ! '>='
221
+ - - '>='
226
222
  - !ruby/object:Gem::Version
227
223
  version: '0'
228
224
  requirements: []
229
225
  rubyforge_project: braintree
230
- rubygems_version: 1.8.24
226
+ rubygems_version: 2.1.11
231
227
  signing_key:
232
- specification_version: 3
228
+ specification_version: 4
233
229
  summary: Braintree Gateway Ruby Client Library
234
230
  test_files: []