within ecart, in the checkout wizard is an option to save order information to the database.
you will need to use this option to save the order and order details information.
also, you will want to password protect the checkout so that the user has to log in before they can checkout.
Using the security assist user authentication, when a user logs in, a session is saved with the users ID. you will want to edit the eCart Store Order Summary behavior so that the Users ID is saved to theorizers table on checkout after purchasing the tokens.
you can then use a recordset to lookup orders placed by that user to find the tokens quantity that they have purchased.
I would also set up another table to record the tokens used by that user.
you can then use another recordset to look up tokens used and compare that with the tokens purchased.