public void SetAuthCodeAndReference(string authCode, string reference) { // call static method CommerceLibAccess.SetOrderAuthCodeAndReference(OrderId, authCode, reference); // update fields AuthCode = authCode; Reference = reference; }