Bar coded prepaid tickets to pay for goods