braintree 2.72.0 → 2.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- data.tar.gz: e0c30958ea223548529c4d7eb4f3030dc34ee236
4
- metadata.gz: 118da61d6bea46214dc3f46efb5dc3868d97bf7f
5
- SHA512:
6
- data.tar.gz: 0e8164250497e1aa2c329b6160d870821d0fc953478784461d954ff26818e3060120df77dd41a7e8e2cb04412aac6379ec68264296ac462d1473c6dac0b08565
7
- metadata.gz: 2cea570545296d0e15901be01f0ba4ea56f6d79ef2a2fb8ab31989cedb2da800b6c192f298c4bc942bc66ab054b88072c0ae6c82503b41b5ef59b53e79be1234
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7f6ee2ba1e40805f4be4b05e4668952bfafca47d
4
+ data.tar.gz: 6e04b5891b64c947ce4f4557c8d8e01318439041
5
+ SHA512:
6
+ metadata.gz: 19a0991dc5790359da43c5caeb38850dd57d0eb4de82fd5e7f4a1e927bd8a404d5b6f2fdbdf5ca83e613d9c9f19fea0acf03314a1d6d17233f35325ffc2f921c
7
+ data.tar.gz: e5db9430c89fa04586fb4495bf68d956d95020ee2a75639b9dd92ec5e26c0dd442df43a8de875ef3e0fc67bf221092b9060352311a5a3f2909bac41ff6c713af
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2014 Braintree, a division of PayPal, Inc.
1
+ Copyright (c) 2009-2017 Braintree, a division of PayPal, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
@@ -1,4 +1,4 @@
1
- = Braintree Ruby Server Library
1
+ = Braintree Ruby SDK
2
2
 
3
3
  The Braintree gem provides integration access to the Braintree Gateway.
4
4
 
@@ -257,6 +257,7 @@ module Braintree
257
257
  module Transaction
258
258
  AmountCannotBeNegative = "81501"
259
259
  AmountDoesNotMatch3DSecureAmount = "91585"
260
+ AmountDoesNotMatchIdealPaymentAmount = "915144"
260
261
  AmountFormatIsInvalid = "81503" # Keep for backwards compatibility
261
262
  AmountIsInvalid = "81503" # Keep for backwards compatibility
262
263
  AmountIsRequired = "81502"
@@ -291,13 +292,15 @@ module Braintree
291
292
  CustomerIdIsInvalid = "91510"
292
293
  HasAlreadyBeenRefunded = "91512"
293
294
  IdealPaymentNotComplete = "815141"
294
- IdealPaymentAlreadyConsumed = "815142"
295
295
  MerchantAccountDoesNotMatch3DSecureMerchantAccount = "91584"
296
+ MerchantAccountDoesNotMatchIdealPaymentMerchantAccount = "915143"
296
297
  MerchantAccountDoesNotSupportMOTO = "91558"
297
298
  MerchantAccountDoesNotSupportRefunds = "91547"
298
299
  MerchantAccountIdIsInvalid = "91513"
299
300
  MerchantAccountIsSuspended = "91514"
300
301
  OrderIdIsTooLong = "91501"
302
+ OrderIdIsRequiredWithIdealPayment = "91502"
303
+ OrderIdDoesNotMatchIdealPaymentOrderId = "91503"
301
304
  PayPalAuthExpired = "91579"
302
305
  PayPalNotEnabled = "91576"
303
306
  PayPalVaultRecordMissingData = "91583"
@@ -7,7 +7,7 @@ module Braintree
7
7
  def initialize(gateway, attributes) # :nodoc:
8
8
  @gateway = gateway
9
9
  set_instance_variables_from_hash(attributes)
10
- @iban_bank_account = IbanBankAccount.new(attributes[:iban_bank_account])
10
+ @iban_bank_account = IbanBankAccount.new(attributes[:iban_bank_account]) if attributes[:iban_bank_account]
11
11
  end
12
12
 
13
13
  class << self
@@ -3,9 +3,10 @@ module Braintree
3
3
  class CreditCardDetails # :nodoc:
4
4
  include BaseModule
5
5
 
6
- attr_reader :bin, :card_type, :cardholder_name, :customer_location, :expiration_month,
7
- :expiration_year, :last_4, :token, :prepaid, :healthcare, :durbin_regulated, :debit,
8
- :commercial, :payroll, :product_id, :country_of_issuance, :issuing_bank, :image_url
6
+ attr_reader :bin, :card_type, :cardholder_name, :commercial, :country_of_issuance,
7
+ :customer_location, :debit, :durbin_regulated, :expiration_month, :expiration_year,
8
+ :healthcare, :image_url, :issuing_bank, :last_4, :payroll, :prepaid, :product_id,
9
+ :token, :unique_number_identifier
9
10
 
10
11
  def initialize(attributes)
11
12
  set_instance_variables_from_hash attributes unless attributes.nil?
@@ -17,7 +18,7 @@ module Braintree
17
18
 
18
19
  def inspect
19
20
  attr_order = [:token, :bin, :last_4, :card_type, :expiration_date, :cardholder_name, :customer_location, :prepaid,
20
- :healthcare, :durbin_regulated, :debit, :commercial, :payroll, :product_id, :country_of_issuance, :issuing_bank, :image_url]
21
+ :healthcare, :durbin_regulated, :debit, :commercial, :payroll, :product_id, :country_of_issuance, :issuing_bank, :image_url, :unique_number_identifier]
21
22
  formatted_attrs = attr_order.map do |attr|
22
23
  "#{attr}: #{send(attr).inspect}"
23
24
  end
@@ -1,7 +1,7 @@
1
1
  module Braintree
2
2
  module Version
3
3
  Major = 2
4
- Minor = 72
4
+ Minor = 73
5
5
  Tiny = 0
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
@@ -32,9 +32,12 @@ module Braintree
32
32
  PartnerMerchantDeclined = "partner_merchant_declined"
33
33
 
34
34
  AccountUpdaterDailyReport = "account_updater_daily_report"
