braintree 2.62.0 → 2.63.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: ccc28310db68797a5dd6a70a9383fa7af131a37b
4
+ data.tar.gz: cf4c892beca9c580c62942182660d86c36dccaa7
5
+ SHA512:
6
+ metadata.gz: f3d2f0ebfb757a1d010ee0097f05029fb6d56273daab64f3636dde838ca480312eba8e6a4f0f80f5ff6f296e52e048935cace24d89fb4900620a06e85f2f8af3
7
+ data.tar.gz: 386630e25f47f1753756a82507c7f4b772f5db49eb50436b9d0e4eff114b17be0b0863b97a634ed61dddfb90e846e0cb811e7ea5364083be0edb55a9793fcee0
@@ -4,6 +4,8 @@ module Braintree
4
4
 
5
5
  attr_reader :id, :amount, :exception_message, :disbursement_date, :follow_up_action, :merchant_account, :transaction_ids, :retry, :success
6
6
 
7
+ alias_method :success?, :success
8
+
7
9
  def initialize(gateway, attributes) # :nodoc:
8
10
  @gateway = gateway
9
11
  set_instance_variables_from_hash(attributes)
@@ -341,6 +341,11 @@ module Braintree
341
341
  ThreeDSecureAuthenticationFailed = "81571"
342
342
  ThreeDSecureTokenIsInvalid = "91568"
343
343
  ThreeDSecureTransactionDataDoesntMatchVerify = "91570"
344
+ ThreeDSecureEciFlagIsRequired = "915113"
345
+ ThreeDSecureCavvIsRequired = "915116"
346
+ ThreeDSecureXidIsRequired = "915115"
347
+ ThreeDSecureEciFlagIsInvalid = "915114"
348
+ ThreeDSecureMerchantAccountDoesNotSupportCardType = "915131"
344
349
  TypeIsInvalid = "91523"
345
350
  TypeIsRequired = "91524"
346
351
  UnsupportedVoiceAuthorization = "91539"
@@ -2,6 +2,8 @@ module Braintree
2
2
  class ResourceCollection # :nodoc:
3
3
  include Enumerable
4
4
 
5
+ attr_reader :ids
6
+
5
7
  def initialize(response, &block) # :nodoc:
6
8
  @ids = Util.extract_attribute_as_array(response[:search_results], :ids)
7
9
  @page_size = response[:search_results][:page_size]
@@ -179,12 +179,12 @@ module Braintree
179
179
  return_object_or_raise(:transaction) { hold_in_escrow(id) }
180
180
  end
181
181
 
182
- def self.refund(id, amount = nil)
183
- Configuration.gateway.transaction.refund(id, amount)
182
+ def self.refund(id, amount_or_options = nil)
183
+ Configuration.gateway.transaction.refund(id, amount_or_options)
184
184
  end
185
185
 
186
- def self.refund!(id, amount = nil)
187
- return_object_or_raise(:transaction) { refund(id, amount) }
186
+ def self.refund!(id, amount_or_options = nil)
187
+ return_object_or_raise(:transaction) { refund(id, amount_or_options) }
188
188
  end
189
189
 
190
190
  def self.sale(attributes)
@@ -5,6 +5,8 @@ module Braintree
5
5
 
6
6
  attr_reader :disbursement_date, :settlement_amount, :settlement_currency_iso_code, :settlement_currency_exchange_rate, :success
7
7
 
8
+ alias_method :success?, :success
9
+
8
10
  def initialize(attributes)
9
11
  set_instance_variables_from_hash attributes unless attributes.nil?
10
12
  end
@@ -13,10 +15,6 @@ module Braintree
13
15
  @funds_held
14
16
  end
15
17
 
16
- def success?
17
- @success
18
- end
19
-
20
18
  def valid?
21
19
  !disbursement_date.nil?
22
20
  end
@@ -61,8 +61,15 @@ module Braintree
61
61
  raise NotFoundError, "transaction with id #{id.inspect} not found"
62
62
  end
63
63
 
64
- def refund(transaction_id, amount = nil)
65
- response = @config.http.post("#{@config.base_merchant_path}/transactions/#{transaction_id}/refund", :transaction => {:amount => amount})
64
+ def refund(transaction_id, amount_or_options = nil)
65
+ options = if amount_or_options.is_a?(Hash)
66
+ amount_or_options
67
+ else
68
+ { :amount => amount_or_options }
69
+ end
70
+
71
+ Util.verify_keys(TransactionGateway._refund_signature, options)
72
+ response = @config.http.post("#{@config.base_merchant_path}/transactions/#{transaction_id}/refund", :transaction => options)
66
73
  _handle_transaction_response(response)
67
74
  end
68
75
 
@@ -146,6 +153,13 @@ module Braintree
146
153
  {
147
154
  :shipping => AddressGateway._shared_signature
148
155
  },
