vies 1.0.0+1 vies: ^1.0.0+1 copied to clipboard
This dart lib is basically calling web service provided by VIES for check VAT validity
import 'package:vies/vies.dart';
Future<void> main() async {
// Check VAT Number validity and get relative informations
try {
final ViesValidationResponse res = await ViesProvider.validateVat(
countryCode: 'BE',
vatNumber: '0123456789',
timeout: const Duration(seconds: 50),
);
print(res.toString());
} catch (e) {
print(e.toString());
}
}