The ccProcessing class provides a base class for provider processing of requests. The class aims at providing a simple, common interface to Credit Card Processing so it's easy to swap providers.
This class acts as an abstract class that requires subclassing and use of a specific provider implementation class. However, because the functionality is so common amongst providers a single codebase can usually accomodate all requests.
Westwind.WebStore.ccProcessing
public class abstract ccProcessing : object
Class Members
Member | Description | |
---|---|---|
AvsCodeToString |
Returns a string for a single AVS code value Supported codes: ANSUWXYZER_ public string AvsCodeToString( string AvsCode ); |
|
Mod10Check |
Determines whether given string passes standard Mod10 check. public static bool Mod10Check( string StringToValidate ); |
|
ValidateCard |
Base ValidateCard method that provides the core CreditCard checking. Should always be called at the beginning of the subclassed overridden method. public virtual bool ValidateCard(); |
|
Address |
Billing Street Address. | |
AuthorizationCode |
Authorization Code returned for Approved transactions from the gateway | |
AvsResultCode |
The AVS Result code from the gateway if available | |
CertificatePath |
Used for Linkpoint only. Specifies the path to the certificate file | |
City |
Billing City | |
Comment |
Order Comment. Usually this comment shows up on the CC bill. | |
Company |
Billing Company | |
Country |
Two letter Country Id - US, DE, CH etc. | |
CreditCardExpiration |
Full expiration date in the format 01/2003 | |
CreditCardExpirationMonth |
Credit Card Expiration Month as a string (2 digits ie. 08) | |
CreditCardExpirationYear |
Credit Card Expiration Year as a 4 or 2 digit string | |
CreditCardNumber |
The credit card number. Number can contain spaces and other markup characters which are stripped for processing later. | |
Email address | ||
Error |
Error flag set after a call to ValidateCard if an error occurs. | |
ErrorMessage |
Error message if error flag is set or negative result is returned. Generally this value will contain the value of this.ValidatedResult for processor failures or more general API/HTTP failure messages. | |
Firstname |
First Name of customer's name on the card. Can be used in lieu of Name property. If Firstname and Lastname are used they get combined into a name IF Name is blank. | |
Http |
Reference to an wwHttp object. You can preseed this object after instantiation to allow setting custom HTTP settings prior to calling ValidateCard(). | |
HttpLink |
The link to hit on the server. Depending on the interface this can be a URL or domainname or domainname:Port combination. | |
Lastname |
Last Name of customer's name on the card. Can be used in lieu of Name property. If Firstname and Lastname are used they get combined into a name IF Name is blank. | |
LogFile |
Optional path to the log file used to write out request results. If this filename is blank no logging occurs. The filename specified here needs to be a fully qualified operating system path and the application has to be able to write to this path. | |
MerchantId |
The merchant Id or store name or other mechanism used to identify your account. | |
MerchantPassword |
The merchant password for your merchant account. Not used in most cases. | |
Name |
First name and last name on the card | |
OrderAmount |
The amount of the order. | |
OrderId |
The Order Id as a string. This is mainly for reference but should be unique. | |
Phone |
Billing Phone Number | |
ProcessType |
Determines what type of transaction is being processed (Sale, Credit, PreAuth) | |
RawProcessorRequest |
This is a string that contains the format that's sent to the processor. Not used with all providers, but this property can be used for debugging and seeing what exactly gets sent to the server. | |
RawProcessorResult |
The raw response from the Credit Card Processor Server. | |
ReferingUrl |
Referring Url used with certain providers | |
SecurityCode |
The 3 or 4 letter digit that is on the back of the card | |
State |
Billing State (2 letter code or empty for foreign) | |
TaxAmount |
The amount of Tax for this transaction | |
Timeout |
Timeout in seconds for the connection against the remote processor | |
TransactionId |
The Transaction ID returned from the server. Use to match transactions against the gateway for reporting. | |
UseMod10Check |
Determines whether a Mod10Check is performed before sending the credit card to the processor. Turn this off for testing so you can at least get to the provider. | |
UseTestTransaction |
Optional flag that determines whether to send a test transaction Not supported for AccessPoint | |
ValidatedMessage |
The parsed error message from the server if result is not APPROVED This message generally is a string regarding the failure like 'Invalid Card' 'AVS Error' etc. This info may or may not be appropriate for your customers to see - that's up to you. | |
ValidatedResult |
The parsed short form response. APPROVED, DECLINED, FAILED, FRAUD | |
Zip |
Postal or Zip code |
Requirements
Namespace: Westwind.WebStoreAssembly: webstorebusiness.dll
© West Wind Technologies, 1996-2018 • Updated: 03/07/06
Comment or report problem with topic