braintree 2.35.0 → 2.36.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/braintree.rb CHANGED
@@ -26,6 +26,7 @@ require "braintree/address"
26
26
  require "braintree/address/country_names"
27
27
  require "braintree/address_gateway"
28
28
  require "braintree/advanced_search"
29
+ require "braintree/apple_pay_card"
29
30
  require "braintree/client_token"
30
31
  require "braintree/client_token_gateway"
31
32
  require "braintree/configuration"
@@ -81,6 +82,7 @@ require "braintree/testing_gateway"
81
82
  require "braintree/transaction"
82
83
  require "braintree/test_transaction"
83
84
  require "braintree/transaction/address_details"
85
+ require "braintree/transaction/apple_pay_details"
84
86
  require "braintree/transaction/credit_card_details"
85
87
  require "braintree/transaction/customer_details"
86
88
  require "braintree/transaction/disbursement_details"
@@ -0,0 +1,33 @@
1
+ module Braintree
2
+ # See https://developers.braintreepayments.com/ios+ruby/sdk/server
3
+ class ApplePayCard
4
+ include BaseModule # :nodoc:
5
+
6
+ module CardType
7
+ AmEx = "Apple Pay - American Express"
8
+ Visa = "Apple Pay - Visa"
9
+ MasterCard = "Apple Pay - MasterCard"
10
+
11
+ All = constants.map { |c| const_get(c) }
12
+ end
13
+
14
+ attr_reader :token, :card_type, :last_4, :default, :image_url,
15
+ :created_at, :updated_at, :subscriptions, :expiration_month,
16
+ :expiration_year, :expired
17
+
18
+
19
+ def initialize(gateway, attributes) # :nodoc:
20
+ @gateway = gateway
21
+ set_instance_variables_from_hash(attributes)
22
+ @subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) }
23
+ end
24
+
25
+ class << self
26
+ protected :new
27
+ end
28
+
29
+ def self._new(*args) # :nodoc:
30
+ self.new *args
31
+ end
32
+ end
33
+ end
@@ -33,6 +33,27 @@ module Braintree
33
33
  TooManyAddressesPerCustomer = "91818"
34
34
  end
35
35
 
36
+ module ApplePay
37
+ ApplePayCardsAreNotAccepted = "83501"
38
+ CustomerIdIsRequiredForVaulting = "83502"
39
+ TokenIsInUse = "93503"
40
+ PaymentMethodNonceConsumed = "93504"
41
+ PaymentMethodNonceUnknown = "93505"
42
+ PaymentMethodNonceLocked = "93506"
43
+ PaymentMethodNonceCardTypeIsNotAccepted = "83518"
44
+ CannotUpdateApplePayCardUsingPaymentMethodNonce = "93507"
45
+ NumberIsRequired = "93508"
46
+ ExpirationMonthIsRequired = "93509"
47
+ ExpirationYearIsRequired = "93510"
48
+ CryptogramIsRequired = "93511"
49
+ DecryptionFailed = "83512"
50
+ Disabled = "93513"
51
+ MerchantNotConfigured = "93514"
52
+ MerchantKeysAlreadyConfigured = "93515"
53
+ MerchantKeysNotConfigured = "93516"
54
+ CertificateInvalid = "93517"
55
+ end
56
+
36
57
  # See http://www.braintreepayments.com/docs/ruby/credit_cards/validations
37
58
  module CreditCard
38
59
  BillingAddressConflict = "91701"
@@ -3,7 +3,7 @@ module Braintree
3
3
  class FundingDetails
4
4
  include BaseModule
5
5
 
6
- attr_reader :account_number_last_4, :destination, :email, :mobile_phone, :routing_number
6
+ attr_reader :account_number_last_4, :destination, :email, :mobile_phone, :routing_number, :descriptor
7
7
 
8
8
  def initialize(attributes)
9
9
  set_instance_variables_from_hash attributes unless attributes.nil?
@@ -72,7 +72,7 @@ module Braintree
72
72
  :dba_name, :legal_name, :tax_id,
73
73
  {:address => [:street_address, :locality, :region, :postal_code]}]
74
74
  },
75
- {:funding => [:destination, :email, :mobile_phone, :routing_number, :account_number]}
75
+ {:funding => [:destination, :email, :mobile_phone, :routing_number, :account_number, :descriptor]}
76
76
  ]
77
77
  end
78
78
 
@@ -18,8 +18,12 @@ module Braintree
18
18
  SuccessfulResult.new(:payment_method => PayPalAccount._new(@gateway, response[:paypal_account]))
19
19
  elsif response[:sepa_bank_account]
20
20
  SuccessfulResult.new(:payment_method => SEPABankAccount._new(@gateway, response[:sepa_bank_account]))
