See also:
- The
collectTypes()
method from theMagento_BraintreeTwo
'svalidator.js
can be simplified from 8 lines to 1 - The method
\Magento\Payment\Model\CcGenericConfigProvider::getCcAvailableTypes()
can be simplified - The
collectTypes()
method is duplicated in theMagento_Braintree
's cc-form.js andMagento_BraintreeTwo
's validator.js - How to limit the list of shown and accepted through the Braintree payment gateway bank card types for a particular customer’s country?