nationalMerchantId property

String get nationalMerchantId

Retrieves the National Merchant ID from tag 51, sub tag 02.

The National Merchant ID is typically found in tag 51. If it's not available, '' or String empty is returned.

Returns:

  • Example: ID1019000999007
  • The National Merchant ID as a string, or null if not found.

Implementation

String get nationalMerchantId {
  final merchantInfo51 = _raw['merchant_information_51'];
  final nMID = merchantInfo51?['merchant_id'];

  if (nMID != null && nMID.isNotEmpty) {
    return nMID;
  }

  return '';
}