Added error code to the Purchase Failed event handler signature