Compiere 3.1

org.compiere.model
Class PP_Optimal

java.lang.Object
  extended by org.compiere.model.PaymentProcessor
      extended by 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
protected static String ACCOUNT_ID
           
protected static String ACTIVE_RECOVERY
           
protected static String AMOUNT
           
protected static String AUTH_CODE
           
protected static String AUTH_TIME
           
protected static String AUTHORIZATION_COMPLETE
           
protected static String AUTHORIZATION_FAILED
           
protected static String AVS_INFO
           
protected static Properties AVSCodes
          AVS Codes
protected static String CARD_EXPIRATION
           
protected static String CARD_NUMBER
           
protected static String CARD_TYPE
           
protected static Properties CARDTypes
          Card Types
protected static String CIPHER
           
protected static String CITY
           
protected static String CLIENT_VERSION
           
protected static String COUNTRY
           
protected static String CURRENT_AMOUNT
           
protected static String CUST_NAME1
           
protected static String CUST_NAME2
           
protected static String CVD_INDICATOR
           
protected static String CVD_INDICATOR_None
           
protected static String CVD_INDICATOR_Provided
           
protected static String CVD_INFO
           
protected static String CVD_VALUE
           
protected static Properties CVDInfo
          CVD Info
protected static String EMAIL
           
protected static String ERROR_CODE
           
protected static String ERROR_STRING
           
protected static String FAILURE_LOOKUP_OPERATION
           
protected static String HTTPVERSION
           
protected static String LOG_BASE_PATH
           
protected static String LOG_FILENAME
           
protected static String LOG_MAX_BACKUP
           
protected static String LOG_MAX_SIZE
           
protected static String LOGLEVEL
           
protected static String MANUAL_INTERVENTION
           
protected static String MERCHANT_DATA
           
protected static String MERCHANT_ID
           
protected static String MERCHANT_PWD
           
protected static String MERCHANT_TXN
           
protected static String OPERATION
          Operation p1-8
protected static String OPERATION_Authorization
           
protected static String OPERATION_Purchase
           
protected static String OPERATION_Settlement
           
protected static String PAYMENT_SERVER
           
protected static String PAYMENT_SERVER_PORT
           
protected static String PHONE
           
protected static String PROVINCE
           
protected static String PROXY_PORT
           
protected static String PROXY_PWD
           
protected static String PROXY_SERVER
           
protected static String PROXY_USERID
           
protected static String QUERY_OPERATION
           
protected static String REQUEST_ABORTED
           
protected static String REQUEST_COMPLETE
           
protected static String REQUEST_ERROR
           
protected static String REQUEST_FAILED
           
protected static String REQUEST_NOT_FOUND
           
protected static String REQUEST_PENDING
           
protected static String RETRIES
           
protected static String SETTLEMENT_COMPLETE
           
protected static String SETTLEMENT_FAILED
           
protected static String STATUS
           
protected static String STATUS_SEARCH_COMPLETED
           
protected static String STREET
           
protected static String STREET2
           
protected static String SUB_ERROR
           
protected static String SUB_ERROR_STRING
           
protected static String TIMEOUT
           
protected static String TXN_NUMBER
           
protected static String TXN_TYPE
           
protected static String UNKNOWN_TYPE
           
protected static String ZIP
           
 
Fields inherited from class org.compiere.model.PaymentProcessor
AMP, ENCODING, EQ, log, p_mp, p_mpp
 
Constructor Summary
PP_Optimal()
          PP_Optimal
 
Method Summary
 String getVersion()
          Get Version
 boolean isProcessedOK()
          Is Processed OK
static void main(String[] args)
          Test
 boolean processCC()
          Process CC
 
Methods inherited from class org.compiere.model.PaymentProcessor
connectPost, create, createPair, createPair, createPair, getConnectPostProperties, getTimeout, isEncoded, setEncoded, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 final Properties AVSCodes
AVS Codes


CARDTypes

protected static final Properties CARDTypes
Card Types


CVDInfo

protected static final Properties CVDInfo
CVD Info

Constructor Detail

PP_Optimal

public PP_Optimal()
PP_Optimal

Method Detail

getVersion

public String getVersion()
Get Version

Returns:
version

processCC

public boolean processCC()
                  throws IllegalArgumentException
Process CC

Specified by:
processCC in class PaymentProcessor
Returns:
true if OK
Throws:
IllegalArgumentException

isProcessedOK

public boolean isProcessedOK()
Is Processed OK

Specified by:
isProcessedOK in class PaymentProcessor
Returns:
true of ok

main

public static void main(String[] args)
Test

Parameters:
args - ifnored

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.