21
+ elsif response[:apple_pay_card]
22
+ SuccessfulResult.new(:payment_method => ApplePayCard._new(@gateway, response[:apple_pay_card]))
21
23
  elsif response[:api_error_response]
22
24
  ErrorResult.new(@gateway, response[:api_error_response])
25
+ elsif response
26
+ SuccessfulResult.new(:payment_method => UnknownPaymentMethod._new(@gateway, response))
23
27
  else
24
28
  raise UnexpectedError, "expected :payment_method or :api_error_response"
25
29
  end
@@ -39,7 +43,7 @@ module Braintree
39
43
  elsif response.has_key?(:sepa_bank_account)
40
44
  SEPABankAccount._new(@gateway, response[:sepa_bank_account])
41
45
  else
42
- UnknownPaymentMethod.new(response)
46
+ UnknownPaymentMethod._new(@gateway, response)
43
47
  end
44
48
  rescue NotFoundError
45
49
  raise NotFoundError, "payment method with token #{token.inspect} not found"
@@ -5,6 +5,9 @@ module Braintree
5
5
  Consumed = "fake-consumed-nonce"
6
6
  PayPalOneTimePayment = "fake-paypal-one-time-nonce"
7
7
  PayPalFuturePayment = "fake-paypal-future-nonce"
8
+ ApplePayVisa = "fake-apple-pay-visa-nonce"
9
+ ApplePayMasterCard = "fake-apple-pay-mastercard-nonce"
10
+ ApplePayAmEx = "fake-apple-pay-amex-nonce"
8
11
  end
9
12
  end
10
13
  end
@@ -81,6 +81,7 @@ module Braintree
81
81
  attr_reader :channel
82
82
  attr_reader :billing_details, :shipping_details
83
83
  attr_reader :paypal_details
84
+ attr_reader :apple_pay_details
84
85
  attr_reader :plan_id
85
86
  # The authorization code from the processor.
86
87
  attr_reader :processor_authorization_code
@@ -242,6 +243,7 @@ module Braintree
242
243
  @tax_amount = Util.to_big_decimal(tax_amount)
243
244
  @descriptor = Descriptor.new(@descriptor)
244
245
  @paypal_details = PayPalDetails.new(@paypal)
246
+ @apple_pay_details = ApplePayDetails.new(@apple_pay)
245
247
  disputes.map! { |attrs| Dispute._new(attrs) } if disputes
246
248
  @custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {}
247
249
  add_ons.map! { |attrs| AddOn._new(attrs) } if add_ons
@@ -0,0 +1,14 @@
1
+ module Braintree
2
+ class Transaction
3
+ class ApplePayDetails
4
+ include BaseModule
5
+
6
+ attr_reader :card_type, :last_4, :expiration_month, :expiration_year,
7
+ :cardholder_name
8
+
9
+ def initialize(attributes)
10
+ set_instance_variables_from_hash attributes unless attributes.nil?
11
+ end
12
+ end
13
+ end
14
+ end
@@ -4,7 +4,8 @@ module Braintree
4
4
 
5
5
  attr_reader :token
6
6
 
7
- def initialize(attributes)
7
+ def initialize(gateway, attributes)
8
+ @gateway = gateway
8
9
  nested_attributes = attributes[attributes.keys.first]
9
10
  set_instance_variables_from_hash(nested_attributes)
10
11
  end
@@ -16,5 +17,9 @@ module Braintree
16
17
  def image_url
17
18
  "https://assets.braintreegateway.com/payment_method_logo/unknown.png"
18
19
  end
20
+
21
+ def self._new(*args) # :nodoc:
22
+ self.new *args
23
+ end
19
24
  end
