West Wind Web Store .NET 2.0
|
ccProcessing.CreateProcessor
|
ccProcessing CC = ccProcessing.CreateProcessor(CCType); if (CC == null) { this.SetError("Invalid Credit Card Processor or Processor not supported"); return false; } CC.MerchantId = App.Configuration.CCMerchantId; CC.MerchantPassword = App.Configuration.CCMerchantPassword; // ... set other properties bool Result = CC.ValidateCard(); // *** deal with the results Inv.Ccresult = CC.ValidatedResult; if (!Result) { this.ErrorMessage = CC.ValidatedMessage; Inv.Ccerror = this.ErrorMessage; } // *** Always write out the raw response if (wwUtils.Empty(CC.RawProcessorResult)) Inv.Ccresultx = CC.ValidatedMessage; else Inv.Ccresultx = CC.RawProcessorResult;
public static ccProcessing CreateProcessor(ccProcessors CCType)
Last Updated: 9/11/2007 |
Send topic feedback