156
+ {
157
+ :three_d_secure_pass_thru => [
158
+ :eci_flag,
159
+ :cavv,
160
+ :xid,
161
+ ]
162
+ },
149
163
  {:options => [
150
164
  :hold_in_escrow,
151
165
  :store_in_vault,
@@ -185,6 +199,13 @@ module Braintree
185
199
  ]
186
200
  end
187
201
 
202
+ def self._refund_signature
203
+ [
204
+ :amount,
205
+ :order_id
206
+ ]
207
+ end
208
+
188
209
  def _do_create(path, params=nil) # :nodoc:
189
210
  response = @config.http.post("#{@config.base_merchant_path}#{path}", params)
190
211
  _handle_transaction_response(response)
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 62
4
+ Minor = 63
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
@@ -1 +1 @@
1
- 2502
1
+ 20821
@@ -19,7 +19,7 @@ describe Braintree::CreditCard do
19
19
  )
20
20
  result.success?.should == true
21
21
  credit_card = result.credit_card
22
- credit_card.token.should =~ /\A\w{4,5}\z/
22
+ credit_card.token.should =~ /\A\w{4,}\z/
23
23
  credit_card.bin.should == Braintree::Test::CreditCardNumbers::Visa[0, 6]
24
24
  credit_card.last_4.should == Braintree::Test::CreditCardNumbers::Visa[-4..-1]
25
25
  credit_card.expiration_date.should == "05/2009"
@@ -42,7 +42,7 @@ describe Braintree::Customer do
42
42
  :website => "www.microsoft.com"
43
43
  )
44
44
  result.success?.should == true
45
- result.customer.id.should =~ /^\d{6}$/
45
+ result.customer.id.should =~ /^\d{6,}$/
46
46
  result.customer.first_name.should == "Bill"
47
47
  result.customer.last_name.should == "Gates"
48
48
  result.customer.company.should == "Microsoft"
@@ -80,7 +80,7 @@ describe Braintree::Customer do
80
80
  :website => "www.example.com"
81
81
  )
82
82
  result.success?.should == true
83
- result.customer.id.should =~ /^\d{6}$/
83
+ result.customer.id.should =~ /^\d{6,}$/
84
84
  result.customer.first_name.should == "Joe"
85
85
  result.customer.last_name.should == "Brown"
86
86
  end
@@ -1683,6 +1683,101 @@ describe Braintree::Transaction do
1683
1683
  result.success?.should == false
1684
1684
  result.errors.for(:transaction).on(:three_d_secure_token)[0].code.should == Braintree::ErrorCodes::Transaction::ThreeDSecureTransactionDataDoesntMatchVerify
1685
1685
  end
1686
+
1687
+ it "can create a transaction with a three_d_secure_pass_thru" do
1688
+ result = Braintree::Transaction.create(
1689
+ :type => "sale",
1690
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1691
+ :credit_card => {
1692
+ :number => Braintree::Test::CreditCardNumbers::Visa,
1693
+ :expiration_date => "12/12",
1694
+ },
1695
+ :three_d_secure_pass_thru => {
1696
+ :eci_flag => "02",
1697
+ :cavv => "some_cavv",
1698
+ :xid => "some_xid",
1699
+ }
1700
+ )
1701
+
1702
+ result.success?.should == true
1703
+ result.transaction.status.should == Braintree::Transaction::Status::Authorized
1704
+ end
1705
+
1706
+ it "returns an error for transaction with three_d_secure_pass_thru when processor settings do not support 3DS for card type" do
1707
+ result = Braintree::Transaction.create(
1708
+ :merchant_account_id => "adyen_ma",
1709
+ :type => "sale",
1710
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1711
+ :credit_card => {
1712
+ :number => Braintree::Test::CreditCardNumbers::Visa,
1713
+ :expiration_date => "12/12",
1714
+ },
1715
+ :three_d_secure_pass_thru => {
1716
+ :eci_flag => "02",
1717
+ :cavv => "some_cavv",
1718
+ :xid => "some_xid",
1719
+ }
1720
+ )
1721
+ result.success?.should == false
1722
+ result.errors.for(:transaction).on(:merchant_account_id)[0].code.should == Braintree::ErrorCodes::Transaction::ThreeDSecureMerchantAccountDoesNotSupportCardType
1723
+ end
1724
+
1725
+ it "returns an error for transaction when the three_d_secure_pass_thru eci_flag is missing" do
1726
+ result = Braintree::Transaction.create(
1727
+ :type => "sale",
1728
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1729
+ :credit_card => {
1730
+ :number => Braintree::Test::CreditCardNumbers::Visa,
1731
+ :expiration_date => "12/12",
1732
+ },
1733
+ :three_d_secure_pass_thru => {
1734
+ :eci_flag => "",
1735
+ :cavv => "some_cavv",
1736
+ :xid => "some_xid",
1737
+ }
1738
+ )
1739
+ result.success?.should == false
1740
+ result.errors.for(:transaction).for(:three_d_secure_pass_thru).on(:eci_flag)[0].code.should == Braintree::ErrorCodes::Transaction::ThreeDSecureEciFlagIsRequired
1741
+ end
1742
+
1743
+ it "returns an error for transaction when the three_d_secure_pass_thru cavv or xid is missing" do
1744
+ result = Braintree::Transaction.create(
1745
+ :type => "sale",
1746
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1747
+ :credit_card => {
1748
+ :number => Braintree::Test::CreditCardNumbers::Visa,
1749
+ :expiration_date => "12/12",
1750
+ },
1751
+ :three_d_secure_pass_thru => {
1752
+ :eci_flag => "06",
1753
+ :cavv => "",
1754
+ :xid => "",
1755
+ }
1756
+ )
1757
+ result.success?.should == false
1758
+ result.errors.for(:transaction).for(:three_d_secure_pass_thru).on(:cavv)[0].code.should == Braintree::ErrorCodes::Transaction::ThreeDSecureCavvIsRequired
1759
+ result.errors.for(:transaction).for(:three_d_secure_pass_thru).on(:xid)[0].code.should == Braintree::ErrorCodes::Transaction::ThreeDSecureXidIsRequired
1760
+ end
1761
+
1762
+ it "returns an error for transaction when the three_d_secure_pass_thru eci_flag is invalid" do
1763
+ result = Braintree::Transaction.create(
1764
+ :type => "sale",
1765
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1766
+ :credit_card => {
1767
+ :number => Braintree::Test::CreditCardNumbers::Visa,
1768
+ :expiration_date => "12/12",
1769
+ },
1770
+ :three_d_secure_pass_thru => {
1771
+ :eci_flag => "bad_eci_flag",
1772
+ :cavv => "some_cavv",
1773
+ :xid => "some_xid",
1774
+ }
1775
+ )
1776
+ result.success?.should == false
1777
+ result.errors.for(:transaction).for(:three_d_secure_pass_thru).on(:eci_flag)[0].code.should == Braintree::ErrorCodes::Transaction::ThreeDSecureEciFlagIsInvalid
1778
+ end
1779
+
1780
+
1686
1781
  end