20
25
  end
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 35
4
+ Minor = 36
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
data/spec/httpsd.pid CHANGED
@@ -1 +1 @@
1
- 28882
1
+ 28120
@@ -52,7 +52,8 @@ VALID_APPLICATION_PARAMS = {
52
52
  :funding => {
53
53
  :destination => Braintree::MerchantAccount::FundingDestination::Bank,
54
54
  :routing_number => "011103093",
55
- :account_number => "43759348798"
55
+ :account_number => "43759348798",
56
+ :descriptor => "Joes Bloggs MI",
56
57
  },
57
58
  :tos_accepted => true,
58
59
  :master_merchant_account_id => "sandbox_master_merchant_account"
@@ -207,6 +208,7 @@ describe Braintree::MerchantAccount do
207
208
  result.merchant_account.funding_details.email.should == "check@this.com"
208
209
  result.merchant_account.funding_details.mobile_phone.should == "1234567890"
209
210
  result.merchant_account.funding_details.destination.should == Braintree::MerchantAccount::FundingDestination::MobilePhone
211
+ result.merchant_account.funding_details.descriptor.should == "Joes Bloggs MI"
210
212
  end
211
213
 
212
214
  it "does not require all fields" do
@@ -72,6 +72,26 @@ describe Braintree::PaymentMethod do
72
72
  found_credit_card.should_not be_nil
73
73
  end
74
74
 
75
+ it "creates a payment method from a fake apple pay nonce" do
76
+ customer = Braintree::Customer.create.customer
77
+ token = SecureRandom.hex(16)
78
+ result = Braintree::PaymentMethod.create(
79
+ :payment_method_nonce => Braintree::Test::Nonce::ApplePayAmEx,
80
+ :customer_id => customer.id,
81
+ :token => token
82
+ )
83
+
84
+ result.should be_success
85
+ apple_pay_card = result.payment_method
86
+ apple_pay_card.should_not be_nil
87
+ apple_pay_card.token.should == token
88
+ apple_pay_card.card_type.should == Braintree::ApplePayCard::CardType::AmEx
89
+ apple_pay_card.default.should == true
90
+ apple_pay_card.image_url.should =~ /apple_pay/
91
+ apple_pay_card.expiration_month.to_i.should > 0
92
+ apple_pay_card.expiration_year.to_i.should > 0
93
+ end
94
+
75
95
  it "allows passing the make_default option alongside the nonce" do
76
96
  customer = Braintree::Customer.create!
77
97
  result = Braintree::CreditCard.create(
@@ -12,7 +12,7 @@ describe Braintree::TestTransaction do
12
12
  }
13
13
  )
14
14
  sale_result.success?.should == true
15
- sale_result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
15
+ sale_result.transaction.status.should == Braintree::Transaction::Status::Settling
16
16
 
17
17
  settle_result = Braintree::TestTransaction.settle(sale_result.transaction.id)
18
18
  settle_result.transaction.status.should == Braintree::Transaction::Status::Settled
@@ -28,7 +28,7 @@ describe Braintree::TestTransaction do
28
28
  }
29
29
  )
30
30
  sale_result.success?.should == true
31
- sale_result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
31
+ sale_result.transaction.status.should == Braintree::Transaction::Status::Settling
32
32
 
33
33
  settle_result = Braintree::TestTransaction.settlement_confirm(sale_result.transaction.id)
34
34
  settle_result.transaction.status.should == Braintree::Transaction::Status::SettlementConfirmed
@@ -44,7 +44,7 @@ describe Braintree::TestTransaction do
44
44
  }
45
45
  )
46
46
  sale_result.success?.should == true
47
- sale_result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
47
+ sale_result.transaction.status.should == Braintree::Transaction::Status::Settling
48
48
 
49
49
  settle_result = Braintree::TestTransaction.settlement_decline(sale_result.transaction.id)
50
50
  settle_result.transaction.status.should == Braintree::Transaction::Status::SettlementDeclined
@@ -60,7 +60,7 @@ describe Braintree::TestTransaction do
60
60
  }
61
61
  )
62
62
  sale_result.success?.should == true
63
- sale_result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
63
+ sale_result.transaction.status.should == Braintree::Transaction::Status::Settling
64
64
 
65
65
  settle_result = Braintree::TestTransaction.settlement_pending(sale_result.transaction.id)
66
66
  settle_result.transaction.status.should == Braintree::Transaction::Status::SettlementPending
@@ -644,8 +644,8 @@ describe Braintree::Transaction, "search" do
644
644
  end
645
645
 
646
646
  context "disbursement_date" do
647
- it "searches on disbursement_date in UTC" do
648
- disbursement_time = Time.parse("2013-04-10 00:00:00 UTC")
647
+ it "searches on disbursement_date in UTC, as a date" do
648
+ disbursement_time = Date.parse("2013-04-10")
649
649
  transaction_id = "deposittransaction"
650
650
 
651
651
  collection = Braintree::Transaction.search do |search|
@@ -1316,6 +1316,23 @@ describe Braintree::Transaction do
1316
1316
  result.transaction.paypal_details.debug_id.should_not be_nil
1317
1317
  end
1318
1318
 
1319
+ it "can create a transaction with a fake apple pay nonce" do
1320
+ customer = Braintree::Customer.create!
1321
+ result = Braintree::Transaction.create(
1322
+ :type => "sale",
1323
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1324
+ :payment_method_nonce => "fake-apple-pay-visa-nonce"
1325
+ )
1326
+ result.success?.should == true
1327
+ result.transaction.should_not be_nil
1328
+ apple_pay_details = result.transaction.apple_pay_details
1329
+ apple_pay_details.should_not be_nil
1330
+ apple_pay_details.card_type.should == Braintree::ApplePayCard::CardType::Visa
1331
+ apple_pay_details.expiration_month.to_i.should > 0
1332
+ apple_pay_details.expiration_year.to_i.should > 0
1333
+ apple_pay_details.cardholder_name.should_not be_nil
1334
+ end
1335
+
1319
1336
  it "can create a transaction with a payee email" do
