public abstract class AbstractOnlineTransactionRequestHandler<T extends Transaction,O extends Order> extends Object implements OnlinePayment<T,O>
TransactionService
aspectsModifier and Type | Field and Description |
---|---|
protected Properties |
appConfiguration |
protected static org.slf4j.Logger |
audit |
String |
GATEWAY_NAME
The Gateway used to make the payment
|
String |
GATEWAY_RESOURCES
Path where the Certificate/Key or related resources are for the Gateway
|
String |
HOST_IP
Setup Host IP (since a computer can have multiple addresses, the preferred address should be specified)
If "localhost" then it will derive the host / default from the System.
|
String |
MERCHANT_ID
Setup Merchant Id
|
String |
TRANSACTION_ID_PREFIX
For different environments we may want to differentiate Transactions and not have it all in a sequence.
|
Constructor and Description |
---|
AbstractOnlineTransactionRequestHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener changeListener)
Allow Notify all
ChangeListener s about a change |
List |
getListeners()
Get list directly.
|
protected String |
getTransactionId(Order order)
Used to derive Transaction Id
TODO: Add unit test case
|
void |
init() |
void |
notifyAllListeners(Object object)
Whenever a node is selected/updated, it also notifies its listeners.
|
void |
setListeners(List listeners)
Set list directly.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transact
protected static org.slf4j.Logger audit
@Autowired @Qualifier(value="appConfiguration") protected Properties appConfiguration
public String MERCHANT_ID
public String GATEWAY_NAME
public String HOST_IP
public String TRANSACTION_ID_PREFIX
public String GATEWAY_RESOURCES
public AbstractOnlineTransactionRequestHandler()
@PostConstruct public void init() throws Exception
Exception
protected String getTransactionId(Order order)
public void addChangeListener(ChangeListener changeListener)
ChangeGenerator
ChangeListener
s about a changeaddChangeListener
in interface ChangeGenerator<Object>
public void notifyAllListeners(Object object)
ChangeGenerator
notifyAllListeners
in interface ChangeGenerator<Object>
public List getListeners()
ChangeGenerator
getListeners
in interface ChangeGenerator<Object>
public void setListeners(List listeners)
ChangeGenerator
setListeners
in interface ChangeGenerator<Object>
Copyright © 2018. All rights reserved.