1687
1782
 
1688
1783
  context "paypal" do
@@ -1846,14 +1941,54 @@ describe Braintree::Transaction do
1846
1941
  transaction = Braintree::Transaction.find(transaction.id)
1847
1942
  transaction.refund_ids.sort.should == [transaction_1.id, transaction_2.id].sort
1848
1943
  end
1944
+
1945
+ it "allows partial refunds passed in an options hash" do
1946
+ transaction = create_paypal_transaction_for_refund
1947
+
1948
+ transaction_1 = Braintree::Transaction.refund(transaction.id, :amount => transaction.amount / 2).transaction
1949
+ transaction_2 = Braintree::Transaction.refund(transaction.id, :amount => transaction.amount / 2).transaction
1950
+
1951
+ transaction = Braintree::Transaction.find(transaction.id)
1952
+ transaction.refund_ids.sort.should == [transaction_1.id, transaction_2.id].sort
1953
+ end
1849
1954
  end
1850
1955
 
1851
1956
  it "returns a successful result if successful" do
1852
1957
  transaction = create_paypal_transaction_for_refund
1853
1958
 
1854
1959
  result = Braintree::Transaction.refund(transaction.id)
1960
+
1961
+ result.success?.should == true
1962
+ result.transaction.type.should == "credit"
1963
+ end
1964
+
1965
+ it "allows an order_id to be passed for the refund" do
1966
+ transaction = create_paypal_transaction_for_refund
1967
+
1968
+ result = Braintree::Transaction.refund(transaction.id, :order_id => "123458798123")
1969
+
1855
1970
  result.success?.should == true
1856
1971
  result.transaction.type.should == "credit"
1972
+ result.transaction.order_id.should == "123458798123"
1973
+ end
1974
+
1975
+ it "allows amount and order_id to be passed for the refund" do
1976
+ transaction = create_paypal_transaction_for_refund
1977
+
1978
+ result = Braintree::Transaction.refund(transaction.id, :amount => transaction.amount/2, :order_id => "123458798123")
1979
+
1980
+ result.success?.should == true
1981
+ result.transaction.type.should == "credit"
1982
+ result.transaction.order_id.should == "123458798123"
1983
+ result.transaction.amount.should == transaction.amount/2
1984
+ end
1985
+
1986
+ it "does not allow arbitrary options to be passed" do
1987
+ transaction = create_paypal_transaction_for_refund
1988
+
1989
+ expect {
1990
+ Braintree::Transaction.refund(transaction.id, :blah => "123458798123")
1991
+ }.to raise_error(ArgumentError)
1857
1992
  end
1858
1993
 
1859
1994
  it "assigns the refund_id on the original transaction" do
@@ -2199,9 +2334,9 @@ describe Braintree::Transaction do
2199
2334
  )
2200
2335
  result.success?.should == true
2201
2336
  transaction = result.transaction
2202
- transaction.customer_details.id.should =~ /\A\d{6,7}\z/
2337
+ transaction.customer_details.id.should =~ /\A\d{6,}\z/
2203
2338
  transaction.vault_customer.id.should == transaction.customer_details.id
2204
- transaction.credit_card_details.token.should =~ /\A\w{4,5}\z/
2339
+ transaction.credit_card_details.token.should =~ /\A\w{4,}\z/
2205
2340
  transaction.vault_credit_card.token.should == transaction.credit_card_details.token
2206
2341
  end
2207
2342
 
@@ -2234,7 +2369,7 @@ describe Braintree::Transaction do
2234
2369
  )
2235
2370
  result.success?.should == true
2236
2371
  transaction = result.transaction
2237
- transaction.customer_details.id.should =~ /\A\d{6,7}\z/
2372
+ transaction.customer_details.id.should =~ /\A\d{6,}\z/
2238
2373
  transaction.vault_customer.id.should == transaction.customer_details.id
2239
2374
  credit_card = Braintree::CreditCard.find(transaction.vault_credit_card.token)
2240
2375
  transaction.billing_details.id.should == credit_card.billing_address.id
@@ -2279,7 +2414,7 @@ describe Braintree::Transaction do
2279
2414
  )
2280
2415
  result.success?.should == true
2281
2416
  transaction = result.transaction
2282
- transaction.customer_details.id.should =~ /\A\d{6,7}\z/
2417
+ transaction.customer_details.id.should =~ /\A\d{6,}\z/
2283
2418
  transaction.vault_customer.id.should == transaction.customer_details.id
2284
2419
  transaction.vault_shipping_address.id.should == transaction.vault_customer.addresses[0].id
2285
2420
  shipping_address = transaction.vault_customer.addresses[0]
@@ -42,4 +42,38 @@ describe Braintree::Disbursement do
42
42
  disbursement.inspect.should include('success: false')
43
43
  end
44
44
  end
45
+
46
+ describe "success?" do
47
+ it "is an alias of success" do
48
+ disbursement = Braintree::Disbursement._new(
49
+ :gateway,
50
+ :merchant_account => {
51
+ :id => "sandbox_sub_merchant_account",
52
+ :master_merchant_account => {
53
+ :id => "sandbox_master_merchant_account",
54
+ :status => "active"
55
+ },
56
+ :status => "active"
57
+ },
58
+ :success => false,
59
+ :disbursement_date => "2013-04-10"
60
+ )
61
+ disbursement.success?.should == false
62
+
63
+ disbursement = Braintree::Disbursement._new(
64
+ :gateway,
65
+ :merchant_account => {
66
+ :id => "sandbox_sub_merchant_account",
67
+ :master_merchant_account => {
68
+ :id => "sandbox_master_merchant_account",
69
+ :status => "active"
70
+ },
71
+ :status => "active"
72
+ },
73
+ :success => true,
74
+ :disbursement_date => "2013-04-10"
75
+ )
76
+ disbursement.success?.should == true
77
+ end
78
+ end
45
79
  end
@@ -17,4 +17,16 @@ describe "Braintree::ResourceCollection" do
17
17
  count.should == 5
18
18
  end
19
19
  end
20
+
21
+ describe "#ids" do
22
+ it "returns a list of the resource collection ids" do
23
+ collection = Braintree::ResourceCollection.new(:search_results => {:ids => [0,1,2,3,4], :page_size => 2})
24
+ collection.ids.should == [0,1,2,3,4]
25
+ end
26
+ end
27
+
28
+ it "returns an empty array when the collection is empty" do
29
+ collection = Braintree::ResourceCollection.new(:search_results => {:page_size => 2})
30
+ collection.ids.should == []
31
+ end
20
32
  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.62.0
5
- prerelease:
4
+ version: 2.63.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Braintree
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2016-05-23 00:00:00.000000000 Z
11
+ date: 2016-06-23 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,229 +32,228 @@ extra_rdoc_files: []
35
32
  files:
36
33
  - README.rdoc
37
34
  - LICENSE
38
- - lib/braintree/paypal_account_gateway.rb
39
- - lib/braintree/account_updater_daily_report.rb
40
- - lib/braintree/webhook_notification_gateway.rb
35
+ - lib/braintree.rb
36
+ - lib/braintree/credit_card.rb
37
+ - lib/braintree/europe_bank_account_gateway.rb
41
38
  - lib/braintree/coinbase_account.rb
42
- - lib/braintree/payment_method_nonce_gateway.rb
43
- - lib/braintree/subscription.rb
44
- - lib/braintree/webhook_testing_gateway.rb
45
- - lib/braintree/merchant_gateway.rb
46
- - lib/braintree/payment_method_nonce.rb
47
- - lib/braintree/add_on_gateway.rb
48
- - lib/braintree/modification.rb
39
+ - lib/braintree/dispute/transaction_details.rb
40
+ - lib/braintree/address_gateway.rb
49
41
  - lib/braintree/merchant_account.rb
42
+ - lib/braintree/version.rb
43
+ - lib/braintree/plan_gateway.rb
44
+ - lib/braintree/settlement_batch_summary.rb
50
45
  - lib/braintree/test_transaction.rb
51
- - lib/braintree/validation_error_collection.rb
52
- - lib/braintree/europe_bank_account.rb
53
- - lib/braintree/merchant.rb
54
- - lib/braintree/amex_express_checkout_card.rb
55
- - lib/braintree/errors.rb
46
+ - lib/braintree/discount_gateway.rb
56
47
  - lib/braintree/plan.rb
