planetj.dataengine.verisign
Class VerisignPaymentRow
java.lang.Object
planetj.database.Row
planetj.dataengine.verisign.VerisignPaymentRow
- All Implemented Interfaces:
- java.lang.Cloneable, IActionObject, IBatchProcessObject, IBusinessObject, ICSVRow, IFDFObject, IGuarded, INamedCollection, INavigationObject, IRowCreator, IXMLObject, java.io.Serializable
- public abstract class VerisignPaymentRow
- extends Row
A generic super class that adds some Verisign specific functionality
Creation date: 01/03/2005
- See Also:
- Serialized Form
Fields inherited from class planetj.database.Row |
className, DISPLAY_ORDER_COMPARATOR, MODE_ALTER, MODE_COPY, MODE_DELETE, MODE_INSERT, MODE_READ, MODE_SEARCH, MODE_UNKNOWN, MODE_UPDATE, mRowEventListeners |
Method Summary |
java.lang.String |
getAcctLogon()
Get the Verisign account logon |
java.lang.String |
getAcctPwd()
Get the Verisign account password |
java.lang.String |
getCardNumber()
Get the Credit Card Number. |
java.lang.String |
getCardType()
Get the card type. |
java.lang.String |
getCertPath()
Get the current value for the Cert path |
java.lang.String |
getComment1()
Get the comment 1, a merchant-defined value for reporting and auditing purposes. |
java.lang.String |
getComment2()
Get the comment 2, a merchant-defined value for reporting and auditing purposes. |
java.lang.String |
getConfirmationCode()
Get the confirmation code from the transaction. |
java.lang.String |
getConfirmationMessage()
Get the confirmation message from the transaction. |
java.lang.String |
getCustRef()
Get the Customer Reference, a merchant-defined identifier for reporting and auditing purposes. |
java.lang.String |
getExpDate()
Get the credit card expiration date (MMYY) |
java.lang.String |
getHandlingOption()
Get the transaction handling option. |
java.lang.String |
getHostAddress()
Get the current value for the Host Address |
int |
getHostPort()
Get the current value for the Host Address
Defaults to Port 443 for Verisign. |
java.lang.String |
getName()
Get the credit card holder name. |
java.lang.String |
getProxyAddress()
Get the current value for the Proxy Address |
java.lang.String |
getProxyLogon()
Get the current value for the Proxy Logon User ID |
java.lang.String |
getProxyPassword()
Get the current value for the Proxy Password |
int |
getProxyPort()
Get the current value for the Proxy Port |
java.lang.String |
getSecCode()
Get the Card Security Code (from the back of the card). |
java.lang.String |
getStreetAddress()
Get the Street Address. |
int |
getTimeout()
Get the current value for the Timeout |
java.lang.String |
getTransAmt()
Get the credit card transaction amount |
java.lang.String |
getTransType()
Get the transaction type (S = Sale, C = Credit) |
java.lang.String |
getZipCode()
Get the zip code. |
int |
insert(SQLContext context)
Here we need to do some special things due to derived field, and
multiple database we need to insert into. |
boolean |
isCardTypeSet()
Tests if the card type is specified |
boolean |
isComment1Set()
Tests if a cardholder Name is specified |
boolean |
isComment2Set()
Tests if a cardholder Name is specified |
boolean |
isCustRefSet()
Tests if a Customer Reference is specified |
boolean |
isNameSet()
Tests if a cardholder Name is specified |
boolean |
isSecCodeSet()
Tests if a Card Security Code is specified |
boolean |
isStreetAddressSet()
Tests if the street address is specified |
boolean |
isZipCodeSet()
Tests if the zip code is specified |
void |
setAcctLogon(java.lang.String logon)
Set the Verisign account logon/Vendor. |
void |
setAcctPwd(java.lang.String pwd)
Set the Verisign account password. |
void |
setCardNumber(java.lang.String cardNumber)
Set the Credit Card Number to submit to Verisign. |
void |
setCardType(java.lang.String cardType)
Set the Credit Card Type. |
void |
setCertPath(java.lang.String string)
Set the path needed to find the CERT folder on the server. |
void |
setComment1(java.lang.String comment)
Set the comment 1 value, a merchant-defined value for reporting and auditing purposes to submit to Verisign. |
void |
setComment2(java.lang.String comment)
Set the comment 2 value, a merchant-defined value for reporting and auditing purposes to submit to Verisign. |
void |
setCustRef(java.lang.String custRef)
Set the customer reference value, a merchant-defined identifier for reporting and auditing purposes to submit to Verisign. |
void |
setExpDate(java.lang.String expDate)
Set the credit card expiration date (format mmyy), no separators to submit to Verisign. |
void |
setHandlingOption(java.lang.String option)
Set the transaction handling option. |
void |
setHostAddress(java.lang.String string)
Set the VeriSign Host Address. |
void |
setHostPort(int port)
Set the VeriSign Host Port. |
void |
setName(java.lang.String name)
Set the credit card holder name. |
void |
setProxyAddress(java.lang.String string)
Set the VeriSign Proxy Address. |
void |
setProxyLogon(java.lang.String string)
Set the Proxy Logon User ID. |
void |
setProxyPassword(java.lang.String string)
Set the Proxy Logon Password. |
void |
setProxyPort(int port)
Set the VeriSign Proxy Port. |
void |
setSecCode(java.lang.String secCode)
Set the Card Security Code (from the back of the card) to submit to Verisign. |
void |
setStreetAddress(java.lang.String addr)
Set the street address to submit to Verisign. |
void |
setTimeout(int timeout)
Set the transaction Timeout. |
void |
setTransAmt(java.lang.String transAmt)
Set the credit card transaction amount (nnnn.nn), decimal point, no commas to submit to Verisign. |
void |
setTransType(java.lang.String transType)
Set the transaction type (S = Sale, C = Credit). |
void |
setZipCode(java.lang.String zipCode)
Set the zip code to submit to Verisign. |
Methods inherited from class planetj.database.Row |
add, add, addObject, addPropertyChangeListener, addPropertyChangeListener, addRowEventListener, addRowEventListeners, addTable, addToRowCollection, appendDisplayType, batchProcess, clearFields, clearTables, clearValidationException, clone, cloneRow, commitFieldValues, commitFieldValues, commitFieldValues, concatenateFieldFullLengthValues, concatenateFieldValues, containsField, copy, copyIntoRowFieldsWithCommonFieldNames, copyIntoRowFieldsWithCommonFieldNames, copyIntoRowFieldsWithCommonUsageIds, copyIntoRowFieldsWithGivenFieldNames, copyIntoRowFieldsWithGivenFieldNames, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, createAction, createNamedActionRequest, createRow, createSQLContextForDelete, createSQLContextForInsert, createSQLContextForUpdate, dataTransferred, defaultMerge, delete, delete, delete, delete, deleteObject, divide, duplicateKey, duplicateKey, enforceExclusiveOr, equals, equals, equalsInstance, fieldHasPossibleValuesSQLOperation, firePropertyChange, fireRowEvent, getActionDefaultLocation, getActionDescriptor, getActionRequest, getActionRequest, getActions, getActionsForFields, getActionsForOperation, getAssociation, getAssociation, getAssociationByOperationUsageId, getAssociationOperation, getAttribute, getAutoIncrementDatabaseDrivenField, getBackgroundColor, getChangedFields, getChildren, getColumnSpan, getCompleteRow, getCompleteRow, getConcurrentFields, getConfigProperty, getCopiedFieldValues, getCreationContext, getCSVRow, getCSVRow, getDatabaseRow, getDatabaseRow, getDatabaseRow, getDatabaseRow, getDBSystem, getDeleteConfirmation, getDeleteConfirmationMessage, getDisjointRowClass, getDisplayValue, getDisplayValueByUsageId, getDisplayValueForKey, getErrorMessageForOperation, getExternalName, getExternalNames, getFDFData, getFDTable, getField, getField, getField, getFieldAssociationOperation, getFieldCollection, getFieldDefaultValue, getFieldDescriptor, getFieldDescriptor, getFieldDescriptor, getFieldDescriptorsWithUsage, getFieldDescriptorsWithUsageId, getFieldDescriptorWithUsageId, getFieldDisplayComponent, getFieldDisplayOrder, getFieldDisplayValue, getFieldDisplayValue, getFieldExternalName, getFieldFieldClassParameters, getFieldFieldSetName, getFieldIncrementor, getFieldMaxLength, getFieldNames, getFieldNames, getFieldPossibleValues, getFields, getFields, getFieldSearchDefaultValue, getFieldSets, getFieldsForInsert, getFieldSQLObject, getFieldStatusChange, getFieldsToDisplay, getFieldsToDisplayStrict, getFieldsToDisplayStrict, getFieldStyleClass, getFieldsWithUsageId, getFieldUsageIds, getFieldValue, getFieldValueWithUsageId, getFieldWithUsageId, getHeaderText, getHorizontalAlignment, getJSPFor, getKeyFieldNames, getKeyFields, getKeyFields, getLibraryName, getMaxFieldLengths, getMaxFieldLengths, getMaxInsertRetries, getMetaDataSystemAlias, getNamed, getNamed, getNamesOfUpdatedFields, getNavigationKey, getNavigationListKey, getNextOperationToRun, getOperation, getOperation, getOperationFromDB, getOperationFromDBByUsage, getPercentage, getPhysicalFieldNames, getPossibleValueClass, getPossibleValueClass, getPossibleValues, getPossibleValuesKey, getPossibleValuesOperation, getPropertyChangeSupport, getPropertyGroup, getPropertyGroups, getPropertyGroups, getReplacementFieldsToDisplay, getReplacementFieldsToDisplay, getRequiredFields, getRow, getRowCollection, getRowDisplayAttributes, getRowDisplayAttributes, getRowHandledActionNames, getRowKey, getSecuredTypeId, getSecuredTypeName, getSecurityType, getSQL, getSQLContext, getStaticAttribute, getStaticAttributes, getSum, getSystemAlias, getTabbedOperation, getTable, getTable, getTableName, getTables, getTimestamp, getUpdatedFields, getUserMessageForOperation, getUserMessageForOperation, getUseWOWLibrary, getValidationExceptions, getValueAsBoolean, getValueAsByte, getValueAsDate, getValueAsDate, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFullLengthString, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsNumber, getValueAsNumber, getValueAsShort, getValueAsString, getValueAsString, getValueAsStringByUsageId, getValueByUsageId, getValueForKey, getValues, getXMLData, getXMLData, getXMLHeaderData, goToNextOperation, handleAction, hasAssociationOperation, hasChildRows, hasMultipleStyleClasses, hasPossibleValuesKeyClassOrOp, hasPossibleValuesOperation, hasPropertyChangeListeners, incrementFieldValue, initializeRow, initializeRow, initializeRow, initializeRow, initializeRow, initializeRow, insert, insert, insert, is, isActionApplicable, isActionRepeatable, isARow, isARowCollection, isChanged, isChanged, isChangedRealTime, isChangedSinceLastCheck, isCloneNeeded, isContainsAllFields, isCopyable, isCurrent, isDeletable, isDistinctRow, isEditable, isEmpty, isFieldApplicable, isFieldAuthorizedForEdit, isFieldAuthorizedForRead, isFieldAutoIncrement, isFieldAutoIncrementDatabaseDriven, isFieldAutoIncrementWOWDriven, isFieldDisplayable, isFieldPresent, isFieldReadOnly, isFieldReadOnlyOnSearch, isFieldRequired, isFieldRequiredOnSearch, isFieldsChanged, isFieldUpdateable, isFieldValueNotBlank, isFieldValuePossibleValue, isFieldValuesDatabaseDefaults, isGenerateChildRows, isGroupByRow, isGuarded, isHasColumnNames, isInARowCollection, isIncrementorResetAfterMaxInsertRetries, isInitializeDerivedFieldEnabled, isInitializeDerivedFieldsEnabled, isJoinedRow, isKeyFieldsPresent, isLogicalRow, isMultipleDeleteEnabled, isParameterRow, isPersistent, isPhysicalRow, isPrepareFieldValue, isPropertyChangeEventsEnabled, isReturningFromPossibleValuesSearch, isRowDisplayable, isRowKeyed, isSelectable, isStatusChange, isToBeSelected, isUnionRow, isUpdateable, isUseRowForFieldSets, isValidateDerivedFields, isValidateRequired, isValidationRequiredForAutoPopulate, isViewable, iterator, joinedDatabaseAccessFailure, joinedDelete, joinedDelete, joinedInsert, joinedInsert, joinedUpdate, joinedUpdate, merge, newField, newField, newField, newField, openFor, persist, populate, populate, populate, populateFD, postCreate, postDelete, postExtract, postInsert, postInsert, postUpdate, postUpdate, preDelete, preInsert, prepareForDetails, prepareForParameters, prepareForResultsDisplay, prepareFromFieldNames, preUpdate, removeField, removeField, removeNavigationKey, removePropertyChangeListener, removePropertyChangeListener, removeRowEventListener, removeRowEventListeners, replaceField, replaceFields, replaceFieldValues, replaceNumbersWithNames, reread, rereadIfNeeded, resetDisplayValues, rollbackChanges, runSQLQuery, runSQLQuery, runSQLStatement, runSQLStatement, setAttribute, setAutoUpdateFieldValues, setCreationContext, setCreationOperation, setFieldInitialValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValueAsString, setFieldValueAsString, setFieldValuesAsDate, setFieldValuesToDefault, setFieldValuesWithCommonFieldNames, setFieldValuesWithCommonFieldNames, setFieldValuesWithCommonFieldNames, setFieldValuesWithCommonUsageIds, setFieldValueToDefault, setMultipleDeleteEnabled, setNavigationKey, setParameterRow, setPersistent, setPropertyChangeEventsEnabled, setPropertyGroups, setReturningFromPossibleValuesSearch, setRowDisplayAttributes, setSavepoint, setSavepoint, setSavepoint, setStaticAttribute, setTables, setTables, setUseWOWLibrary, setValidateDerivedFields, setValidateRequired, setValues, size, splitAndSetFieldValues, statusChanged, swapFieldValues, toCSV, toDOC, toDOC, toFDF, toPDF, toPDF, toString, toUpperCase, toXML, transferDataTo, transferDataTo, update, update, update, update, updateFieldValues, updateGlobalValues, updateObject, validate, validate, validate, validateField, validateRowOperation |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREDIT_CARD_TYPE_AMERICAN_EXPRESS_OPTIMA
public static final java.lang.String CREDIT_CARD_TYPE_AMERICAN_EXPRESS_OPTIMA
- See Also:
- Constant Field Values
CREDIT_CARD_TYPE_DINERS_CLUB
public static final java.lang.String CREDIT_CARD_TYPE_DINERS_CLUB
- See Also:
- Constant Field Values
CREDIT_CARD_TYPE_DISCOVER
public static final java.lang.String CREDIT_CARD_TYPE_DISCOVER
- See Also:
- Constant Field Values
CREDIT_CARD_TYPE_JCB
public static final java.lang.String CREDIT_CARD_TYPE_JCB
- See Also:
- Constant Field Values
CREDIT_CARD_TYPE_MASTERCARD
public static final java.lang.String CREDIT_CARD_TYPE_MASTERCARD
- See Also:
- Constant Field Values
CREDIT_CARD_TYPE_VISA
public static final java.lang.String CREDIT_CARD_TYPE_VISA
- See Also:
- Constant Field Values
CREDIT_CARD_TYPE_NOT_SPECIFIED
public static final java.lang.String CREDIT_CARD_TYPE_NOT_SPECIFIED
- See Also:
- Constant Field Values
HANDLING_OPTION_INSERT
public static final java.lang.String HANDLING_OPTION_INSERT
- See Also:
- Constant Field Values
HANDLING_OPTION_NOINSERT
public static final java.lang.String HANDLING_OPTION_NOINSERT
- See Also:
- Constant Field Values
VerisignPaymentRow
public VerisignPaymentRow()
getCertPath
public java.lang.String getCertPath()
- Get the current value for the Cert path
- Returns:
getHostAddress
public java.lang.String getHostAddress()
- Get the current value for the Host Address
- Returns:
getHostPort
public int getHostPort()
- Get the current value for the Host Address
Defaults to Port 443 for Verisign.
- Returns:
getTimeout
public int getTimeout()
- Get the current value for the Timeout
- Returns:
getProxyAddress
public java.lang.String getProxyAddress()
- Get the current value for the Proxy Address
- Returns:
getProxyPort
public int getProxyPort()
- Get the current value for the Proxy Port
- Returns:
getProxyLogon
public java.lang.String getProxyLogon()
- Get the current value for the Proxy Logon User ID
- Returns:
getProxyPassword
public java.lang.String getProxyPassword()
- Get the current value for the Proxy Password
- Returns:
getTransType
public java.lang.String getTransType()
- Get the transaction type (S = Sale, C = Credit)
- Returns:
getAcctLogon
public java.lang.String getAcctLogon()
- Get the Verisign account logon
- Returns:
getAcctPwd
public java.lang.String getAcctPwd()
- Get the Verisign account password
- Returns:
getCardNumber
public java.lang.String getCardNumber()
- Get the Credit Card Number. Max length 19, only digits, no spaces or dashes.
- Returns:
getExpDate
public java.lang.String getExpDate()
- Get the credit card expiration date (MMYY)
- Returns:
getTransAmt
public java.lang.String getTransAmt()
- Get the credit card transaction amount
- Returns:
getName
public java.lang.String getName()
- Get the credit card holder name. This is not a required field.
- Returns:
getComment1
public java.lang.String getComment1()
- Get the comment 1, a merchant-defined value for reporting and auditing purposes.
This is not a required field.
- Returns:
getComment2
public java.lang.String getComment2()
- Get the comment 2, a merchant-defined value for reporting and auditing purposes.
This is not a required field.
- Returns:
getCustRef
public java.lang.String getCustRef()
- Get the Customer Reference, a merchant-defined identifier for reporting and auditing purposes.
This is not a required field.
- Returns:
getSecCode
public java.lang.String getSecCode()
- Get the Card Security Code (from the back of the card).
This is not a required field.
- Returns:
getStreetAddress
public java.lang.String getStreetAddress()
- Get the Street Address.
This is not a required field.
- Returns:
getZipCode
public java.lang.String getZipCode()
- Get the zip code.
This is not a required field.
- Returns:
getCardType
public java.lang.String getCardType()
- Get the card type.
This is not a required field.
- Returns:
getHandlingOption
public java.lang.String getHandlingOption()
- Get the transaction handling option.
This is not a required field.
- Returns:
getConfirmationCode
public java.lang.String getConfirmationCode()
- Get the confirmation code from the transaction.
- Returns:
getConfirmationMessage
public java.lang.String getConfirmationMessage()
- Get the confirmation message from the transaction.
- Returns:
insert
public int insert(SQLContext context)
throws CMException
- Here we need to do some special things due to derived field, and
multiple database we need to insert into.
- Overrides:
insert
in class Row
- Returns:
- The number of Rows that were inserted
- Throws:
CMException
isNameSet
public boolean isNameSet()
- Tests if a cardholder Name is specified
isComment1Set
public boolean isComment1Set()
- Tests if a cardholder Name is specified
isComment2Set
public boolean isComment2Set()
- Tests if a cardholder Name is specified
isCustRefSet
public boolean isCustRefSet()
- Tests if a Customer Reference is specified
isSecCodeSet
public boolean isSecCodeSet()
- Tests if a Card Security Code is specified
isStreetAddressSet
public boolean isStreetAddressSet()
- Tests if the street address is specified
isZipCodeSet
public boolean isZipCodeSet()
- Tests if the zip code is specified
isCardTypeSet
public boolean isCardTypeSet()
- Tests if the card type is specified
setCertPath
public void setCertPath(java.lang.String string)
- Set the path needed to find the CERT folder on the server.
- Parameters:
string
-
setHostAddress
public void setHostAddress(java.lang.String string)
- Set the VeriSign Host Address.
This defaults to the live server ==> payflow.verisign.com
For testing, change to ==> test-payflow.verisign.com
- Parameters:
string
-
setHostPort
public void setHostPort(int port)
- Set the VeriSign Host Port. This field is not required and and defaults to 443.
setTimeout
public void setTimeout(int timeout)
- Set the transaction Timeout. This field is not required and and defaults to 30.
setProxyAddress
public void setProxyAddress(java.lang.String string)
- Set the VeriSign Proxy Address. Use the PROXY parameters for servers behind a firewall.
Your network administrator can provide the values. This field is not required and defaults to "".
- Parameters:
string
-
setProxyPort
public void setProxyPort(int port)
- Set the VeriSign Proxy Port. The Proxy server port is not requireed and defaults to "".
setProxyLogon
public void setProxyLogon(java.lang.String string)
- Set the Proxy Logon User ID. This field is not required and defaults to "".
- Parameters:
string
-
setProxyPassword
public void setProxyPassword(java.lang.String string)
- Set the Proxy Logon Password. This field is not required and defaults to "".
- Parameters:
string
-
setTransType
public void setTransType(java.lang.String transType)
throws CMException
- Set the transaction type (S = Sale, C = Credit). This field is not required and defaults to S.
- Throws:
CMException
setAcctLogon
public void setAcctLogon(java.lang.String logon)
- Set the Verisign account logon/Vendor.
setAcctPwd
public void setAcctPwd(java.lang.String pwd)
- Set the Verisign account password.
setCardNumber
public void setCardNumber(java.lang.String cardNumber)
- Set the Credit Card Number to submit to Verisign. Max length 19, only digits, no spaces or dashes.
NOTE: If running tests using the test server, use any of the following allowable test credit card numbers:
5555555555554444
5105105105105100
4111111111111111
4222222222222
setCardType
public void setCardType(java.lang.String cardType)
throws CMException
- Set the Credit Card Type. This value is not used by VeriSign. Used to store in transaction file only.
Use only the following constants:
CREDIT_CARD_TYPE_AMERICAN_EXPRESS_OPTIMA = "American Express"
CREDIT_CARD_TYPE_DINERS_CLUB = "Diners Club"
CREDIT_CARD_TYPE_DISCOVER = "Discover"
CREDIT_CARD_TYPE_JCB = "JCB"
CREDIT_CARD_TYPE_MASTERCARD = "MasterCard"
CREDIT_CARD_TYPE_VISA = "Visa"
CREDIT_CARD_TYPE_NOT_SPECIFIED = ""
This is not a required field. Default is not specified.
- Throws:
CMException
setExpDate
public void setExpDate(java.lang.String expDate)
throws CMException
- Set the credit card expiration date (format mmyy), no separators to submit to Verisign.
- Throws:
CMException
setTransAmt
public void setTransAmt(java.lang.String transAmt)
- Set the credit card transaction amount (nnnn.nn), decimal point, no commas to submit to Verisign.
NOTE: If running tests using the test server, specify a dollar amount of less than $1000, or the transaction will fail.
setName
public void setName(java.lang.String name)
- Set the credit card holder name. This is not a required field.
setComment1
public void setComment1(java.lang.String comment)
- Set the comment 1 value, a merchant-defined value for reporting and auditing purposes to submit to Verisign.
This is not a required field - Max length is 128.
setComment2
public void setComment2(java.lang.String comment)
- Set the comment 2 value, a merchant-defined value for reporting and auditing purposes to submit to Verisign.
This is not a required field - Max length is 128.
setCustRef
public void setCustRef(java.lang.String custRef)
- Set the customer reference value, a merchant-defined identifier for reporting and auditing purposes to submit to Verisign.
This is not a required field - Max length is 12.
setSecCode
public void setSecCode(java.lang.String secCode)
throws CMException
- Set the Card Security Code (from the back of the card) to submit to Verisign.
This is not a required field - Length must be 3 or 4.
- Throws:
CMException
setStreetAddress
public void setStreetAddress(java.lang.String addr)
- Set the street address to submit to Verisign.
This is not a required field - Max length is 30.
setZipCode
public void setZipCode(java.lang.String zipCode)
throws CMException
- Set the zip code to submit to Verisign.
This is not a required field - Zip code must be 5 or 9 digits, with no separators.
- Throws:
CMException
setHandlingOption
public void setHandlingOption(java.lang.String option)
- Set the transaction handling option. Allowed options:
HANDLING_OPTION_NOINSERT = Don't insert a transaction record into the file. Just submit the credit card transaction to Verisign.
HANDLING_OPTION_INSERT = Submit the transaction and and insert a transaction record into the file. This is the default.
This is not a required field.
- Returns: