public IEnumerable <V2.CreditCardData> GetAllPaymentProfiles()
            {
                V2.ICCProfileProcessor processor       = GetProcessor <V2.ICCProfileProcessor>();
                string customerProfileId               = V2ProcessingInputGenerator.GetCustomerData(_provider.GetCustomerDataReader()).CustomerProfileID;
                IEnumerable <V2.CreditCardData> result = V2PluginErrorHandler.ExecuteAndHandleError(() => processor.GetAllPaymentProfiles(customerProfileId));

                return(result);
            }
Esempio n. 2
0
            private V2.ICCProfileProcessor GetProcessor()
            {
                V2SettingsGenerator settingsGen = new V2SettingsGenerator(_provider);

                V2.ICCProfileProcessor processor = _plugin.CreateProcessor <V2.ICCProfileProcessor>(settingsGen.GetSettings());
                if (processor == null)
                {
                    string errorMessage = PXMessages.LocalizeFormatNoPrefixNLA(
                        Messages.FeatureNotSupportedByProcessing,
                        CCProcessingFeature.ProfileManagement);
                    throw new PXException(errorMessage);
                }
                return(processor);
            }
Esempio n. 3
0
 public V2BaseProfileProcessor(V2.ICCProcessingPlugin v2Plugin, Repositories.ICardProcessingReadersProvider provider)
 {
     _plugin    = v2Plugin;
     _provider  = provider;
     _processor = GetProcessor();
 }