57
- - lib/braintree/settlement_batch_summary_gateway.rb
58
- - lib/braintree/version.rb
59
- - lib/braintree/oauth_gateway.rb
60
- - lib/braintree/util.rb
61
- - lib/braintree/testing_gateway.rb
48
+ - lib/braintree/configuration.rb
49
+ - lib/braintree/customer.rb
50
+ - lib/braintree/europe_bank_account.rb
51
+ - lib/braintree/address/country_names.rb
62
52
  - lib/braintree/webhook_testing.rb
63
- - lib/braintree/payment_instrument_type.rb
64
- - lib/braintree/risk_data.rb
65
53
  - lib/braintree/apple_pay_card.rb
66
- - lib/braintree/disbursement.rb
67
- - lib/braintree/add_on.rb
68
- - lib/braintree/credit_card_verification_search.rb
69
- - lib/braintree/resource_collection.rb
70
- - lib/braintree/transparent_redirect.rb
71
- - lib/braintree/unknown_payment_method.rb
72
- - lib/braintree/address/country_names.rb
73
- - lib/braintree/client_token.rb
74
- - lib/braintree/webhook_notification.rb
75
- - lib/braintree/subscription_search.rb
76
- - lib/braintree/settlement_batch_summary.rb
77
- - lib/braintree/base_module.rb
78
- - lib/braintree/error_result.rb
79
- - lib/braintree/oauth_credentials.rb
80
- - lib/braintree/successful_result.rb
81
- - lib/braintree/configuration.rb
82
- - lib/braintree/credit_card_verification_gateway.rb
83
- - lib/braintree/merchant_account/business_details.rb
84
54
  - lib/braintree/merchant_account/individual_details.rb
85
- - lib/braintree/merchant_account/funding_details.rb
86
55
  - lib/braintree/merchant_account/address_details.rb
56
+ - lib/braintree/merchant_account/business_details.rb
57
+ - lib/braintree/merchant_account/funding_details.rb
58
+ - lib/braintree/account_updater_daily_report.rb
59
+ - lib/braintree/amex_express_checkout_card.rb
60
+ - lib/braintree/validation_error_collection.rb
87
61
  - lib/braintree/transparent_redirect_gateway.rb
88
- - lib/braintree/android_pay_card.rb
89
62
  - lib/braintree/http.rb
90
- - lib/braintree/settlement_batch.rb
91
- - lib/braintree/subscription_gateway.rb
92
- - lib/braintree/credit_card.rb
93
- - lib/braintree/customer_gateway.rb
63
+ - lib/braintree/errors.rb
64
+ - lib/braintree/paypal_account_gateway.rb
65
+ - lib/braintree/xml.rb
66
+ - lib/braintree/subscription/status_details.rb
67
+ - lib/braintree/unknown_payment_method.rb
68
+ - lib/braintree/subscription.rb
69
+ - lib/braintree/risk_data.rb
70
+ - lib/braintree/paypal_account.rb
71
+ - lib/braintree/transaction_gateway.rb
72
+ - lib/braintree/successful_result.rb
94
73
  - lib/braintree/xml/generator.rb
95
- - lib/braintree/xml/parser.rb
96
74
  - lib/braintree/xml/libxml.rb
75
+ - lib/braintree/xml/parser.rb
97
76
  - lib/braintree/xml/rexml.rb
77
+ - lib/braintree/credit_card_verification.rb
78
+ - lib/braintree/settlement_batch_summary_gateway.rb
79
+ - lib/braintree/client_token_gateway.rb
80
+ - lib/braintree/base_module.rb
81
+ - lib/braintree/customer_gateway.rb
82
+ - lib/braintree/testing_gateway.rb
83
+ - lib/braintree/credentials_parser.rb
84
+ - lib/braintree/advanced_search.rb
85
+ - lib/braintree/payment_method_nonce.rb
86
+ - lib/braintree/payment_method.rb
87
+ - lib/braintree/merchant_gateway.rb
88
+ - lib/braintree/client_token.rb
89
+ - lib/braintree/validation_error.rb
90
+ - lib/braintree/add_on_gateway.rb
91
+ - lib/braintree/signature_service.rb
92
+ - lib/braintree/merchant_account_gateway.rb
93
+ - lib/braintree/credit_card_verification_search.rb
94
+ - lib/braintree/resource_collection.rb
95
+ - lib/braintree/facilitator_details.rb
98
96
  - lib/braintree/transaction/amex_express_checkout_details.rb
99
- - lib/braintree/transaction/subscription_details.rb
100
- - lib/braintree/transaction/coinbase_details.rb
101
97
  - lib/braintree/transaction/venmo_account_details.rb
102
98
  - lib/braintree/transaction/disbursement_details.rb
103
- - lib/braintree/transaction/paypal_details.rb
99
+ - lib/braintree/transaction/credit_card_details.rb
104
100
  - lib/braintree/transaction/apple_pay_details.rb
