vies 1.1.0 copy "vies: ^1.1.0" to clipboard
vies: ^1.1.0 copied to clipboard

This dart lib is basically calling web service provided by VIES for check VAT validity

example/vies_example.dart

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: 'FR',
      vatNumber: '64443061841',
      timeout: const Duration(seconds: 50),
      // validationLevel: ValidationLevel.all,
      // regexType: RegexType.world,
    );
    print('$res');
  } catch (e) {
    print('$e');
  }
}
4
likes
160
points
99
downloads

Publisher

verified publishercomapps.be

Weekly Downloads

This dart lib is basically calling web service provided by VIES for check VAT validity

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

html_unescape, http

More

Packages that depend on vies