35
+
36
+ IdealPaymentComplete = "ideal_payment_complete"
37
+ IdealPaymentFailed = "ideal_payment_failed"
35
38
  end
36
39
 
37
- attr_reader :subscription, :kind, :timestamp, :transaction, :partner_merchant, :disbursement, :dispute, :account_updater_daily_report
40
+ attr_reader :subscription, :kind, :timestamp, :transaction, :partner_merchant, :disbursement, :dispute, :account_updater_daily_report, :ideal_payment
38
41
 
39
42
  def self.parse(signature, payload)
40
43
  Configuration.gateway.webhook_notification.parse(signature, payload)
@@ -55,6 +58,7 @@ module Braintree
55
58
  @disbursement = Disbursement._new(gateway, @subject[:disbursement]) if @subject.has_key?(:disbursement)
56
59
  @dispute = Dispute._new(@subject[:dispute]) if @subject.has_key?(:dispute)
57
60
  @account_updater_daily_report = AccountUpdaterDailyReport._new(@subject[:account_updater_daily_report]) if @subject.has_key?(:account_updater_daily_report)
61
+ @ideal_payment = Braintree::IdealPayment._new(gateway, @subject[:ideal_payment]) if @subject.has_key?(:ideal_payment)
58
62
  end
59
63
 
60
64
  def merchant_account
@@ -59,6 +59,10 @@ module Braintree
59
59
  _subscription_charged_successfully(id)
60
60
  when Braintree::WebhookNotification::Kind::AccountUpdaterDailyReport
61
61
  _account_updater_daily_report_sample_xml(id)
62
+ when Braintree::WebhookNotification::Kind::IdealPaymentComplete
63
+ _ideal_payment_complete_sample_xml(id)
64
+ when Braintree::WebhookNotification::Kind::IdealPaymentFailed
65
+ _ideal_payment_failed_sample_xml(id)
62
66
  else
63
67
  _subscription_sample_xml(id)
64
68
  end
@@ -206,7 +210,6 @@ module Braintree
206
210
  <routing-number>123456789</routing-number>
207
211
  <last-4>1234</last-4>
208
212
  <account-type>checking</account-type>
209
- <account-description>PayPal Checking - 1234</account-description>
210
213
  <account-holder-name>Dan Schulman</account-holder-name>
211
214
  </us-bank-account>
212
215
  </transaction>
@@ -227,7 +230,6 @@ module Braintree
227
230
  <routing-number>123456789</routing-number>
228
231
  <last-4>1234</last-4>
229
232
  <account-type>checking</account-type>
230
- <account-description>PayPal Checking - 1234</account-description>
231
233
  <account-holder-name>Dan Schulman</account-holder-name>
232
234
  </us-bank-account>
233
235
  </transaction>
@@ -357,5 +359,48 @@ module Braintree
357
359
  </account-updater-daily-report>
358
360
  XML
359
361
  end
362
+
363
+ def _ideal_payment_complete_sample_xml(id)
364
+
365
+ <<-XML
366
+ <ideal-payment>
367
+ <id>#{id}</id>
368
+ <status>COMPLETE</status>
369
+ <issuer>ABCISSUER</issuer>
370
+ <order-id>ORDERABC</order-id>
371
+ <currency>EUR</currency>
372
+ <amount>10.00</amount>
373
+ <created-at>2016-11-29T23:27:34.547Z</created-at>
374
+ <iban-bank-account>
375
+ <created-at>2016-11-29T23:27:36.386Z</created-at>
376
+ <description>DESCRIPTION ABC</description>
377
+ <bic>XXXXNLXX</bic>
378
+ <iban-country>11</iban-country>
379
+ <iban-account-number-last-4>0000</iban-account-number-last-4>
380
+ <masked-iban>NL************0000</masked-iban>
381
+ <account-holder-name>Account Holder</account-holder-name>
382
+ </iban-bank-account>
383
+ <approval-url>https://example.com</approval-url>
384
+ <ideal-transaction-id>1234567890</ideal-transaction-id>
385
+ </ideal-payment>
386
+ XML
387
+ end
388
+
389
+ def _ideal_payment_failed_sample_xml(id)
390
+
391
+ <<-XML
392
+ <ideal-payment>
393
+ <id>#{id}</id>
394
+ <status>FAILED</status>
395
+ <issuer>ABCISSUER</issuer>
396
+ <order-id>ORDERABC</order-id>
397
+ <currency>EUR</currency>
398
+ <amount>10.00</amount>
399
+ <created-at>2016-11-29T23:27:34.547Z</created-at>
400
+ <approval-url>https://example.com</approval-url>
401
+ <ideal-transaction-id>1234567890</ideal-transaction-id>
402
+ </ideal-payment>
403
+ XML
404
+ end
360
405
  end
361
406
  end
@@ -1 +1 @@
1
- 8656
1
+ 12403
@@ -162,12 +162,14 @@ describe Braintree::ClientToken do
162
162
  end
163
163
 
164
164
  it "can pass merchant_account_id" do
165
+ merchant_account_id = SpecHelper::NonDefaultMerchantAccountId
166
+
165
167
  raw_client_token = Braintree::ClientToken.generate(
166
- :merchant_account_id => "my_merchant_account"
168
+ :merchant_account_id => merchant_account_id
167
169
  )
168
170
  client_token = decode_client_token(raw_client_token)
169
171
 
170
- client_token["merchantAccountId"].should == "my_merchant_account"
172
+ client_token["merchantAccountId"].should == merchant_account_id
171
173
  end
172
174
 
173
175
  context "paypal" do
@@ -1085,6 +1085,24 @@ describe Braintree::PaymentMethod do
1085
1085
  update_result.credit_card_verification.gateway_rejection_reason.should be_nil
1086
1086
  end
1087
1087
 