105
- - lib/braintree/transaction/status_details.rb
106
101
  - lib/braintree/transaction/customer_details.rb
102
+ - lib/braintree/transaction/paypal_details.rb
107
103
  - lib/braintree/transaction/address_details.rb
104
+ - lib/braintree/transaction/status_details.rb
105
+ - lib/braintree/transaction/subscription_details.rb
106
+ - lib/braintree/transaction/coinbase_details.rb
108
107
  - lib/braintree/transaction/android_pay_details.rb
109
- - lib/braintree/transaction/credit_card_details.rb
110
- - lib/braintree/dispute/transaction_details.rb
111
- - lib/braintree/payment_method.rb
112
- - lib/braintree/transaction_search.rb
113
- - lib/braintree/descriptor.rb
114
- - lib/braintree/advanced_search.rb
115
- - lib/braintree/validation_error.rb
116
108
  - lib/braintree/three_d_secure_info.rb
117
- - lib/braintree/client_token_gateway.rb
118
- - lib/braintree/customer_search.rb
119
- - lib/braintree/address_gateway.rb
120
- - lib/braintree/credit_card_gateway.rb
121
- - lib/braintree/address.rb
122
- - lib/braintree/signature_service.rb
123
- - lib/braintree/plan_gateway.rb
124
- - lib/braintree/exceptions.rb
125
- - lib/braintree/gateway.rb
126
- - lib/braintree/discount.rb
127
- - lib/braintree/transaction.rb
128
- - lib/braintree/discount_gateway.rb
129
- - lib/braintree/xml.rb
130
- - lib/braintree/payment_method_gateway.rb
131
- - lib/braintree/merchant_account_gateway.rb
132
- - lib/braintree/credentials_parser.rb
133
- - lib/braintree/digest.rb
134
- - lib/braintree/subscription/status_details.rb
135
- - lib/braintree/europe_bank_account_gateway.rb
136
- - lib/braintree/credit_card_verification.rb
137
- - lib/braintree/transaction_gateway.rb
109
+ - lib/braintree/descriptor.rb
110
+ - lib/braintree/modification.rb
111
+ - lib/braintree/transparent_redirect.rb
138
112
  - lib/braintree/sha256_digest.rb
113
+ - lib/braintree/util.rb
139
114
  - lib/braintree/venmo_account.rb
140
- - lib/braintree/facilitator_details.rb
141
- - lib/braintree/dispute.rb
142
- - lib/braintree/error_codes.rb
143
- - lib/braintree/customer.rb
144
- - lib/braintree/paypal_account.rb
115
+ - lib/braintree/disbursement.rb
116
+ - lib/braintree/transaction.rb
117
+ - lib/braintree/payment_method_nonce_gateway.rb
118
+ - lib/braintree/test/credit_card.rb
145
119
  - lib/braintree/test/venmo_sdk.rb
146
120
  - lib/braintree/test/merchant_account.rb
147
121
  - lib/braintree/test/transaction_amounts.rb
148
122
  - lib/braintree/test/nonce.rb
149
- - lib/braintree/test/credit_card.rb
150
- - lib/braintree.rb
123
+ - lib/braintree/webhook_notification.rb
124
+ - lib/braintree/error_result.rb
125
+ - lib/braintree/settlement_batch.rb
126
+ - lib/braintree/credit_card_gateway.rb
127
+ - lib/braintree/payment_method_gateway.rb
128
+ - lib/braintree/subscription_gateway.rb
129
+ - lib/braintree/oauth_gateway.rb
130
+ - lib/braintree/digest.rb
131
+ - lib/braintree/transaction_search.rb
132
+ - lib/braintree/payment_instrument_type.rb
133
+ - lib/braintree/webhook_notification_gateway.rb
134
+ - lib/braintree/customer_search.rb
135
+ - lib/braintree/credit_card_verification_gateway.rb
136
+ - lib/braintree/merchant.rb
137
+ - lib/braintree/oauth_credentials.rb
138
+ - lib/braintree/discount.rb
139
+ - lib/braintree/address.rb
140
+ - lib/braintree/add_on.rb
141
+ - lib/braintree/error_codes.rb
142
+ - lib/braintree/exceptions.rb
143
+ - lib/braintree/gateway.rb
144
+ - lib/braintree/webhook_testing_gateway.rb
145
+ - lib/braintree/dispute.rb
146
+ - lib/braintree/android_pay_card.rb
147
+ - lib/braintree/subscription_search.rb
151
148
  - lib/ssl/securetrust_ca.crt
152
149
  - lib/ssl/api_braintreegateway_com.ca.crt
