return error when purchase failed or restore failed