Loyalty card based on barcode scanner