public static List <string> ThreeDSMethodMacList(ThreeDSMethod threeDSMethod)
 {
     return(new List <string>
     {
         threeDSMethod.ThreeDSTransId,
         threeDSMethod.ThreeDSMethodData,
         threeDSMethod.ThreeDSMethodUrl
     });
 }
 private void VerifyThreeDSMethod(ThreeDSMethod threeDSMethod)
 {
     if (threeDSMethod != null)
     {
         var digest = _encoder.GetMac(ResponseHandler.ThreeDSMethodMacList(threeDSMethod), _apiResultKey);
         if (!digest.Equals(MacNeutralValue) && !digest.Equals(threeDSMethod.MAC))
         {
             throw new IncorrectMacException(
                       "ThreeDSMethod digest not corresponding to the calculated one. Possible data corruption!");
         }
     }
 }