isCardValid method
Check if card number is valid.
number
The card number.
Implementation
static Future<bool> isCardValid({@required String number}) async {
try {
return await _channel.invokeMethod(
METHOD_IS_CARD_VALID, <String, String>{'number': number});
} on PlatformException catch (e) {
if (e.code == IS_CARD_VALID_ERROR)
throw "Error Occured: Code: $IS_CARD_VALID_ERROR. Message: ${e.message}. Details: Validation Card Number Error";
throw "Error Occured: Code: ${e.code}. Message: ${e.message}. Details: ${e.details}";
}
}