Ejemplo n.º 1
0
        public void DoOnlineReponse(KernelOnlineResponseType responseType, TLV authCode_8A, TLV issuerAuthData_91, TLV scriptList_71, TLV scriptList_72)
        {
            if (kernel == null)
            {
                throw new EMVProtocolException("DoOnlineReponse called without kernel being activated");
            }

            TLVList returnVal = new TLVList();

            returnVal.AddToList(authCode_8A);
            returnVal.AddToList(issuerAuthData_91);
            if (scriptList_71 != null)
            {
                returnVal.AddToList(scriptList_71);
            }
            if (scriptList_72 != null)
            {
                returnVal.AddToList(scriptList_72);
            }
            KernelOnlineRequest request = new KernelOnlineRequest(returnVal, responseType);

            kernel.KernelQ.EnqueueToInput(request);
        }
Ejemplo n.º 2
0
 public KernelOnlineRequest(TLVList inputData, KernelOnlineResponseType onlineApprovalStatus) : base(KernelTerminalReaderServiceRequestEnum.ONLINE, inputData)
 {
     OnlineApprovalStatus = onlineApprovalStatus;
 }