I am integrating Web Payment SDK with an existing form, where i need to ensure that all mandatory fields are filled before submitting, but seems there is no way that a Card object can tell whether CreditCard Number, CVV and expiration Date are mandatory or not… any suggestions? thanks
Actually, isCompletelyValid only applies to the field that generated the event.
In order to determine if all the inputs are valid, you will need to keep track of all the card fields individually. Pay particular attention to if a postalCode field is required or not since it only appears based on the cardNumber.