1088
+ it "accepts a custom verification amount" do
1089
+ customer = Braintree::Customer.create!
1090
+ credit_card = Braintree::CreditCard.create!(
1091
+ :cardholder_name => "Card Holder",
1092
+ :customer_id => customer.id,
1093
+ :cvv => "123",
1094
+ :number => Braintree::Test::CreditCardNumbers::Visa,
1095
+ :expiration_date => "05/2020"
1096
+ )
1097
+ update_result = Braintree::PaymentMethod.update(credit_card.token,
1098
+ :payment_method_nonce => Braintree::Test::Nonce::ProcessorDeclinedMasterCard,
1099
+ :options => {:verify_card => true, :verification_amount => "2.34"}
1100
+ )
1101
+ update_result.success?.should == false
1102
+ update_result.credit_card_verification.status.should == Braintree::Transaction::Status::ProcessorDeclined
1103
+ update_result.credit_card_verification.gateway_rejection_reason.should be_nil
1104
+ end
1105
+
1088
1106
  it "can update the billing address" do
1089
1107
  customer = Braintree::Customer.create!
1090
1108
  credit_card = Braintree::CreditCard.create!(
@@ -840,6 +840,7 @@ describe Braintree::Transaction do
840
840
  result.success?.should == true
841
841
  result.transaction.credit_card_details.masked_number.should == "401288******1881"
842
842
  result.transaction.vault_credit_card.masked_number.should == "401288******1881"
843
+ result.transaction.credit_card_details.unique_number_identifier.should_not be_nil
843
844
  end
844
845
  end
845
846
 
@@ -1091,6 +1092,7 @@ describe Braintree::Transaction do
1091
1092
  result.success?.should == true
1092
1093
  result.transaction.vault_customer.last_name.should == "Doe"
1093
1094
  result.transaction.vault_credit_card.masked_number.should == "401288******1881"
1095
+ result.transaction.credit_card_details.unique_number_identifier.should_not be_nil
1094
1096
  end
1095
1097
 
1096
1098
  it "does not store vault records when true and transaction fails" do
@@ -1804,7 +1806,6 @@ describe Braintree::Transaction do
1804
1806
  )
1805
1807
  result.success?.should == false
1806
1808
  result.errors.for(:transaction).for(:three_d_secure_pass_thru).on(:cavv)[0].code.should == Braintree::ErrorCodes::Transaction::ThreeDSecureCavvIsRequired
1807
- result.errors.for(:transaction).for(:three_d_secure_pass_thru).on(:xid)[0].code.should == Braintree::ErrorCodes::Transaction::ThreeDSecureXidIsRequired
1808
1809
  end
1809
1810
 
1810
1811
  it "returns an error for transaction when the three_d_secure_pass_thru eci_flag is invalid" do
@@ -2237,7 +2238,7 @@ describe Braintree::Transaction do
2237
2238
  )
2238
2239
 
2239
2240
  result.success?.should == false
2240
- result.errors.for(:transaction).on(:ideal_payment)[0].code.should == Braintree::ErrorCodes::Transaction::IdealPaymentNotComplete
2241
+ result.errors.for(:transaction).on(:payment_method_nonce)[0].code.should == Braintree::ErrorCodes::Transaction::IdealPaymentNotComplete
2241
2242
  end
2242
2243
  end
2243
2244
  end
@@ -2614,6 +2615,22 @@ describe Braintree::Transaction do
2614
2615
  shipping_address.country_name.should == "United States of America"
2615
2616
  end
2616
2617
 
2618
+ it "stores a unique number identifier in the vault" do
2619
+ result = Braintree::Transaction.sale(
2620
+ :amount => "100",
2621
+ :credit_card => {
2622
+ :number => "5105105105105100",
2623
+ :expiration_date => "05/2012"
2624
+ },
2625
+ :options => { :store_in_vault => true }
2626
+ )
2627
+
2628
+ result.success?.should == true
2629
+
2630
+ transaction = result.transaction
2631
+ transaction.credit_card_details.unique_number_identifier.should_not be_nil
2632
+ end
2633
+
2617
2634
  it "submits for settlement if given transaction[options][submit_for_settlement]" do
2618
2635
  result = Braintree::Transaction.sale(
2619
2636
  :amount => "100",
@@ -3882,6 +3899,24 @@ describe Braintree::Transaction do
3882
3899
  found_transaction.should == created_transaction
3883
3900
  end
3884
3901
 
3902
+ it "finds the vaulted transaction with the given id" do
3903
+ result = Braintree::Transaction.create(
3904
+ :type => "sale",
3905
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
3906
+ :credit_card => {
3907
+ :number => Braintree::Test::CreditCardNumbers::Visa,
3908
+ :expiration_date => "05/2009"
3909
+ },
3910
+ :options => { :store_in_vault => true }
3911
+ )
3912
+ result.success?.should == true
3913
+ created_transaction = result.transaction
3914
+ found_transaction = Braintree::Transaction.find(created_transaction.id)
3915
+ found_transaction.should == created_transaction
3916
+
3917
+ found_transaction.credit_card_details.unique_number_identifier.should_not be_nil
3918
+ end
3919
+
3885
3920
  it "raises a NotFoundError exception if transaction cannot be found" do
3886
3921
  expect do
3887
3922
  Braintree::Transaction.find("invalid-id")
@@ -4519,7 +4554,7 @@ describe Braintree::Transaction do
4519
4554
  result.success?.should == true
4520
4555
  result.transaction.paypal_details.payer_email.should == "payer@example.com"
4521
4556
  result.transaction.paypal_details.payment_id.should match(/PAY-\w+/)
4522
- result.transaction.paypal_details.authorization_id.should match(/SALE-\w+/)
4557
+ result.transaction.paypal_details.authorization_id.should match(/AUTH-\w+/)
4523
4558
  result.transaction.paypal_details.image_url.should_not be_nil
4524
4559
  end
4525
4560
 
@@ -4535,7 +4570,7 @@ describe Braintree::Transaction do
4535
4570
  result.transaction.paypal_details.token.should_not be_nil
4536
4571
  result.transaction.paypal_details.payer_email.should == "payer@example.com"
4537
4572
  result.transaction.paypal_details.payment_id.should match(/PAY-\w+/)
4538
- result.transaction.paypal_details.authorization_id.should match(/SALE-\w+/)
4573
+ result.transaction.paypal_details.authorization_id.should match(/AUTH-\w+/)
4539
4574
  end
4540
4575
 
4541
4576
  it "can create a transaction from a vaulted paypal account" do
@@ -4559,7 +4594,7 @@ describe Braintree::Transaction do
4559
4594
  result.transaction.paypal_details.token.should == payment_method_token
4560
4595
  result.transaction.paypal_details.payer_email.should == "payer@example.com"
4561
4596
  result.transaction.paypal_details.payment_id.should match(/PAY-\w+/)
4562
- result.transaction.paypal_details.authorization_id.should match(/SALE-\w+/)
4597
+ result.transaction.paypal_details.authorization_id.should match(/AUTH-\w+/)
4563
4598
  end
4564
4599
 
4565
4600
  context "validation failure" do
@@ -31,11 +31,11 @@ describe Braintree::Transaction::CreditCardDetails do
31
31
  :product_id => "Unknown",
32
32
  :country_of_issuance => "Lilliput",
33
33
  :issuing_bank => "Gulliver Bank",
34
- :image_url => "example.com/visa.png"
34
+ :image_url => "example.com/visa.png",
35
+ :unique_number_identifier => "abc123"
35
36
  )
