Exemplo n.º 1
0
            public IEnumerable <V2.CreditCardData> GetMissingPaymentProfiles()
            {
                V1.ICCProcessingHostedForm processor    = GetProcessor();
                V1.APIResponse             response     = new V1.APIResponse();
                V1.SyncPMResponse          syncResponse = new V1.SyncPMResponse();
                processor.SynchronizePaymentMethods(response, syncResponse);
                List <V2.CreditCardData>        cardList        = GetCardData(syncResponse);
                IEnumerable <V2.CreditCardData> missingProfiles = cardList.Except(GetExistingProfiles(_provider), new V2.InterfaceExtensions.CreditCardDataEqualityComparer());

                return(missingProfiles);
            }
Exemplo n.º 2
0
            public V2.CreditCardData GetPaymentProfile()
            {
                V1.APIResponse    response     = new V1.APIResponse();
                V1.SyncPMResponse syncResponse = new V1.SyncPMResponse();
                _processor.GetPMI(response, syncResponse);
                ProcessAPIResponse(response);
                List <V2.CreditCardData> cardList = GetCardData(syncResponse);

                if (cardList.Count != 1)
                {
                    throw new PXException(V1.Messages.UnexpectedResult, _plugin.GetType().Name);
                }
                return(cardList[0]);
            }