1320
1337
  customer = Braintree::Customer.create!
1321
1338
  nonce = nonce_for_new_payment_method(
@@ -1553,7 +1570,7 @@ describe Braintree::Transaction do
1553
1570
  }
1554
1571
  )
1555
1572
  result.success?.should == true
1556
- result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
1573
+ result.transaction.status.should == Braintree::Transaction::Status::Settling
1557
1574
  end
1558
1575
  end
1559
1576
 
@@ -1637,10 +1654,7 @@ describe Braintree::Transaction do
1637
1654
  it "returns an error result if unsettled" do
1638
1655
  transaction = Braintree::Transaction.sale!(
1639
1656
  :amount => Braintree::Test::TransactionAmounts::Authorize,
1640
- :payment_method_nonce => Braintree::Test::Nonce::PayPalOneTimePayment,
1641
- :options => {
1642
- :submit_for_settlement => true
1643
- }
1657
+ :payment_method_nonce => Braintree::Test::Nonce::PayPalOneTimePayment
1644
1658
  )
1645
1659
  result = Braintree::Transaction.refund(transaction.id)
1646
1660
  result.success?.should == false
@@ -1,29 +1,33 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
2
 
3
3
  describe Braintree::PayPalAccount do
4
+ before(:each) do
5
+ @gateway = OpenStruct.new()
6
+ end
7
+
4
8
  describe "token" do
5
9
  it "has a token identifier" do
6
10
  params = {:unknown_payment_method => {:token => 1234, :default => true}}
7
- Braintree::UnknownPaymentMethod.new(params).token.should == 1234
11
+ Braintree::UnknownPaymentMethod.new(@gateway, params).token.should == 1234
8
12
  end
9
13
  end
10
14
 
11
15
  describe "image_url" do
12
16
  it "has a image_url" do
13
17
  params = {:unknown_payment_method => {:token => 1234, :default => true}}
14
- Braintree::UnknownPaymentMethod.new(params).image_url.should == "https://assets.braintreegateway.com/payment_method_logo/unknown.png"
18
+ Braintree::UnknownPaymentMethod.new(@gateway, params).image_url.should == "https://assets.braintreegateway.com/payment_method_logo/unknown.png"
15
19
  end
16
20
  end
17
21
 
18
22
  describe "default?" do
19
23
  it "is true if the paypal account is the default payment method for the customer" do
20
24
  params = {:unknown_payment_method => {:token => 1234, :default => true}}
21
- Braintree::UnknownPaymentMethod.new(params).should be_default
25
+ Braintree::UnknownPaymentMethod.new(@gateway, params).should be_default
22
26
  end
23
27
 
24
28
  it "is false if the paypal account is not the default payment methodfor the customer" do
25
29
  params = {:unknown_payment_method => {:token => 1234, :default => false}}
26
- Braintree::UnknownPaymentMethod.new(params).should_not be_default
30
+ Braintree::UnknownPaymentMethod.new(@gateway, params).should_not be_default
27
31
  end
28
32
  end
29
33
  end
metadata CHANGED
@@ -1,27 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.35.0
4
+ version: 2.36.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-09-24 00:00:00.000000000 Z
12
+ date: 2014-10-09 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: builder
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 2.0.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 2.0.0
27
30
  description: Ruby library for integrating with the Braintree Gateway
@@ -30,201 +33,204 @@ executables: []
30
33
  extensions: []
31
34
  extra_rdoc_files: []
32
35
  files:
33
- - LICENSE
34
36
  - README.rdoc
35
- - braintree.gemspec
36
- - lib/braintree.rb
37
- - lib/braintree/add_on.rb
38
- - lib/braintree/add_on_gateway.rb
39
- - lib/braintree/address.rb
40
- - lib/braintree/address/country_names.rb
41
- - lib/braintree/address_gateway.rb
42
- - lib/braintree/advanced_search.rb
43
- - lib/braintree/base_module.rb
37
+ - LICENSE
38
+ - lib/braintree/sepa_bank_account.rb
39
+ - lib/braintree/sepa_bank_account_gateway.rb
40
+ - lib/braintree/resource_collection.rb
41
+ - lib/braintree/signature_service.rb
42
+ - lib/braintree/errors.rb
44
43
  - lib/braintree/client_token.rb
45
- - lib/braintree/client_token_gateway.rb
46
- - lib/braintree/configuration.rb
47
- - lib/braintree/credit_card.rb
48
- - lib/braintree/credit_card_gateway.rb
49
- - lib/braintree/credit_card_verification.rb
44
+ - lib/braintree/address/country_names.rb
45
+ - lib/braintree/transaction_gateway.rb
46
+ - lib/braintree/payment_method.rb
47
+ - lib/braintree/unknown_payment_method.rb
50
48
  - lib/braintree/credit_card_verification_gateway.rb
51
- - lib/braintree/credit_card_verification_search.rb
52
- - lib/braintree/customer.rb
53
- - lib/braintree/customer_gateway.rb
49
+ - lib/braintree/plan_gateway.rb
54
50
  - lib/braintree/customer_search.rb
55
- - lib/braintree/descriptor.rb
56
- - lib/braintree/digest.rb
57
- - lib/braintree/disbursement.rb
58
- - lib/braintree/discount.rb
59
- - lib/braintree/discount_gateway.rb
60
- - lib/braintree/dispute.rb
61
- - lib/braintree/dispute/transaction_details.rb
62
- - lib/braintree/error_codes.rb
63
- - lib/braintree/error_result.rb
64
- - lib/braintree/errors.rb
65
- - lib/braintree/exceptions.rb
66
- - lib/braintree/gateway.rb
67
51
  - lib/braintree/http.rb
68
- - lib/braintree/merchant_account.rb
69
- - lib/braintree/merchant_account/address_details.rb
70
- - lib/braintree/merchant_account/business_details.rb
71
- - lib/braintree/merchant_account/funding_details.rb
72
- - lib/braintree/merchant_account/individual_details.rb
73
- - lib/braintree/merchant_account_gateway.rb
52
+ - lib/braintree/successful_result.rb
74
53
  - lib/braintree/modification.rb
75
- - lib/braintree/payment_instrument_type.rb
76
- - lib/braintree/payment_method.rb
77
- - lib/braintree/payment_method_gateway.rb
78
- - lib/braintree/paypal_account.rb
79
- - lib/braintree/paypal_account_gateway.rb
80
- - lib/braintree/plan.rb
81
- - lib/braintree/plan_gateway.rb
82
- - lib/braintree/resource_collection.rb
83
- - lib/braintree/sepa_bank_account.rb
84
- - lib/braintree/sepa_bank_account_gateway.rb
85
- - lib/braintree/settlement_batch.rb
86
- - lib/braintree/settlement_batch_summary.rb
87
- - lib/braintree/settlement_batch_summary_gateway.rb
54
+ - lib/braintree/webhook_testing_gateway.rb
88
55
  - lib/braintree/sha256_digest.rb
89
- - lib/braintree/signature_service.rb
90
- - lib/braintree/subscription.rb
91
- - lib/braintree/subscription_gateway.rb
92
- - lib/braintree/subscription_search.rb
93
- - lib/braintree/successful_result.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/test_transaction.rb
100
- - lib/braintree/testing_gateway.rb
56
+ - lib/braintree/transaction_search.rb
57
+ - lib/braintree/gateway.rb
58
+ - lib/braintree/discount_gateway.rb
59
+ - lib/braintree/xml.rb
101
60
  - lib/braintree/transaction.rb
102
- - lib/braintree/transaction/address_details.rb
61
+ - lib/braintree/credit_card.rb
62
+ - lib/braintree/client_token_gateway.rb
63
+ - lib/braintree/credit_card_verification.rb
64
+ - lib/braintree/transparent_redirect_gateway.rb
65
+ - lib/braintree/subscription_search.rb
66
+ - lib/braintree/transaction/status_details.rb
103
67
  - lib/braintree/transaction/credit_card_details.rb
104
- - lib/braintree/transaction/customer_details.rb
105
- - lib/braintree/transaction/disbursement_details.rb
68
+ - lib/braintree/transaction/apple_pay_details.rb
106
69
  - lib/braintree/transaction/paypal_details.rb
107
- - lib/braintree/transaction/status_details.rb
70
+ - lib/braintree/transaction/disbursement_details.rb
108
71
  - lib/braintree/transaction/subscription_details.rb