36
- details.inspect.should == %(#<token: "token", bin: "123456", last_4: "6789", card_type: "Visa", expiration_date: "05/2012", cardholder_name: "The Cardholder", customer_location: "US", prepaid: "Yes", healthcare: "No", durbin_regulated: "No", debit: "Yes", commercial: "Unknown", payroll: "Unknown", product_id: "Unknown", country_of_issuance: "Lilliput", issuing_bank: "Gulliver Bank", image_url: "example.com/visa.png">)
37
+ details.inspect.should == %(#<token: "token", bin: "123456", last_4: "6789", card_type: "Visa", expiration_date: "05/2012", cardholder_name: "The Cardholder", customer_location: "US", prepaid: "Yes", healthcare: "No", durbin_regulated: "No", debit: "Yes", commercial: "Unknown", payroll: "Unknown", product_id: "Unknown", country_of_issuance: "Lilliput", issuing_bank: "Gulliver Bank", image_url: "example.com/visa.png", unique_number_identifier: "abc123">)
37
38
  end
38
-
39
39
  end
40
40
 
41
41
  describe "masked_number" do
@@ -202,6 +202,50 @@ describe Braintree::WebhookNotification do
202
202
  end
203
203
  end
204
204
 
205
+ context "ideal payments" do
206
+ it "builds a sample notification for a ideal_payment_complete complete webhook" do
207
+ sample_notification = Braintree::WebhookTesting.sample_notification(
208
+ Braintree::WebhookNotification::Kind::IdealPaymentComplete,
209
+ "my_id"
210
+ )
211
+
212
+ notification = Braintree::WebhookNotification.parse(sample_notification[:bt_signature], sample_notification[:bt_payload])
213
+ notification.kind.should == Braintree::WebhookNotification::Kind::IdealPaymentComplete
214
+ ideal_payment = notification.ideal_payment
215
+
216
+ ideal_payment.id.should == "my_id"
217
+ ideal_payment.status.should == "COMPLETE"
218
+ ideal_payment.order_id.should == "ORDERABC"
219
+ ideal_payment.amount.should == "10.00"
220
+ ideal_payment.approval_url.should == "https://example.com"
221
+ ideal_payment.ideal_transaction_id.should == "1234567890"
222
+ ideal_payment.iban_bank_account.description.should == "DESCRIPTION ABC"
223
+ ideal_payment.iban_bank_account.bic.should == "XXXXNLXX"
224
+ ideal_payment.iban_bank_account.iban_country.should == "11"
225
+ ideal_payment.iban_bank_account.iban_account_number_last_4.should == "0000"
226
+ ideal_payment.iban_bank_account.masked_iban.should == "NL************0000"
227
+ ideal_payment.iban_bank_account.account_holder_name.should == "Account Holder"
228
+ end
229
+
230
+ it "builds a sample notification for a ideal_payment_failed webhook" do
231
+ sample_notification = Braintree::WebhookTesting.sample_notification(
232
+ Braintree::WebhookNotification::Kind::IdealPaymentFailed,
233
+ "my_id"
234
+ )
235
+
236
+ notification = Braintree::WebhookNotification.parse(sample_notification[:bt_signature], sample_notification[:bt_payload])
237
+ notification.kind.should == Braintree::WebhookNotification::Kind::IdealPaymentFailed
238
+ ideal_payment = notification.ideal_payment
239
+
240
+ ideal_payment.id.should == "my_id"
241
+ ideal_payment.status.should == "FAILED"
242
+ ideal_payment.order_id.should == "ORDERABC"
243
+ ideal_payment.amount.should == "10.00"
244
+ ideal_payment.approval_url.should == "https://example.com"
245
+ ideal_payment.ideal_transaction_id.should == "1234567890"
246
+ end
247
+ end
248
+
205
249
  context "merchant account" do
206
250
  it "builds a sample notification for a merchant account approved webhook" do
207
251
  sample_notification = Braintree::WebhookTesting.sample_notification(
metadata CHANGED
@@ -1,274 +1,271 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
- version: !ruby/object:Gem::Version
4
- version: 2.72.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.73.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Braintree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2017-01-14 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: builder
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
19
17
  - - ">="
20
- - !ruby/object:Gem::Version
18
+ - !ruby/object:Gem::Version
21
19
  version: 2.0.0
22
20
  type: :runtime
23
- version_requirements: *id001
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.0
24
27
  description: Ruby library for integrating with the Braintree Gateway
25
28
  email: code@getbraintree.com
26
29
  executables: []
27
-
28
30
  extensions: []
29
-
30
31
  extra_rdoc_files: []
31
-
32
- files:
33
- - README.rdoc
32
+ files:
34
33
  - LICENSE
35
- - lib/braintree/credit_card_verification.rb
36
- - lib/braintree/venmo_account.rb
34
+ - README.rdoc
35
+ - braintree.gemspec
36
+ - lib/braintree.rb
37
+ - lib/braintree/account_updater_daily_report.rb
38
+ - lib/braintree/ach_mandate.rb
39
+ - lib/braintree/add_on.rb
40
+ - lib/braintree/add_on_gateway.rb
41
+ - lib/braintree/address.rb
42
+ - lib/braintree/address/country_names.rb
43
+ - lib/braintree/address_gateway.rb
37
44
  - lib/braintree/advanced_search.rb
38
- - lib/braintree/payment_method.rb
39
- - lib/braintree/payment_method_nonce_gateway.rb
45
+ - lib/braintree/amex_express_checkout_card.rb
46
+ - lib/braintree/android_pay_card.rb
47
+ - lib/braintree/apple_pay_card.rb
48
+ - lib/braintree/base_module.rb
49
+ - lib/braintree/client_token.rb
50
+ - lib/braintree/client_token_gateway.rb
51
+ - lib/braintree/coinbase_account.rb
52
+ - lib/braintree/configuration.rb
53
+ - lib/braintree/credentials_parser.rb
54
+ - lib/braintree/credit_card.rb
55
+ - lib/braintree/credit_card_gateway.rb
56
+ - lib/braintree/credit_card_verification.rb
57
+ - lib/braintree/credit_card_verification_gateway.rb
40
58
  - lib/braintree/credit_card_verification_search.rb
41
- - lib/braintree/settlement_batch.rb
42
- - lib/braintree/webhook_testing_gateway.rb
43
- - lib/braintree/gateway.rb
44
- - lib/braintree/merchant_account_gateway.rb
45
- - lib/braintree/three_d_secure_info.rb
46
- - lib/braintree/xml.rb
47
- - lib/braintree/webhook_notification.rb
48
- - lib/braintree/address_gateway.rb
59
+ - lib/braintree/customer.rb
60
+ - lib/braintree/customer_gateway.rb
61
+ - lib/braintree/customer_search.rb
62
+ - lib/braintree/descriptor.rb
63
+ - lib/braintree/digest.rb
64
+ - lib/braintree/disbursement.rb
65
+ - lib/braintree/discount.rb
66
+ - lib/braintree/discount_gateway.rb
67
+ - lib/braintree/dispute.rb
68
+ - lib/braintree/dispute/transaction_details.rb
69
+ - lib/braintree/error_codes.rb
70
+ - lib/braintree/error_result.rb
71
+ - lib/braintree/errors.rb
72
+ - lib/braintree/europe_bank_account.rb
73
+ - lib/braintree/europe_bank_account_gateway.rb
74
+ - lib/braintree/exceptions.rb
49
75
  - lib/braintree/facilitator_details.rb
76
+ - lib/braintree/gateway.rb
77
+ - lib/braintree/http.rb
78
+ - lib/braintree/ideal_payment.rb
79
+ - lib/braintree/ideal_payment_gateway.rb
50
80
  - lib/braintree/merchant.rb
51
- - lib/braintree/subscription_search.rb
52
- - lib/braintree/credentials_parser.rb
53
- - lib/braintree/transaction.rb
81
+ - lib/braintree/merchant_account.rb
82
+ - lib/braintree/merchant_account/address_details.rb
83
+ - lib/braintree/merchant_account/business_details.rb
84
+ - lib/braintree/merchant_account/funding_details.rb
85
+ - lib/braintree/merchant_account/individual_details.rb
86
+ - lib/braintree/merchant_account_gateway.rb
87
+ - lib/braintree/merchant_gateway.rb
88
+ - lib/braintree/modification.rb
89
+ - lib/braintree/oauth_credentials.rb
90
+ - lib/braintree/oauth_gateway.rb
91
+ - lib/braintree/paginated_collection.rb
92
+ - lib/braintree/paginated_result.rb
54
93
  - lib/braintree/payment_instrument_type.rb
55
- - lib/braintree/add_on.rb
56
- - lib/braintree/util.rb
94
+ - lib/braintree/payment_method.rb
95
+ - lib/braintree/payment_method_gateway.rb
96
+ - lib/braintree/payment_method_nonce.rb
97
+ - lib/braintree/payment_method_nonce_gateway.rb
98
+ - lib/braintree/paypal_account.rb
99
+ - lib/braintree/paypal_account_gateway.rb
100
+ - lib/braintree/plan.rb
101
+ - lib/braintree/plan_gateway.rb
102
+ - lib/braintree/resource_collection.rb
103
+ - lib/braintree/risk_data.rb
104
+ - lib/braintree/settlement_batch.rb
105
+ - lib/braintree/settlement_batch_summary.rb
106
+ - lib/braintree/settlement_batch_summary_gateway.rb
107
+ - lib/braintree/sha256_digest.rb
108
+ - lib/braintree/signature_service.rb
109
+ - lib/braintree/subscription.rb
110
+ - lib/braintree/subscription/status_details.rb
111
+ - lib/braintree/subscription_gateway.rb
112
+ - lib/braintree/subscription_search.rb
113
+ - lib/braintree/successful_result.rb
114
+ - lib/braintree/test/credit_card.rb
115
+ - lib/braintree/test/merchant_account.rb
116
+ - lib/braintree/test/nonce.rb
117
+ - lib/braintree/test/transaction_amounts.rb
118
+ - lib/braintree/test/venmo_sdk.rb
57
119
  - lib/braintree/test_transaction.rb
58
- - lib/braintree/ideal_payment.rb
59
- - lib/braintree/configuration.rb
60
- - lib/braintree/transaction/customer_details.rb
120
+ - lib/braintree/testing_gateway.rb
121
+ - lib/braintree/three_d_secure_info.rb
122
+ - lib/braintree/transaction.rb
61
123
  - lib/braintree/transaction/address_details.rb
62
- - lib/braintree/transaction/subscription_details.rb
63
- - lib/braintree/transaction/paypal_details.rb
64
- - lib/braintree/transaction/coinbase_details.rb
65
- - lib/braintree/transaction/android_pay_details.rb
66
124
  - lib/braintree/transaction/amex_express_checkout_details.rb
125
+ - lib/braintree/transaction/android_pay_details.rb
126
+ - lib/braintree/transaction/apple_pay_details.rb
127
+ - lib/braintree/transaction/coinbase_details.rb
128
+ - lib/braintree/transaction/credit_card_details.rb
129
+ - lib/braintree/transaction/customer_details.rb
67
130
  - lib/braintree/transaction/disbursement_details.rb
131
+ - lib/braintree/transaction/ideal_payment_details.rb
132
+ - lib/braintree/transaction/paypal_details.rb
68
133
  - lib/braintree/transaction/status_details.rb
69
- - lib/braintree/transaction/credit_card_details.rb
134
+ - lib/braintree/transaction/subscription_details.rb
70
135
  - lib/braintree/transaction/us_bank_account_details.rb
71
- - lib/braintree/transaction/apple_pay_details.rb
72
- - lib/braintree/transaction/ideal_payment_details.rb
73
136
  - lib/braintree/transaction/venmo_account_details.rb
74
- - lib/braintree/europe_bank_account.rb
75
- - lib/braintree/amex_express_checkout_card.rb
76
- - lib/braintree/plan.rb
77
- - lib/braintree/subscription_gateway.rb
78
- - lib/braintree/android_pay_card.rb
79
- - lib/braintree/base_module.rb
80
- - lib/braintree/xml/rexml.rb
81
- - lib/braintree/xml/parser.rb
82
- - lib/braintree/xml/generator.rb
83
- - lib/braintree/xml/libxml.rb
84
- - lib/braintree/address.rb
85
- - lib/braintree/paypal_account.rb
86
- - lib/braintree/paginated_result.rb
87
- - lib/braintree/account_updater_daily_report.rb
88
- - lib/braintree/successful_result.rb
89
- - lib/braintree/discount.rb
90
137
  - lib/braintree/transaction_gateway.rb
91
- - lib/braintree/customer_search.rb
92
- - lib/braintree/http.rb
93
- - lib/braintree/test/nonce.rb
94
- - lib/braintree/test/transaction_amounts.rb
95
- - lib/braintree/test/merchant_account.rb
96
- - lib/braintree/test/credit_card.rb
97
- - lib/braintree/test/venmo_sdk.rb
98
- - lib/braintree/credit_card_verification_gateway.rb
99
- - lib/braintree/testing_gateway.rb
100
- - lib/braintree/merchant_account.rb
101
- - lib/braintree/subscription/status_details.rb
138
+ - lib/braintree/transaction_search.rb
102
139
  - lib/braintree/transparent_redirect.rb
103
- - lib/braintree/error_result.rb
104
- - lib/braintree/disbursement.rb
105
- - lib/braintree/address/country_names.rb
106
- - lib/braintree/subscription.rb
107
- - lib/braintree/europe_bank_account_gateway.rb
108
- - lib/braintree/customer.rb
109
- - lib/braintree/credit_card.rb
110
- - lib/braintree/errors.rb
111
- - lib/braintree/webhook_testing.rb
112
- - lib/braintree/paypal_account_gateway.rb
113
- - lib/braintree/digest.rb
114
- - lib/braintree/modification.rb
115
- - lib/braintree/credit_card_gateway.rb
116
- - lib/braintree/ideal_payment_gateway.rb
117
- - lib/braintree/validation_error.rb
118
- - lib/braintree/payment_method_nonce.rb
119
- - lib/braintree/coinbase_account.rb
120
- - lib/braintree/us_bank_account.rb
121
- - lib/braintree/merchant_gateway.rb
122
- - lib/braintree/version.rb
123
- - lib/braintree/signature_service.rb
140
+ - lib/braintree/transparent_redirect_gateway.rb
124
141
  - lib/braintree/unknown_payment_method.rb
125
- - lib/braintree/paginated_collection.rb
126
- - lib/braintree/descriptor.rb
127
- - lib/braintree/validation_error_collection.rb
128
- - lib/braintree/client_token_gateway.rb
129
- - lib/braintree/risk_data.rb
130
- - lib/braintree/add_on_gateway.rb
131
- - lib/braintree/dispute/transaction_details.rb
132
- - lib/braintree/settlement_batch_summary_gateway.rb
133
- - lib/braintree/apple_pay_card.rb
142
+ - lib/braintree/us_bank_account.rb
134
143
  - lib/braintree/us_bank_account_gateway.rb
135
- - lib/braintree/dispute.rb
136
- - lib/braintree/oauth_gateway.rb
137
- - lib/braintree/client_token.rb
138
- - lib/braintree/customer_gateway.rb
139
- - lib/braintree/discount_gateway.rb
140
- - lib/braintree/resource_collection.rb
141
- - lib/braintree/plan_gateway.rb
142
- - lib/braintree/transparent_redirect_gateway.rb
143
- - lib/braintree/payment_method_gateway.rb
144
- - lib/braintree/ach_mandate.rb
145
- - lib/braintree/settlement_batch_summary.rb
146
- - lib/braintree/exceptions.rb
147
- - lib/braintree/transaction_search.rb
148
- - lib/braintree/error_codes.rb
149
- - lib/braintree/sha256_digest.rb
144
+ - lib/braintree/util.rb
145
+ - lib/braintree/validation_error.rb
146
+ - lib/braintree/validation_error_collection.rb
147
+ - lib/braintree/venmo_account.rb
148
+ - lib/braintree/version.rb
149
+ - lib/braintree/webhook_notification.rb
150
150
  - lib/braintree/webhook_notification_gateway.rb
151
- - lib/braintree/merchant_account/address_details.rb
152
- - lib/braintree/merchant_account/business_details.rb
153
- - lib/braintree/merchant_account/funding_details.rb
154
- - lib/braintree/merchant_account/individual_details.rb
155
- - lib/braintree/oauth_credentials.rb
156
- - lib/braintree.rb
151
+ - lib/braintree/webhook_testing.rb
152
+ - lib/braintree/webhook_testing_gateway.rb
153
+ - lib/braintree/xml.rb
154
+ - lib/braintree/xml/generator.rb
155
+ - lib/braintree/xml/libxml.rb
156
+ - lib/braintree/xml/parser.rb
157
+ - lib/braintree/xml/rexml.rb
157
158
  - lib/ssl/api_braintreegateway_com.ca.crt
158
159
  - lib/ssl/securetrust_ca.crt
159
- - spec/spec.opts
160
- - spec/httpsd.pid
161
160
  - spec/hacks/tcp_socket.rb
162
- - spec/unit/spec_helper.rb
163
- - spec/unit/braintree/credit_card_verification_search_spec.rb
164
- - spec/unit/braintree/subscription_search_spec.rb
165
- - spec/unit/braintree/signature_service_spec.rb
166
- - spec/unit/braintree/apple_pay_card_spec.rb
167
- - spec/unit/braintree/webhook_notification_spec.rb
168
- - spec/unit/braintree/payment_method_spec.rb
169
- - spec/unit/braintree/errors_spec.rb
170
- - spec/unit/braintree/us_bank_account_spec.rb
171
- - spec/unit/braintree/unknown_payment_method_spec.rb
172
- - spec/unit/braintree/merchant_account_spec.rb
173
- - spec/unit/braintree/validation_error_spec.rb
174
- - spec/unit/braintree/credentials_parser_spec.rb
175
- - spec/unit/braintree/xml_spec.rb
176
- - spec/unit/braintree/transparent_redirect_spec.rb
177
- - spec/unit/braintree/client_token_spec.rb
178
- - spec/unit/braintree/transaction/customer_details_spec.rb
179
- - spec/unit/braintree/transaction/deposit_details_spec.rb
180
- - spec/unit/braintree/transaction/credit_card_details_spec.rb
181
- - spec/unit/braintree/address_spec.rb
182
- - spec/unit/braintree/http_spec.rb
183
- - spec/unit/braintree/customer_spec.rb
184
- - spec/unit/braintree/validation_error_collection_spec.rb
185
- - spec/unit/braintree/modification_spec.rb
186
- - spec/unit/braintree/xml/parser_spec.rb
187
- - spec/unit/braintree/xml/rexml_spec.rb
188
- - spec/unit/braintree/xml/libxml_spec.rb
189
- - spec/unit/braintree/paypal_account_spec.rb
190
- - spec/unit/braintree/digest_spec.rb
191
- - spec/unit/braintree/error_result_spec.rb
192
- - spec/unit/braintree/transaction_spec.rb
193
- - spec/unit/braintree/three_d_secure_info_spec.rb
194
- - spec/unit/braintree/successful_result_spec.rb
195
- - spec/unit/braintree/util_spec.rb
196
- - spec/unit/braintree/disbursement_spec.rb
197
- - spec/unit/braintree/credit_card_spec.rb
198
- - spec/unit/braintree/dispute_spec.rb
199
- - spec/unit/braintree/credit_card_verification_spec.rb
200
- - spec/unit/braintree/base_module_spec.rb
201
- - spec/unit/braintree/transaction_search_spec.rb
202
- - spec/unit/braintree/risk_data_spec.rb
203
- - spec/unit/braintree/subscription_spec.rb
204
- - spec/unit/braintree/configuration_spec.rb
205
- - spec/unit/braintree/sha256_digest_spec.rb
206
- - spec/unit/braintree/resource_collection_spec.rb
207
- - spec/unit/braintree_spec.rb
208
- - spec/spec_helper.rb
209
- - spec/script/httpsd.rb
210
- - spec/integration/spec_helper.rb
211
- - spec/integration/braintree/credit_card_verification_search_spec.rb
212
- - spec/integration/braintree/settlement_batch_summary_spec.rb
213
- - spec/integration/braintree/payment_method_spec.rb
214
- - spec/integration/braintree/us_bank_account_spec.rb
215
- - spec/integration/braintree/payment_method_nonce_spec.rb
216
- - spec/integration/braintree/merchant_account_spec.rb
161
+ - spec/httpsd.pid
162
+ - spec/integration/braintree/add_on_spec.rb
163
+ - spec/integration/braintree/address_spec.rb
164
+ - spec/integration/braintree/advanced_search_spec.rb
217
165
  - spec/integration/braintree/client_api/client_token_spec.rb
218
166
  - spec/integration/braintree/client_api/spec_helper.rb
219
- - spec/integration/braintree/test_transaction_spec.rb
167
+ - spec/integration/braintree/coinbase_spec.rb
168
+ - spec/integration/braintree/credit_card_spec.rb
169
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
170
+ - spec/integration/braintree/credit_card_verification_spec.rb
220
171
  - spec/integration/braintree/customer_search_spec.rb
221
- - spec/integration/braintree/transparent_redirect_spec.rb
222
- - spec/integration/braintree/address_spec.rb
223
- - spec/integration/braintree/http_spec.rb
224
172
  - spec/integration/braintree/customer_spec.rb
225
- - spec/integration/braintree/paypal_account_spec.rb
226
- - spec/integration/braintree/error_codes_spec.rb
227
- - spec/integration/braintree/transaction_spec.rb
228
- - spec/integration/braintree/test/transaction_amounts_spec.rb
229
173
  - spec/integration/braintree/disbursement_spec.rb
174
+ - spec/integration/braintree/discount_spec.rb
175
+ - spec/integration/braintree/error_codes_spec.rb
176
+ - spec/integration/braintree/http_spec.rb
177
+ - spec/integration/braintree/ideal_payment_spec.rb
178
+ - spec/integration/braintree/merchant_account_spec.rb
230
179
  - spec/integration/braintree/merchant_spec.rb
231
- - spec/integration/braintree/credit_card_spec.rb
232
180
  - spec/integration/braintree/oauth_spec.rb
233
- - spec/integration/braintree/ideal_payment_spec.rb
234
- - spec/integration/braintree/coinbase_spec.rb
235
- - spec/integration/braintree/credit_card_verification_spec.rb
236
- - spec/integration/braintree/discount_spec.rb
237
- - spec/integration/braintree/add_on_spec.rb
238
- - spec/integration/braintree/transaction_search_spec.rb
239
- - spec/integration/braintree/advanced_search_spec.rb
181
+ - spec/integration/braintree/payment_method_nonce_spec.rb
182
+ - spec/integration/braintree/payment_method_spec.rb
183
+ - spec/integration/braintree/paypal_account_spec.rb
240
184
  - spec/integration/braintree/plan_spec.rb
185
+ - spec/integration/braintree/settlement_batch_summary_spec.rb
241
186
  - spec/integration/braintree/subscription_spec.rb
187
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
188
+ - spec/integration/braintree/test_transaction_spec.rb
189
+ - spec/integration/braintree/transaction_search_spec.rb
190
+ - spec/integration/braintree/transaction_spec.rb
191
+ - spec/integration/braintree/transparent_redirect_spec.rb
192
+ - spec/integration/braintree/us_bank_account_spec.rb
193
+ - spec/integration/spec_helper.rb
194
+ - spec/oauth_test_helper.rb
195
+ - spec/script/httpsd.rb
196
+ - spec/spec.opts
197
+ - spec/spec_helper.rb
242
198
  - spec/ssl/certificate.crt
243
199
  - spec/ssl/geotrust_global.crt
244
200
  - spec/ssl/privateKey.key
245
- - spec/oauth_test_helper.rb
246
- - braintree.gemspec
201
+ - spec/unit/braintree/address_spec.rb
202
+ - spec/unit/braintree/apple_pay_card_spec.rb
203
+ - spec/unit/braintree/base_module_spec.rb
204
+ - spec/unit/braintree/client_token_spec.rb
205
+ - spec/unit/braintree/configuration_spec.rb
206
+ - spec/unit/braintree/credentials_parser_spec.rb
207
+ - spec/unit/braintree/credit_card_spec.rb
208
+ - spec/unit/braintree/credit_card_verification_search_spec.rb
209
+ - spec/unit/braintree/credit_card_verification_spec.rb
210
+ - spec/unit/braintree/customer_spec.rb
211
+ - spec/unit/braintree/digest_spec.rb
212
+ - spec/unit/braintree/disbursement_spec.rb
213
+ - spec/unit/braintree/dispute_spec.rb
214
+ - spec/unit/braintree/error_result_spec.rb
215
+ - spec/unit/braintree/errors_spec.rb
216
+ - spec/unit/braintree/http_spec.rb
217
+ - spec/unit/braintree/merchant_account_spec.rb
218
+ - spec/unit/braintree/modification_spec.rb
219
+ - spec/unit/braintree/payment_method_spec.rb
220
+ - spec/unit/braintree/paypal_account_spec.rb
221
+ - spec/unit/braintree/resource_collection_spec.rb
222
+ - spec/unit/braintree/risk_data_spec.rb
223
+ - spec/unit/braintree/sha256_digest_spec.rb
224
+ - spec/unit/braintree/signature_service_spec.rb
225
+ - spec/unit/braintree/subscription_search_spec.rb
226
+ - spec/unit/braintree/subscription_spec.rb
227
+ - spec/unit/braintree/successful_result_spec.rb
228
+ - spec/unit/braintree/three_d_secure_info_spec.rb
229
+ - spec/unit/braintree/transaction/credit_card_details_spec.rb
230
+ - spec/unit/braintree/transaction/customer_details_spec.rb
231
+ - spec/unit/braintree/transaction/deposit_details_spec.rb
232
+ - spec/unit/braintree/transaction_search_spec.rb
233
+ - spec/unit/braintree/transaction_spec.rb
234
+ - spec/unit/braintree/transparent_redirect_spec.rb
235
+ - spec/unit/braintree/unknown_payment_method_spec.rb
236
+ - spec/unit/braintree/us_bank_account_spec.rb
237
+ - spec/unit/braintree/util_spec.rb
238
+ - spec/unit/braintree/validation_error_collection_spec.rb
239
+ - spec/unit/braintree/validation_error_spec.rb
240
+ - spec/unit/braintree/webhook_notification_spec.rb
241
+ - spec/unit/braintree/xml/libxml_spec.rb
242
+ - spec/unit/braintree/xml/parser_spec.rb
243
+ - spec/unit/braintree/xml/rexml_spec.rb
244
+ - spec/unit/braintree/xml_spec.rb
245
+ - spec/unit/braintree_spec.rb
246
+ - spec/unit/spec_helper.rb
247
247
  homepage: http://www.braintreepayments.com/
248
- licenses:
248
+ licenses:
249
249
  - MIT
250
250
  metadata: {}
251
-
252
251
  post_install_message:
253
252
  rdoc_options: []
254
-
255
- require_paths:
253
+ require_paths:
256
254
  - lib
257
- required_ruby_version: !ruby/object:Gem::Requirement
258
- requirements:
259
- - &id002
260
- - ">="
261
- - !ruby/object:Gem::Version
262
- version: "0"
263
- required_rubygems_version: !ruby/object:Gem::Requirement
264
- requirements:
265
- - *id002
255
+ required_ruby_version: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - ">="
258
+ - !ruby/object:Gem::Version
259
+ version: '0'
260
+ required_rubygems_version: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
266
265
  requirements: []
267
-
268
266
  rubyforge_project: braintree
269
- rubygems_version: 2.0.17
267
+ rubygems_version: 2.4.8
270
268
  signing_key:
271
269
  specification_version: 4
272
270
  summary: Braintree Gateway Ruby Client Library
273
271
  test_files: []
274
-