braintree-web-drop-in
Advanced tools
Comparing version 1.16.0 to 1.17.0
CHANGELOG | ||
========= | ||
1.17.0 | ||
---------- | ||
- Fix issue where falsey values were not allowed as CVV placeholders | ||
- Add ability to opt out of card view by passing `false` as the card option | ||
- Update braintree-web to v3.44.0 | ||
- Fix issue where requestable event fires when cancelling payment method deletion (#477) | ||
1.16.0 | ||
@@ -9,2 +16,3 @@ ------ | ||
- Stop halting Drop-in setup when Data Collector fails to load | ||
- Provide error message when payment method is requested on PayPal button view (#433) | ||
@@ -19,3 +27,2 @@ 1.15.0 | ||
- Allow easy Google Pay version 2 configuration | ||
- Provide error message when payment method is requested on PayPal button view (#433) | ||
@@ -22,0 +29,0 @@ 1.14.1 |
@@ -115,3 +115,3 @@ 'use strict'; | ||
var VERSION = "1.16.0"; | ||
var VERSION = "1.17.0"; | ||
@@ -225,3 +225,3 @@ /** | ||
* | ||
* @param {object} [options.card] The configuration options for cards. See [`cardCreateOptions`](#~cardCreateOptions) for all `card` options. If this option is omitted, cards will still appear as a payment option. To remove cards as a payment option, use `paymentOptionPriority`. | ||
* @param {boolean|object} [options.card] The configuration options for cards. See [`cardCreateOptions`](#~cardCreateOptions) for all `card` options. If this option is omitted, cards will still appear as a payment option. To remove cards, pass `false` for the value. | ||
* @param {object} [options.paypal] The configuration options for PayPal. To include a PayPal option in your Drop-in integration, include the `paypal` parameter and [enable PayPal in the Braintree Control Panel](https://developers.braintreepayments.com/guides/paypal/testing-go-live/#go-live). To test in Sandbox, you will need to [link a PayPal sandbox test account to your Braintree sandbox account](https://developers.braintreepayments.com/guides/paypal/testing-go-live/#linked-paypal-testing). | ||
@@ -228,0 +228,0 @@ * |
{ | ||
"name": "braintree-web-drop-in", | ||
"version": "1.16.0", | ||
"version": "1.17.0", | ||
"main": "index.js", | ||
@@ -65,3 +65,3 @@ "scripts": { | ||
"dependencies": { | ||
"braintree-web": "3.42.0", | ||
"braintree-web": "3.44.0", | ||
"@braintree/asset-loader": "0.2.1", | ||
@@ -68,0 +68,0 @@ "@braintree/browser-detection": "1.7.0", |
@@ -33,3 +33,3 @@ # Braintree Web Drop-in | ||
<script src="https://js.braintreegateway.com/web/dropin/1.15.0/js/dropin.min.js"></script> | ||
<script src="https://js.braintreegateway.com/web/dropin/1.16.0/js/dropin.min.js"></script> | ||
@@ -36,0 +36,0 @@ <script> |
@@ -194,3 +194,3 @@ 'use strict'; | ||
this.model.setPaymentMethodRequestable({ | ||
isRequestable: Boolean(paymentMethod), | ||
isRequestable: Boolean(paymentMethod && !this.model.isInEditMode()), | ||
type: paymentMethod && paymentMethod.type, | ||
@@ -197,0 +197,0 @@ selectedPaymentMethod: paymentMethod |
@@ -206,3 +206,3 @@ 'use strict'; | ||
if (overrides.fields) { | ||
if (overrides.fields.cvv && overrides.fields.cvv.placeholder) { | ||
if (overrides.fields.cvv && typeof overrides.fields.cvv.placeholder !== 'undefined') { | ||
this._hasCustomCVVPlaceholder = true; | ||
@@ -620,4 +620,5 @@ } | ||
var gatewayConfiguration = options.client.getConfiguration().gatewayConfiguration; | ||
var disabledByMerchant = options.merchantConfiguration.card === false; | ||
return Promise.resolve(gatewayConfiguration.creditCards.supportedCardTypes.length > 0); | ||
return Promise.resolve(!disabledByMerchant && gatewayConfiguration.creditCards.supportedCardTypes.length > 0); | ||
}; | ||
@@ -624,0 +625,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1028283
20755
- Removed@braintree/iframer@1.0.3(transitive)
- Removed@braintree/sanitize-url@3.0.0(transitive)
- Removedbraintree-web@3.42.0(transitive)
- Removedcard-validator@6.1.0(transitive)
- Removedcredit-card-type@8.0.0(transitive)
- Removedframebus@3.0.2(transitive)
- Removedinject-stylesheet@1.0.0(transitive)
- Removedrestricted-input@1.2.7(transitive)
Updatedbraintree-web@3.44.0