153
- - spec/integration/spec_helper.rb
154
- - spec/integration/braintree/transaction_search_spec.rb
155
- - spec/integration/braintree/oauth_spec.rb
156
- - spec/integration/braintree/paypal_account_spec.rb
157
- - spec/integration/braintree/advanced_search_spec.rb
158
- - spec/integration/braintree/disbursement_spec.rb
159
- - spec/integration/braintree/test_transaction_spec.rb
160
- - spec/integration/braintree/transaction_spec.rb
161
- - spec/integration/braintree/address_spec.rb
162
- - spec/integration/braintree/error_codes_spec.rb
163
- - spec/integration/braintree/merchant_spec.rb
164
- - spec/integration/braintree/credit_card_verification_search_spec.rb
165
- - spec/integration/braintree/customer_spec.rb
166
- - spec/integration/braintree/client_api/spec_helper.rb
167
- - spec/integration/braintree/client_api/client_token_spec.rb
168
- - spec/integration/braintree/payment_method_spec.rb
169
- - spec/integration/braintree/credit_card_verification_spec.rb
170
- - spec/integration/braintree/add_on_spec.rb
171
- - spec/integration/braintree/plan_spec.rb
172
- - spec/integration/braintree/subscription_spec.rb
173
- - spec/integration/braintree/merchant_account_spec.rb
174
- - spec/integration/braintree/transparent_redirect_spec.rb
175
- - spec/integration/braintree/customer_search_spec.rb
176
- - spec/integration/braintree/discount_spec.rb
177
- - spec/integration/braintree/credit_card_spec.rb
178
- - spec/integration/braintree/http_spec.rb
179
- - spec/integration/braintree/settlement_batch_summary_spec.rb
180
- - spec/integration/braintree/payment_method_nonce_spec.rb
181
- - spec/integration/braintree/coinbase_spec.rb
182
- - spec/integration/braintree/test/transaction_amounts_spec.rb
183
- - spec/script/httpsd.rb
184
- - spec/httpsd.pid
185
- - spec/spec.opts
186
- - spec/ssl/geotrust_global.crt
187
- - spec/ssl/privateKey.key
188
150
  - spec/ssl/certificate.crt
151
+ - spec/ssl/privateKey.key
152
+ - spec/ssl/geotrust_global.crt
189
153
  - spec/oauth_test_helper.rb
190
- - spec/spec_helper.rb
154
+ - spec/spec.opts
191
155
  - spec/unit/braintree_spec.rb
192
- - spec/unit/spec_helper.rb
193
- - spec/unit/braintree/successful_result_spec.rb
194
- - spec/unit/braintree/base_module_spec.rb
195
- - spec/unit/braintree/transaction_search_spec.rb
196
- - spec/unit/braintree/sha256_digest_spec.rb
197
- - spec/unit/braintree/modification_spec.rb
198
- - spec/unit/braintree/paypal_account_spec.rb
199
- - spec/unit/braintree/three_d_secure_info_spec.rb
156
+ - spec/unit/braintree/credit_card_spec.rb
157
+ - spec/unit/braintree/credentials_parser_spec.rb
200
158
  - spec/unit/braintree/xml_spec.rb
159
+ - spec/unit/braintree/util_spec.rb
201
160
  - spec/unit/braintree/error_result_spec.rb
202
- - spec/unit/braintree/risk_data_spec.rb
203
- - spec/unit/braintree/disbursement_spec.rb
161
+ - spec/unit/braintree/successful_result_spec.rb
204
162
  - spec/unit/braintree/webhook_notification_spec.rb
205
- - spec/unit/braintree/transaction_spec.rb
206
- - spec/unit/braintree/address_spec.rb
207
- - spec/unit/braintree/util_spec.rb
208
- - spec/unit/braintree/configuration_spec.rb
209
- - spec/unit/braintree/validation_error_collection_spec.rb
210
- - spec/unit/braintree/credit_card_verification_search_spec.rb
211
- - spec/unit/braintree/dispute_spec.rb
212
- - spec/unit/braintree/xml/rexml_spec.rb
213
- - spec/unit/braintree/xml/parser_spec.rb
214
- - spec/unit/braintree/xml/libxml_spec.rb
215
- - spec/unit/braintree/transaction/customer_details_spec.rb
216
- - spec/unit/braintree/transaction/credit_card_details_spec.rb
217
- - spec/unit/braintree/transaction/deposit_details_spec.rb
163
+ - spec/unit/braintree/validation_error_spec.rb
218
164
  - spec/unit/braintree/customer_spec.rb
219
- - spec/unit/braintree/payment_method_spec.rb
220
- - spec/unit/braintree/credit_card_verification_spec.rb
221
- - spec/unit/braintree/credentials_parser_spec.rb
165
+ - spec/unit/braintree/modification_spec.rb
166
+ - spec/unit/braintree/dispute_spec.rb
167
+ - spec/unit/braintree/credit_card_verification_search_spec.rb
168
+ - spec/unit/braintree/transaction_spec.rb
169
+ - spec/unit/braintree/disbursement_spec.rb
222
170
  - spec/unit/braintree/client_token_spec.rb
223
- - spec/unit/braintree/validation_error_spec.rb
224
- - spec/unit/braintree/errors_spec.rb
225
- - spec/unit/braintree/signature_service_spec.rb
226
- - spec/unit/braintree/resource_collection_spec.rb
171
+ - spec/unit/braintree/xml/libxml_spec.rb
172
+ - spec/unit/braintree/xml/parser_spec.rb
173
+ - spec/unit/braintree/xml/rexml_spec.rb
174
+ - spec/unit/braintree/merchant_account_spec.rb
175
+ - spec/unit/braintree/base_module_spec.rb
227
176
  - spec/unit/braintree/apple_pay_card_spec.rb
