Add mechanism for restoring purchases with error handler.