renamed pmtdata to payment
service storing token now
borrowed demo framework from google-api examples