Package org.compiere.model
Class PP_Optimal
- java.lang.Object
-
- org.compiere.model.PaymentProcessor
-
- org.compiere.model.PP_Optimal
-
- All Implemented Interfaces:
Serializable
public class PP_Optimal extends PaymentProcessor implements Serializable
Optimal Payment Processor Services Interface.- Version:
- $Id: PP_Optimal.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringACCOUNT_IDprotected static StringACTIVE_RECOVERYprotected static StringAMOUNTprotected static StringAUTH_CODEprotected static StringAUTH_TIMEprotected static StringAUTHORIZATION_COMPLETEprotected static StringAUTHORIZATION_FAILEDprotected static StringAVS_INFOprotected static PropertiesAVSCodesAVS Codesprotected static StringCARD_EXPIRATIONprotected static StringCARD_NUMBERprotected static StringCARD_TYPEprotected static PropertiesCARDTypesCard Typesprotected static StringCIPHERprotected static StringCITYprotected static StringCLIENT_VERSIONprotected static StringCOUNTRYprotected static StringCURRENT_AMOUNTprotected static StringCUST_NAME1protected static StringCUST_NAME2protected static StringCVD_INDICATORprotected static StringCVD_INDICATOR_Noneprotected static StringCVD_INDICATOR_Providedprotected static StringCVD_INFOprotected static StringCVD_VALUEprotected static PropertiesCVDInfoCVD Infoprotected static StringEMAILprotected static StringERROR_CODEprotected static StringERROR_STRINGprotected static StringFAILURE_LOOKUP_OPERATIONprotected static StringHTTPVERSIONprotected static StringLOG_BASE_PATHprotected static StringLOG_FILENAMEprotected static StringLOG_MAX_BACKUPprotected static StringLOG_MAX_SIZEprotected static StringLOGLEVELprotected static StringMANUAL_INTERVENTIONprotected static StringMERCHANT_DATAprotected static StringMERCHANT_IDprotected static StringMERCHANT_PWDprotected static StringMERCHANT_TXNprotected static StringOPERATIONOperation p1-8protected static StringOPERATION_Authorizationprotected static StringOPERATION_Purchaseprotected static StringOPERATION_Settlementprotected static StringPAYMENT_SERVERprotected static StringPAYMENT_SERVER_PORTprotected static StringPHONEprotected static StringPROVINCEprotected static StringPROXY_PORTprotected static StringPROXY_PWDprotected static StringPROXY_SERVERprotected static StringPROXY_USERIDprotected static StringQUERY_OPERATIONprotected static StringREQUEST_ABORTEDprotected static StringREQUEST_COMPLETEprotected static StringREQUEST_ERRORprotected static StringREQUEST_FAILEDprotected static StringREQUEST_NOT_FOUNDprotected static StringREQUEST_PENDINGprotected static StringRETRIESprotected static StringSETTLEMENT_COMPLETEprotected static StringSETTLEMENT_FAILEDprotected static StringSTATUSprotected static StringSTATUS_SEARCH_COMPLETEDprotected static StringSTREETprotected static StringSTREET2protected static StringSUB_ERRORprotected static StringSUB_ERROR_STRINGprotected static StringTIMEOUTprotected static StringTXN_NUMBERprotected static StringTXN_TYPEprotected static StringUNKNOWN_TYPEprotected static StringZIP
-
Constructor Summary
Constructors Constructor Description PP_Optimal()PP_Optimal
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetVersion()Get VersionbooleanisProcessedOK()Is Processed OKstatic voidmain(String[] args)TestbooleanprocessCC()Process CC-
Methods inherited from class org.compiere.model.PaymentProcessor
connectPost, create, createPair, createPair, createPair, getConnectPostProperties, getTimeout, initialize, isEncoded, setEncoded, setTimeout, validate, validateAccountNo, validateCheckNo, validateCreditCard
-
-
-
-
Field Detail
-
MERCHANT_ID
protected static final String MERCHANT_ID
- See Also:
- Constant Field Values
-
MERCHANT_PWD
protected static final String MERCHANT_PWD
- See Also:
- Constant Field Values
-
ACCOUNT_ID
protected static final String ACCOUNT_ID
- See Also:
- Constant Field Values
-
CIPHER
protected static final String CIPHER
- See Also:
- Constant Field Values
-
PAYMENT_SERVER
protected static final String PAYMENT_SERVER
- See Also:
- Constant Field Values
-
PAYMENT_SERVER_PORT
protected static final String PAYMENT_SERVER_PORT
- See Also:
- Constant Field Values
-
PROXY_SERVER
protected static final String PROXY_SERVER
- See Also:
- Constant Field Values
-
PROXY_PORT
protected static final String PROXY_PORT
- See Also:
- Constant Field Values
-
PROXY_USERID
protected static final String PROXY_USERID
- See Also:
- Constant Field Values
-
PROXY_PWD
protected static final String PROXY_PWD
- See Also:
- Constant Field Values
-
ACTIVE_RECOVERY
protected static final String ACTIVE_RECOVERY
- See Also:
- Constant Field Values
-
HTTPVERSION
protected static final String HTTPVERSION
- See Also:
- Constant Field Values
-
RETRIES
protected static final String RETRIES
- See Also:
- Constant Field Values
-
TIMEOUT
protected static final String TIMEOUT
- See Also:
- Constant Field Values
-
LOGLEVEL
protected static final String LOGLEVEL
- See Also:
- Constant Field Values
-
LOG_BASE_PATH
protected static final String LOG_BASE_PATH
- See Also:
- Constant Field Values
-
LOG_FILENAME
protected static final String LOG_FILENAME
- See Also:
- Constant Field Values
-
LOG_MAX_SIZE
protected static final String LOG_MAX_SIZE
- See Also:
- Constant Field Values
-
LOG_MAX_BACKUP
protected static final String LOG_MAX_BACKUP
- See Also:
- Constant Field Values
-
MERCHANT_TXN
protected static final String MERCHANT_TXN
- See Also:
- Constant Field Values
-
MERCHANT_DATA
protected static final String MERCHANT_DATA
- See Also:
- Constant Field Values
-
CLIENT_VERSION
protected static final String CLIENT_VERSION
- See Also:
- Constant Field Values
-
TXN_NUMBER
protected static final String TXN_NUMBER
- See Also:
- Constant Field Values
-
CARD_NUMBER
protected static final String CARD_NUMBER
- See Also:
- Constant Field Values
-
CARD_EXPIRATION
protected static final String CARD_EXPIRATION
- See Also:
- Constant Field Values
-
CARD_TYPE
protected static final String CARD_TYPE
- See Also:
- Constant Field Values
-
STREET
protected static final String STREET
- See Also:
- Constant Field Values
-
STREET2
protected static final String STREET2
- See Also:
- Constant Field Values
-
EMAIL
protected static final String EMAIL
- See Also:
- Constant Field Values
-
PHONE
protected static final String PHONE
- See Also:
- Constant Field Values
-
PROVINCE
protected static final String PROVINCE
- See Also:
- Constant Field Values
-
COUNTRY
protected static final String COUNTRY
- See Also:
- Constant Field Values
-
CITY
protected static final String CITY
- See Also:
- Constant Field Values
-
ZIP
protected static final String ZIP
- See Also:
- Constant Field Values
-
CVD_INDICATOR
protected static final String CVD_INDICATOR
- See Also:
- Constant Field Values
-
CVD_INDICATOR_None
protected static final String CVD_INDICATOR_None
- See Also:
- Constant Field Values
-
CVD_INDICATOR_Provided
protected static final String CVD_INDICATOR_Provided
- See Also:
- Constant Field Values
-
CVD_VALUE
protected static final String CVD_VALUE
- See Also:
- Constant Field Values
-
CVD_INFO
protected static final String CVD_INFO
- See Also:
- Constant Field Values
-
CUST_NAME1
protected static final String CUST_NAME1
- See Also:
- Constant Field Values
-
CUST_NAME2
protected static final String CUST_NAME2
- See Also:
- Constant Field Values
-
STATUS
protected static final String STATUS
- See Also:
- Constant Field Values
-
TXN_TYPE
protected static final String TXN_TYPE
- See Also:
- Constant Field Values
-
AMOUNT
protected static final String AMOUNT
- See Also:
- Constant Field Values
-
CURRENT_AMOUNT
protected static final String CURRENT_AMOUNT
- See Also:
- Constant Field Values
-
ERROR_CODE
protected static final String ERROR_CODE
- See Also:
- Constant Field Values
-
ERROR_STRING
protected static final String ERROR_STRING
- See Also:
- Constant Field Values
-
SUB_ERROR
protected static final String SUB_ERROR
- See Also:
- Constant Field Values
-
SUB_ERROR_STRING
protected static final String SUB_ERROR_STRING
- See Also:
- Constant Field Values
-
AUTH_CODE
protected static final String AUTH_CODE
- See Also:
- Constant Field Values
-
AUTH_TIME
protected static final String AUTH_TIME
- See Also:
- Constant Field Values
-
AVS_INFO
protected static final String AVS_INFO
- See Also:
- Constant Field Values
-
QUERY_OPERATION
protected static final String QUERY_OPERATION
- See Also:
- Constant Field Values
-
FAILURE_LOOKUP_OPERATION
protected static final String FAILURE_LOOKUP_OPERATION
- See Also:
- Constant Field Values
-
OPERATION
protected static final String OPERATION
Operation p1-8- See Also:
- Constant Field Values
-
OPERATION_Purchase
protected static final String OPERATION_Purchase
- See Also:
- Constant Field Values
-
OPERATION_Authorization
protected static final String OPERATION_Authorization
- See Also:
- Constant Field Values
-
OPERATION_Settlement
protected static final String OPERATION_Settlement
- See Also:
- Constant Field Values
-
STATUS_SEARCH_COMPLETED
protected static final String STATUS_SEARCH_COMPLETED
- See Also:
- Constant Field Values
-
REQUEST_PENDING
protected static final String REQUEST_PENDING
- See Also:
- Constant Field Values
-
REQUEST_COMPLETE
protected static final String REQUEST_COMPLETE
- See Also:
- Constant Field Values
-
REQUEST_FAILED
protected static final String REQUEST_FAILED
- See Also:
- Constant Field Values
-
AUTHORIZATION_COMPLETE
protected static final String AUTHORIZATION_COMPLETE
- See Also:
- Constant Field Values
-
AUTHORIZATION_FAILED
protected static final String AUTHORIZATION_FAILED
- See Also:
- Constant Field Values
-
SETTLEMENT_COMPLETE
protected static final String SETTLEMENT_COMPLETE
- See Also:
- Constant Field Values
-
SETTLEMENT_FAILED
protected static final String SETTLEMENT_FAILED
- See Also:
- Constant Field Values
-
MANUAL_INTERVENTION
protected static final String MANUAL_INTERVENTION
- See Also:
- Constant Field Values
-
REQUEST_ABORTED
protected static final String REQUEST_ABORTED
- See Also:
- Constant Field Values
-
REQUEST_NOT_FOUND
protected static final String REQUEST_NOT_FOUND
- See Also:
- Constant Field Values
-
UNKNOWN_TYPE
protected static final String UNKNOWN_TYPE
- See Also:
- Constant Field Values
-
REQUEST_ERROR
protected static final String REQUEST_ERROR
- See Also:
- Constant Field Values
-
AVSCodes
protected static Properties AVSCodes
AVS Codes
-
CARDTypes
protected static Properties CARDTypes
Card Types
-
CVDInfo
protected static Properties CVDInfo
CVD Info
-
-
Method Detail
-
getVersion
public String getVersion()
Get Version- Returns:
- version
-
processCC
public boolean processCC() throws IllegalArgumentExceptionProcess CC- Specified by:
processCCin classPaymentProcessor- Returns:
- true if OK
- Throws:
IllegalArgumentException
-
isProcessedOK
public boolean isProcessedOK()
Is Processed OK- Specified by:
isProcessedOKin classPaymentProcessor- Returns:
- true of ok
-
main
public static void main(String[] args)
Test- Parameters:
args- ifnored
-
-