Progress on 'tokenizing a card'

#438 is the problem.