109
- - lib/braintree/transaction_gateway.rb
110
- - lib/braintree/transaction_search.rb
72
+ - lib/braintree/transaction/customer_details.rb
73
+ - lib/braintree/transaction/address_details.rb
74
+ - lib/braintree/xml/rexml.rb
75
+ - lib/braintree/xml/libxml.rb
76
+ - lib/braintree/xml/generator.rb
77
+ - lib/braintree/xml/parser.rb
78
+ - lib/braintree/webhook_notification_gateway.rb
79
+ - lib/braintree/error_result.rb
80
+ - lib/braintree/subscription.rb
81
+ - lib/braintree/add_on_gateway.rb
82
+ - lib/braintree/version.rb
83
+ - lib/braintree/address.rb
84
+ - lib/braintree/plan.rb
85
+ - lib/braintree/paypal_account_gateway.rb
86
+ - lib/braintree/settlement_batch.rb
87
+ - lib/braintree/payment_instrument_type.rb
111
88
  - lib/braintree/transparent_redirect.rb
112
- - lib/braintree/transparent_redirect_gateway.rb
113
- - lib/braintree/unknown_payment_method.rb
114
- - lib/braintree/util.rb
89
+ - lib/braintree/add_on.rb
115
90
  - lib/braintree/validation_error.rb
91
+ - lib/braintree/disbursement.rb
92
+ - lib/braintree/credit_card_gateway.rb
93
+ - lib/braintree/test/venmo_sdk.rb
94
+ - lib/braintree/test/credit_card.rb
95
+ - lib/braintree/test/nonce.rb
96
+ - lib/braintree/test/transaction_amounts.rb
97
+ - lib/braintree/test/merchant_account.rb
98
+ - lib/braintree/util.rb
99
+ - lib/braintree/settlement_batch_summary_gateway.rb
100
+ - lib/braintree/merchant_account/funding_details.rb
101
+ - lib/braintree/merchant_account/individual_details.rb
102
+ - lib/braintree/merchant_account/address_details.rb
103
+ - lib/braintree/merchant_account/business_details.rb
104
+ - lib/braintree/merchant_account_gateway.rb
105
+ - lib/braintree/testing_gateway.rb
116
106
  - lib/braintree/validation_error_collection.rb
117
- - lib/braintree/version.rb
107
+ - lib/braintree/error_codes.rb
108
+ - lib/braintree/paypal_account.rb
109
+ - lib/braintree/exceptions.rb
110
+ - lib/braintree/customer.rb
111
+ - lib/braintree/configuration.rb
112
+ - lib/braintree/digest.rb
113
+ - lib/braintree/dispute.rb
114
+ - lib/braintree/dispute/transaction_details.rb
115
+ - lib/braintree/advanced_search.rb
118
116
  - lib/braintree/webhook_notification.rb
119
- - lib/braintree/webhook_notification_gateway.rb
117
+ - lib/braintree/merchant_account.rb
118
+ - lib/braintree/test_transaction.rb
119
+ - lib/braintree/subscription_gateway.rb
120
+ - lib/braintree/payment_method_gateway.rb
121
+ - lib/braintree/discount.rb
122
+ - lib/braintree/settlement_batch_summary.rb
120
123
  - lib/braintree/webhook_testing.rb
121
- - lib/braintree/webhook_testing_gateway.rb
122
- - lib/braintree/xml.rb
123
- - lib/braintree/xml/generator.rb
124
- - lib/braintree/xml/libxml.rb
125
- - lib/braintree/xml/parser.rb
126
- - lib/braintree/xml/rexml.rb
127
- - lib/ssl/api_braintreegateway_com.ca.crt
124
+ - lib/braintree/address_gateway.rb
125
+ - lib/braintree/base_module.rb
126
+ - lib/braintree/descriptor.rb
127
+ - lib/braintree/credit_card_verification_search.rb
128
+ - lib/braintree/apple_pay_card.rb
129
+ - lib/braintree/customer_gateway.rb
130
+ - lib/braintree.rb
128
131
  - lib/ssl/sandbox_braintreegateway_com.ca.crt
129
132
  - lib/ssl/securetrust_ca.crt
130
133
  - lib/ssl/www_braintreegateway_com.ca.crt
