public class InStorePaymentProcessorImpl extends GenericService implements InStorePaymentProcessor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
InStorePaymentProcessorImpl() |
| Modifier and Type | Method and Description |
|---|---|
PaymentStatus |
authorize(InStorePaymentInfo pInStorePaymentInfo)
Authorize the use of in store payment.
|
protected PaymentStatus |
createSuccessStatus(double pAmount)
Create an instance of a PaymentStatus reflecting a successful transaction.
|
PaymentStatus |
credit(InStorePaymentInfo pInStorePaymentInfo)
Process refunds/credits on payments made by in store payment as a new order
|
PaymentStatus |
credit(InStorePaymentInfo pInStorePaymentInfo,
PaymentStatus pStatus)
Process refunds/credits on payments made by in store payment.
|
PaymentStatus |
debit(InStorePaymentInfo pInStorePaymentInfo,
PaymentStatus pStatus)
Process payment by in store payment.
|
CurrentDate |
getClock()
Return the "clock" component used to generate timestamps
|
protected java.lang.String |
nextTransactionId()
Generate a unique transaction id.
|
void |
setClock(CurrentDate pClock)
Set the "clock" component used to generate timestamps
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic PaymentStatus authorize(InStorePaymentInfo pInStorePaymentInfo)
InStorePaymentProcessorauthorize in interface InStorePaymentProcessorpInStorePaymentInfo - the InStorePaymentInfo that contains authorization datapublic PaymentStatus debit(InStorePaymentInfo pInStorePaymentInfo, PaymentStatus pStatus)
InStorePaymentProcessordebit in interface InStorePaymentProcessorpInStorePaymentInfo - the InStorePaymentInfo that contains debit datapStatus - the PaymentStatus object that contains information about the
transaction. This will be the object that was returned by the
last call to authorize().public PaymentStatus credit(InStorePaymentInfo pInStorePaymentInfo, PaymentStatus pStatus)
InStorePaymentProcessorcredit in interface InStorePaymentProcessorpInStorePaymentInfo - the InStorePaymentInfo that contains credit datapStatus - the PaymentStatus object that contains information about the
transaction. This will be the object that was returned by the
last call to debit().public PaymentStatus credit(InStorePaymentInfo pInStorePaymentInfo)
InStorePaymentProcessorcredit in interface InStorePaymentProcessorpInStorePaymentInfo - the InStorePaymentInfo that contains credit dataprotected java.lang.String nextTransactionId()
protected PaymentStatus createSuccessStatus(double pAmount)
public void setClock(CurrentDate pClock)
public CurrentDate getClock()