Closed dedicio closed 3 years ago
Add a validation in function findCreditCardObjectByNumber to check if number is truly value
findCreditCardObjectByNumber
number
It was generating error in getCreditCardNameByNumber and isSecurityCodeValid when send card number as null or undefined
getCreditCardNameByNumber
isSecurityCodeValid
null
undefined
Fix: #126
Call methods getCreditCardNameByNumber or isSecurityCodeValid with null or undefined params and returns false whitout console errors
false
What is the change?
Add a validation in function
findCreditCardObjectByNumber
to check ifnumber
is truly valueWhy make this change?
It was generating error in
getCreditCardNameByNumber
andisSecurityCodeValid
when send card number asnull
orundefined
Fix: #126
Test plan
Call methods
getCreditCardNameByNumber
orisSecurityCodeValid
withnull
orundefined
params and returnsfalse
whitout console errors