131
- - spec/hacks/tcp_socket.rb
132
- - spec/httpsd.pid
133
- - spec/integration/braintree/add_on_spec.rb
134
- - spec/integration/braintree/address_spec.rb
135
- - spec/integration/braintree/advanced_search_spec.rb
136
- - spec/integration/braintree/client_api/client_token_spec.rb
137
- - spec/integration/braintree/client_api/spec_helper.rb
138
- - spec/integration/braintree/credit_card_spec.rb
139
- - spec/integration/braintree/credit_card_verification_search_spec.rb
140
- - spec/integration/braintree/credit_card_verification_spec.rb
141
- - spec/integration/braintree/customer_search_spec.rb
142
- - spec/integration/braintree/customer_spec.rb
143
- - spec/integration/braintree/disbursement_spec.rb
144
- - spec/integration/braintree/discount_spec.rb
145
- - spec/integration/braintree/error_codes_spec.rb
146
- - spec/integration/braintree/http_spec.rb
147
- - spec/integration/braintree/merchant_account_spec.rb
148
- - spec/integration/braintree/payment_method_spec.rb
149
- - spec/integration/braintree/paypal_account_spec.rb
150
- - spec/integration/braintree/plan_spec.rb
151
- - spec/integration/braintree/settlement_batch_summary_spec.rb
152
- - spec/integration/braintree/subscription_spec.rb
153
- - spec/integration/braintree/test/transaction_amounts_spec.rb
154
- - spec/integration/braintree/test_transaction_spec.rb
155
- - spec/integration/braintree/transaction_search_spec.rb
156
- - spec/integration/braintree/transaction_spec.rb
157
- - spec/integration/braintree/transparent_redirect_spec.rb
158
- - spec/integration/spec_helper.rb
134
+ - lib/ssl/api_braintreegateway_com.ca.crt
159
135
  - spec/script/httpsd.rb
160
- - spec/spec.opts
161
- - spec/spec_helper.rb
136
+ - spec/ssl/privateKey.key
162
137
  - spec/ssl/certificate.crt
163
138
  - spec/ssl/geotrust_global.crt
164
- - spec/ssl/privateKey.key
165
- - spec/unit/braintree/address_spec.rb
139
+ - spec/spec.opts
140
+ - spec/unit/braintree/resource_collection_spec.rb
141
+ - spec/unit/braintree/unknown_payment_method_spec.rb
142
+ - spec/unit/braintree/subscription_search_spec.rb
143
+ - spec/unit/braintree/validation_error_collection_spec.rb
144
+ - spec/unit/braintree/validation_error_spec.rb
145
+ - spec/unit/braintree/disbursement_spec.rb
146
+ - spec/unit/braintree/paypal_account_spec.rb
166
147
  - spec/unit/braintree/base_module_spec.rb
167
- - spec/unit/braintree/client_token_spec.rb
168
- - spec/unit/braintree/configuration_spec.rb
169
- - spec/unit/braintree/credit_card_spec.rb
170
- - spec/unit/braintree/credit_card_verification_search_spec.rb
171
- - spec/unit/braintree/credit_card_verification_spec.rb
172
- - spec/unit/braintree/customer_spec.rb
148
+ - spec/unit/braintree/util_spec.rb
149
+ - spec/unit/braintree/transparent_redirect_spec.rb
173
150
  - spec/unit/braintree/digest_spec.rb
174
- - spec/unit/braintree/disbursement_spec.rb
175
- - spec/unit/braintree/dispute_spec.rb
151
+ - spec/unit/braintree/client_token_spec.rb
152
+ - spec/unit/braintree/webhook_notification_spec.rb
176
153
  - spec/unit/braintree/error_result_spec.rb
177
- - spec/unit/braintree/errors_spec.rb
178
- - spec/unit/braintree/http_spec.rb
179
- - spec/unit/braintree/merchant_account_spec.rb
180
- - spec/unit/braintree/modification_spec.rb
181
- - spec/unit/braintree/payment_method_spec.rb
182
- - spec/unit/braintree/paypal_account_spec.rb
183
- - spec/unit/braintree/resource_collection_spec.rb
184
- - spec/unit/braintree/sha256_digest_spec.rb
185
- - spec/unit/braintree/signature_service_spec.rb
186
- - spec/unit/braintree/subscription_search_spec.rb
187
- - spec/unit/braintree/subscription_spec.rb
188
- - spec/unit/braintree/successful_result_spec.rb
189
154
  - spec/unit/braintree/transaction/credit_card_details_spec.rb
190
155
  - spec/unit/braintree/transaction/customer_details_spec.rb
191
156
  - spec/unit/braintree/transaction/deposit_details_spec.rb
192
- - spec/unit/braintree/transaction_search_spec.rb
193
157
  - spec/unit/braintree/transaction_spec.rb
194
- - spec/unit/braintree/transparent_redirect_spec.rb
195
- - spec/unit/braintree/unknown_payment_method_spec.rb
196
- - spec/unit/braintree/util_spec.rb
197
- - spec/unit/braintree/validation_error_collection_spec.rb
198
- - spec/unit/braintree/validation_error_spec.rb
199
- - spec/unit/braintree/webhook_notification_spec.rb
158
+ - spec/unit/braintree/errors_spec.rb
200
159
  - spec/unit/braintree/xml/libxml_spec.rb
201
160
  - spec/unit/braintree/xml/parser_spec.rb
202
161
  - spec/unit/braintree/xml/rexml_spec.rb
