generate access tokens and purchases