public interface TransactionRequestHandler<T extends Transaction,O extends Order> extends ChangeGenerator<Object>
Transaction from an Order and also persist the Transaction
ChangeGenerator| Modifier and Type | Method and Description |
|---|---|
T |
transact(O order,
PaymentOption paymentOption,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Perform the Transaction
The transaction is not expected to exist prior to this method call. |
addChangeListener, getListeners, notifyAllListeners, setListenersT transact(O order, PaymentOption paymentOption, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws TransactionException, Continue
Transactionorder - as OrderpaymentOption - as PaymentOption @nullable true; optional and only required by the transaction handler if for the given Payment Method there are furthermultiple optionsrequest - as HttpServletRequestresponse - as HttpServletResponseTransactionTransactionException - for any genuine problem{@link - Continue} or an extension of it; if there is successful processing and we need to redirect to a Web Page immediately/directly; while ensuring nothing is written to an Out Stream (response.redirect) scenarios
Continue.getPayload() will contain the Object[] {redirectURL, Transaction}
Continue provides a generic payload. To be more specific use a more specific implementation of Continue
like WebPageTransactionRequest, WebURLTransactionRequest etc.ContinueCopyright © 2018. All rights reserved.