braintree / braintree-web-drop-in

Braintree Drop-in for the web
MIT License
200 stars 126 forks source link

requestPaymentMethod is not erroring out on invalid test cards in Sandbox #830

Closed bhavyakalluri90 closed 1 year ago

bhavyakalluri90 commented 2 years ago

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

armandodlvr commented 1 year ago

@bhavyakalluri90 could you please add some screenshots (including the console and network tab)?

hollabaq86 commented 1 year ago

closing due to inactivity