|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PaymentProcessor
public abstract class PaymentProcessor
Payment Processor Abstract Class
| Field Summary | |
|---|---|
static char |
AMP
Ampersand |
static String |
ENCODING
Encoding (ISO-8859-1 - UTF-8) |
static char |
EQ
Equals |
protected CLogger |
log
Logger |
protected MPayment |
p_mp
|
protected MPaymentProcessor |
p_mpp
|
| Constructor Summary | |
|---|---|
PaymentProcessor()
Public Constructor |
|
| Method Summary | |
|---|---|
protected String |
connectPost(String urlString,
String parameter)
Connect via Post |
static PaymentProcessor |
create(MPaymentProcessor mpp,
MPayment mp)
Factory |
protected String |
createPair(String name,
BigDecimal value,
int maxLength)
Check for delimiter fields &= and add length of not encoded |
protected String |
createPair(String name,
int value,
int maxLength)
Check for delimiter fields &= and add length of not encoded |
protected String |
createPair(String name,
String value,
int maxLength)
Check for delimiter fields &= and add length of not encoded |
protected Properties |
getConnectPostProperties(String urlString,
String parameter)
Get Connect Post Properties |
int |
getTimeout()
Get Timeout |
boolean |
isEncoded()
Is Encoded |
abstract boolean |
isProcessedOK()
Payment is procesed successfully |
abstract boolean |
processCC()
Process CreditCard (no date check) |
void |
setEncoded(boolean doEncode)
Set Encoded |
void |
setTimeout(int newTimeout)
Set Timeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CLogger log
public static final String ENCODING
public static final char AMP
public static final char EQ
protected MPaymentProcessor p_mpp
protected MPayment p_mp
| Constructor Detail |
|---|
public PaymentProcessor()
| Method Detail |
|---|
public static PaymentProcessor create(MPaymentProcessor mpp,
MPayment mp)
mpp - payment processor modelmp - payment model
public abstract boolean processCC()
throws IllegalArgumentException
IllegalArgumentExceptionpublic abstract boolean isProcessedOK()
public void setTimeout(int newTimeout)
newTimeout - timeoutpublic int getTimeout()
protected String createPair(String name,
BigDecimal value,
int maxLength)
name - namevalue - valuemaxLength - maximum length
protected String createPair(String name,
int value,
int maxLength)
name - namevalue - valuemaxLength - maximum length
protected String createPair(String name,
String value,
int maxLength)
name - namevalue - valuemaxLength - maximum length
public void setEncoded(boolean doEncode)
doEncode - true if encodepublic boolean isEncoded()
protected Properties getConnectPostProperties(String urlString,
String parameter)
urlString - POST url stringparameter - parameter
protected String connectPost(String urlString,
String parameter)
urlString - url destination (assuming https)parameter - parameter
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||