Define success and failure callbacks for purchase