when instance.requestPaymentMethod is called with invalid test cards in sandbox environment is not erroring out.
This is how We are initializing
dropin.create(
{
authorization: token,
container: '#braintree-drop-in-div',
vaultManager: true,
translations: {
payWithCard: 'Add credit card',
chooseAnotherWayToPay: 'Add another credit card',
},
},
)
On new card add button click the callback has null err
instance.requestPaymentMethod(
function (err, payload) {
console.log(err);
},
);
On of the cards used for testing :
5105105105105100
exp 12/23
cvv 123
pin 60564
which is expected to fail but never got any error in the response on requestPaymentMethod and the card gets added to the vault
General information
Issue description
when instance.requestPaymentMethod is called with invalid test cards in sandbox environment is not erroring out.
This is how We are initializing dropin.create( { authorization: token, container: '#braintree-drop-in-div', vaultManager: true, translations: { payWithCard: 'Add credit card', chooseAnotherWayToPay: 'Add another credit card', }, }, )
On new card add button click the callback has null err instance.requestPaymentMethod( function (err, payload) { console.log(err); }, );
On of the cards used for testing : 5105105105105100 exp 12/23 cvv 123 pin 60564 which is expected to fail but never got any error in the response on requestPaymentMethod and the card gets added to the vault