braintree 2.99.0 → 2.100.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/braintree/credit_card_gateway.rb +1 -0
- data/lib/braintree/error_codes.rb +1 -0
- data/lib/braintree/transaction/android_pay_details.rb +1 -0
- data/lib/braintree/transaction/apple_pay_details.rb +1 -0
- data/lib/braintree/version.rb +1 -1
- data/spec/integration/braintree/credit_card_spec.rb +15 -0
- data/spec/integration/braintree/transaction_spec.rb +2 -0
- data/spec/unit/braintree/credit_card_spec.rb +2 -0
- data/spec/unit/braintree/customer_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce8a0ffb1227a51cbb8d3f53339a7b9c6f4ea4cb934a1f8650fe0376394c5e3d
|
4
|
+
data.tar.gz: b500561e20d50b0b30b816fe9152d2cf838555304a544508d800f4f8202e02c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d86f151ea614c6c8f5f1297873efa2c8a7e1f567bd05b06fbb9aa6216ef45ccd3b3d6aef0d40204028b05a7bd8fcfa010d9b3670fdd5a88babcc81fdfb7d3a48
|
7
|
+
data.tar.gz: 70efed7f2733dd6055fc868ca7ff7bf104dcc550a6499c7fe10bb7c1f17f33e4c686eee676463af6bd4725d1a298816871418accba721ad840b6b1d8821006ca
|
@@ -113,6 +113,7 @@ module Braintree
|
|
113
113
|
:billing_address_id, :cardholder_name, :cvv, :device_session_id, :expiration_date,
|
114
114
|
:expiration_month, :expiration_year, :number, :token, :venmo_sdk_payment_method_code,
|
115
115
|
:device_data, :fraud_merchant_id, :payment_method_nonce,
|
116
|
+
{:external_vault => [:network_transaction_id]},
|
116
117
|
{:options => options},
|
117
118
|
{:billing_address => billing_address_params}
|
118
119
|
]
|
@@ -383,6 +383,7 @@ module Braintree
|
|
383
383
|
ProcessorDoesNotSupportCredits = "91546"
|
384
384
|
ProcessorDoesNotSupportPartialSettlement = "915102"
|
385
385
|
ProcessorDoesNotSupportVoiceAuthorizations = "91545"
|
386
|
+
ProcessorDoesNotSupportMotoForCardType = "915195"
|
386
387
|
PurchaseOrderNumberIsInvalid = "91548"
|
387
388
|
PurchaseOrderNumberIsTooLong = "91537"
|
388
389
|
RefundAmountIsTooLarge = "91521"
|
data/lib/braintree/version.rb
CHANGED
@@ -336,6 +336,21 @@ describe Braintree::CreditCard do
|
|
336
336
|
Braintree::CreditCard.find(card1.token).should_not be_default
|
337
337
|
end
|
338
338
|
|
339
|
+
it "can set the network transaction identifier when creating a credit card" do
|
340
|
+
customer = Braintree::Customer.create!
|
341
|
+
|
342
|
+
result = Braintree::CreditCard.create(
|
343
|
+
:customer_id => customer.id,
|
344
|
+
:number => Braintree::Test::CreditCardNumbers::Visa,
|
345
|
+
:expiration_date => "05/2009",
|
346
|
+
:external_vault => {
|
347
|
+
:network_transaction_id => "MCC123456789",
|
348
|
+
},
|
349
|
+
)
|
350
|
+
|
351
|
+
expect(result.success?).to eq(true)
|
352
|
+
end
|
353
|
+
|
339
354
|
context "card type indicators" do
|
340
355
|
it "sets the prepaid field if the card is prepaid" do
|
341
356
|
customer = Braintree::Customer.create!
|
@@ -1645,6 +1645,7 @@ describe Braintree::Transaction do
|
|
1645
1645
|
result.transaction.should_not be_nil
|
1646
1646
|
apple_pay_details = result.transaction.apple_pay_details
|
1647
1647
|
apple_pay_details.should_not be_nil
|
1648
|
+
apple_pay_details.bin.should_not be_nil
|
1648
1649
|
apple_pay_details.card_type.should == Braintree::ApplePayCard::CardType::Visa
|
1649
1650
|
apple_pay_details.payment_instrument_name.should == "Visa 8886"
|
1650
1651
|
apple_pay_details.source_description.should == "Visa 8886"
|
@@ -1695,6 +1696,7 @@ describe Braintree::Transaction do
|
|
1695
1696
|
result.transaction.should_not be_nil
|
1696
1697
|
android_pay_details = result.transaction.android_pay_details
|
1697
1698
|
android_pay_details.should_not be_nil
|
1699
|
+
android_pay_details.bin.should_not be_nil
|
1698
1700
|
android_pay_details.card_type.should == Braintree::CreditCard::CardType::Discover
|
1699
1701
|
android_pay_details.virtual_card_type.should == Braintree::CreditCard::CardType::Discover
|
1700
1702
|
android_pay_details.last_4.should == "1117"
|
@@ -25,6 +25,7 @@ describe Braintree::CreditCard do
|
|
25
25
|
:device_data,
|
26
26
|
:fraud_merchant_id,
|
27
27
|
:payment_method_nonce,
|
28
|
+
{:external_vault=>[:network_transaction_id]},
|
28
29
|
{:options => [:make_default, :verification_merchant_account_id, :verify_card, :verification_amount, :venmo_sdk_session, :fail_on_duplicate_payment_method, :verification_account_type]},
|
29
30
|
{:billing_address => [
|
30
31
|
:company,
|
@@ -61,6 +62,7 @@ describe Braintree::CreditCard do
|
|
61
62
|
:device_data,
|
62
63
|
:fraud_merchant_id,
|
63
64
|
:payment_method_nonce,
|
65
|
+
{:external_vault=>[:network_transaction_id]},
|
64
66
|
{:options => [:make_default, :verification_merchant_account_id, :verify_card, :verification_amount, :venmo_sdk_session, :fail_on_duplicate_payment_method, :verification_account_type]},
|
65
67
|
{:billing_address => [
|
66
68
|
:company,
|
@@ -101,6 +101,7 @@ describe Braintree::Customer do
|
|
101
101
|
:device_data,
|
102
102
|
:fraud_merchant_id,
|
103
103
|
:payment_method_nonce,
|
104
|
+
{:external_vault=>[:network_transaction_id]},
|
104
105
|
{:options => [:make_default, :verification_merchant_account_id, :verify_card, :verification_amount, :venmo_sdk_session, :fail_on_duplicate_payment_method, :verification_account_type]},
|
105
106
|
{:billing_address => [
|
106
107
|
:company,
|
@@ -179,6 +180,7 @@ describe Braintree::Customer do
|
|
179
180
|
:device_data,
|
180
181
|
:fraud_merchant_id,
|
181
182
|
:payment_method_nonce,
|
183
|
+
{:external_vault=>[:network_transaction_id]},
|
182
184
|
{:options => [
|
183
185
|
:make_default,
|
184
186
|
:verification_merchant_account_id,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.100.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Braintree
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|