177
+ - spec/unit/braintree/signature_service_spec.rb
228
178
  - spec/unit/braintree/subscription_spec.rb
229
- - spec/unit/braintree/merchant_account_spec.rb
230
179
  - spec/unit/braintree/transparent_redirect_spec.rb
231
- - spec/unit/braintree/credit_card_spec.rb
180
+ - spec/unit/braintree/paypal_account_spec.rb
181
+ - spec/unit/braintree/address_spec.rb
182
+ - spec/unit/braintree/risk_data_spec.rb
183
+ - spec/unit/braintree/validation_error_collection_spec.rb
184
+ - spec/unit/braintree/errors_spec.rb
185
+ - spec/unit/braintree/transaction/credit_card_details_spec.rb
186
+ - spec/unit/braintree/transaction/customer_details_spec.rb
187
+ - spec/unit/braintree/transaction/deposit_details_spec.rb
232
188
  - spec/unit/braintree/http_spec.rb
189
+ - spec/unit/braintree/configuration_spec.rb
190
+ - spec/unit/braintree/digest_spec.rb
233
191
  - spec/unit/braintree/unknown_payment_method_spec.rb
192
+ - spec/unit/braintree/payment_method_spec.rb
193
+ - spec/unit/braintree/resource_collection_spec.rb
194
+ - spec/unit/braintree/three_d_secure_info_spec.rb
195
+ - spec/unit/braintree/transaction_search_spec.rb
196
+ - spec/unit/braintree/sha256_digest_spec.rb
197
+ - spec/unit/braintree/credit_card_verification_spec.rb
234
198
  - spec/unit/braintree/subscription_search_spec.rb
235
- - spec/unit/braintree/digest_spec.rb
199
+ - spec/unit/spec_helper.rb
200
+ - spec/integration/braintree/credit_card_spec.rb
201
+ - spec/integration/braintree/test_transaction_spec.rb
202
+ - spec/integration/braintree/oauth_spec.rb
203
+ - spec/integration/braintree/customer_spec.rb
204
+ - spec/integration/braintree/plan_spec.rb
205
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
206
+ - spec/integration/braintree/add_on_spec.rb
207
+ - spec/integration/braintree/transaction_spec.rb
208
+ - spec/integration/braintree/disbursement_spec.rb
209
+ - spec/integration/braintree/error_codes_spec.rb
210
+ - spec/integration/braintree/merchant_account_spec.rb
211
+ - spec/integration/braintree/subscription_spec.rb
212
+ - spec/integration/braintree/transparent_redirect_spec.rb
213
+ - spec/integration/braintree/paypal_account_spec.rb
214
+ - spec/integration/braintree/address_spec.rb
215
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
216
+ - spec/integration/braintree/payment_method_nonce_spec.rb
217
+ - spec/integration/braintree/http_spec.rb
218
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
219
+ - spec/integration/braintree/client_api/client_token_spec.rb
220
+ - spec/integration/braintree/client_api/spec_helper.rb
221
+ - spec/integration/braintree/payment_method_spec.rb
222
+ - spec/integration/braintree/customer_search_spec.rb
223
+ - spec/integration/braintree/advanced_search_spec.rb
224
+ - spec/integration/braintree/discount_spec.rb
225
+ - spec/integration/braintree/transaction_search_spec.rb
226
+ - spec/integration/braintree/credit_card_verification_spec.rb
227
+ - spec/integration/braintree/coinbase_spec.rb
228
+ - spec/integration/braintree/merchant_spec.rb
229
+ - spec/integration/spec_helper.rb
230
+ - spec/script/httpsd.rb
231
+ - spec/httpsd.pid
236
232
  - spec/hacks/tcp_socket.rb
233
+ - spec/spec_helper.rb
237
234
  - braintree.gemspec
238
235
  homepage: http://www.braintreepayments.com/
239
236
  licenses:
240
237
  - MIT
238
+ metadata: {}
241
239
  post_install_message:
242
240
  rdoc_options: []
243
241
  require_paths:
244
242
  - lib
245
243
  required_ruby_version: !ruby/object:Gem::Requirement
246
- none: false
247
244
  requirements:
248
- - - ! '>='
245
+ - - '>='
249
246
  - !ruby/object:Gem::Version
250
247
  version: '0'
251
248
  required_rubygems_version: !ruby/object:Gem::Requirement
252
- none: false
253
249
  requirements:
254
- - - ! '>='
250
+ - - '>='
255
251
  - !ruby/object:Gem::Version
256
252
  version: '0'
257
253
  requirements: []
258
254
  rubyforge_project: braintree
259
- rubygems_version: 1.8.23
255
+ rubygems_version: 2.1.11
260
256
  signing_key:
261
- specification_version: 3
257
+ specification_version: 4
262
258
  summary: Braintree Gateway Ruby Client Library
263
259
  test_files: []