It looks if it is defined or not. if not waits for a card to be scanned, and that card will be master card.