public static void GetManagePaymentProfileForm(PXGraph graph, ICCPaymentProfile paymentProfile) { if (graph == null || paymentProfile == null) { return; } CustomerPaymentMethodDetail ccpID = PXSelectJoin <CustomerPaymentMethodDetail, InnerJoin <PaymentMethodDetail, On <CustomerPaymentMethodDetail.paymentMethodID, Equal <PaymentMethodDetail.paymentMethodID>, And <CustomerPaymentMethodDetail.detailID, Equal <PaymentMethodDetail.detailID>, And <PaymentMethodDetail.useFor, Equal <PaymentMethodDetailUsage.useForARCards> > > > >, Where <PaymentMethodDetail.isCCProcessingID, Equal <True>, And <CustomerPaymentMethodDetail.pMInstanceID, Equal <Required <CustomerPaymentMethod.pMInstanceID> > > > > .SelectWindowed(graph, 0, 1, paymentProfile.PMInstanceID); if (ccpID != null && !string.IsNullOrEmpty(ccpID.Value)) { ProcessingCardsPluginFactory pluginFactory = GetProcessingCardsPluginFactory(paymentProfile.CCProcessingCenterID); CCCustomerInformationManager cim = GetCustomerInformationManager(pluginFactory); CCProcessingCenter processingCenter = pluginFactory.GetProcessingCenter(); CCProcessingContext context = new CCProcessingContext() { processingCenter = pluginFactory.GetProcessingCenter(), aCustomerID = paymentProfile.BAccountID, aPMInstanceID = paymentProfile.PMInstanceID, callerGraph = graph }; CardProcessingReadersProvider readersProvider = new CardProcessingReadersProvider(context); cim.SetReadersProvider(readersProvider); cim.GetManagePaymentProfileForm(); } }
public static void GetManagePaymentProfileForm <TPaymentMethodType>(PXGraph graph, TPaymentMethodType currentCutomerPaymenMethod) where TPaymentMethodType : CustomerPaymentMethod, new() { if (graph == null || currentCutomerPaymenMethod == null) { return; } CustomerPaymentMethodDetail ccpID = PXSelectJoin <CustomerPaymentMethodDetail, InnerJoin <PaymentMethodDetail, On <CustomerPaymentMethodDetail.paymentMethodID, Equal <PaymentMethodDetail.paymentMethodID>, And <CustomerPaymentMethodDetail.detailID, Equal <PaymentMethodDetail.detailID>, And <PaymentMethodDetail.useFor, Equal <PaymentMethodDetailUsage.useForARCards> > > > >, Where <PaymentMethodDetail.isCCProcessingID, Equal <True>, And <CustomerPaymentMethodDetail.pMInstanceID, Equal <Required <CustomerPaymentMethod.pMInstanceID> > > > > .SelectWindowed(graph, 0, 1, currentCutomerPaymenMethod.PMInstanceID); if (ccpID != null && !string.IsNullOrEmpty(ccpID.Value)) { CCCustomerInformationManager cim = new CCCustomerInformationManager(currentCutomerPaymenMethod.CCProcessingCenterID, CCProcessingFeature.HostedForm) { CustomerID = currentCutomerPaymenMethod.BAccountID, PMInstanceID = currentCutomerPaymenMethod.PMInstanceID, CallerGraph = graph }; cim.GetManagePaymentProfileForm(); } }
public virtual void GetManagePaymentProfileForm(PXGraph graph, ICCPaymentProfile paymentProfile) { CCCustomerInformationManager.GetManagePaymentProfileForm(graph, paymentProfile); }
public virtual void GetManagePaymentProfileForm(PXGraph graph, CustomerPaymentMethod currentCutomerPaymenMethod) { CCCustomerInformationManager.GetManagePaymentProfileForm(graph, currentCutomerPaymenMethod); }
public void GetManagePaymentProfileForm <TPaymentMethodType>(PXGraph graph, TPaymentMethodType currentCutomerPaymenMethod) where TPaymentMethodType : CustomerPaymentMethod, new() { CCCustomerInformationManager.GetManagePaymentProfileForm(graph, currentCutomerPaymenMethod); }