162
+ - spec/unit/braintree/payment_method_spec.rb
163
+ - spec/unit/braintree/successful_result_spec.rb
164
+ - spec/unit/braintree/subscription_spec.rb
165
+ - spec/unit/braintree/http_spec.rb
166
+ - spec/unit/braintree/credit_card_spec.rb
167
+ - spec/unit/braintree/transaction_search_spec.rb
168
+ - spec/unit/braintree/modification_spec.rb
169
+ - spec/unit/braintree/address_spec.rb
170
+ - spec/unit/braintree/merchant_account_spec.rb
171
+ - spec/unit/braintree/dispute_spec.rb
172
+ - spec/unit/braintree/customer_spec.rb
173
+ - spec/unit/braintree/signature_service_spec.rb
203
174
  - spec/unit/braintree/xml_spec.rb
204
- - spec/unit/braintree_spec.rb
175
+ - spec/unit/braintree/configuration_spec.rb
176
+ - spec/unit/braintree/credit_card_verification_spec.rb
177
+ - spec/unit/braintree/credit_card_verification_search_spec.rb
178
+ - spec/unit/braintree/sha256_digest_spec.rb
205
179
  - spec/unit/spec_helper.rb
180
+ - spec/unit/braintree_spec.rb
181
+ - spec/integration/braintree/plan_spec.rb
182
+ - spec/integration/braintree/disbursement_spec.rb
183
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
184
+ - spec/integration/braintree/paypal_account_spec.rb
185
+ - spec/integration/braintree/transparent_redirect_spec.rb
186
+ - spec/integration/braintree/error_codes_spec.rb
187
+ - spec/integration/braintree/advanced_search_spec.rb
188
+ - spec/integration/braintree/test_transaction_spec.rb
189
+ - spec/integration/braintree/transaction_spec.rb
190
+ - spec/integration/braintree/customer_search_spec.rb
191
+ - spec/integration/braintree/payment_method_spec.rb
192
+ - spec/integration/braintree/subscription_spec.rb
193
+ - spec/integration/braintree/http_spec.rb
194
+ - spec/integration/braintree/credit_card_spec.rb
195
+ - spec/integration/braintree/transaction_search_spec.rb
196
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
197
+ - spec/integration/braintree/address_spec.rb
198
+ - spec/integration/braintree/merchant_account_spec.rb
199
+ - spec/integration/braintree/client_api/client_token_spec.rb
200
+ - spec/integration/braintree/client_api/spec_helper.rb
201
+ - spec/integration/braintree/customer_spec.rb
202
+ - spec/integration/braintree/credit_card_verification_spec.rb
203
+ - spec/integration/braintree/discount_spec.rb
204
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
205
+ - spec/integration/braintree/add_on_spec.rb
206
+ - spec/integration/spec_helper.rb
207
+ - spec/httpsd.pid
208
+ - spec/hacks/tcp_socket.rb
209
+ - spec/spec_helper.rb
210
+ - braintree.gemspec
206
211
  homepage: http://www.braintreepayments.com/
207
212
  licenses:
208
213
  - MIT
209
- metadata: {}
210
214
  post_install_message:
211
215
  rdoc_options: []
212
216
  require_paths:
213
217
  - lib
214
218
  required_ruby_version: !ruby/object:Gem::Requirement
219
+ none: false
215
220
  requirements:
216
- - - '>='
221
+ - - ! '>='
217
222
  - !ruby/object:Gem::Version
218
223
  version: '0'
219
224
  required_rubygems_version: !ruby/object:Gem::Requirement
225
+ none: false
220
226
  requirements:
221
- - - '>='
227
+ - - ! '>='
222
228
  - !ruby/object:Gem::Version
223
229
  version: '0'
224
230
  requirements: []
225
231
  rubyforge_project: braintree
226
- rubygems_version: 2.2.2
232
+ rubygems_version: 1.8.24
227
233
  signing_key:
228
- specification_version: 4
234
+ specification_version: 3
229
235
  summary: Braintree Gateway Ruby Client Library
230
236
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e8255caf771801b6ed236593abe70c8588af90ac
4
- data.tar.gz: a8b79d3b27f4aad1108fe0525353c84d895beade
5
- SHA512:
6
- metadata.gz: a30b1f2eefc20f98eebb9c28fa10b912037ce08deca61fef0a4b3434a56b013e7b472e5d9a5a0160d25012e5aebb49bd5d79f3ed2d62aafd698a6aef1a5d30ee
7
- data.tar.gz: d58234dd3dfe67b7edfa094c00c3f940c26770efd48bc5d6e3a2634de811ccf4d7601e0773d9bebc4e8550e304ef125f8403cb4794d80ca06be0487c6d5f28d3