public interface ResponseHandler
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getValidParameters(HttpServletRequest request)
This method creates a map containing only signed parameters from the request + the signature.
|
boolean |
isDecisionSuccessful(java.util.Map<java.lang.String,java.lang.String> paymentResponse) |
boolean |
isValidSignature(java.util.Map<java.lang.String,java.lang.String> paymentResponse) |
void |
processResponse(AbstractOrderModel order,
java.util.Map<java.lang.String,java.lang.String> paymentResponse)
Processes isv response and creates order payment transactions.
|
java.util.Map<java.lang.String,java.lang.String> getValidParameters(HttpServletRequest request)
request
- SOP/HOP requestvoid processResponse(AbstractOrderModel order, java.util.Map<java.lang.String,java.lang.String> paymentResponse)
order
- the orderpaymentResponse
- the payment response databoolean isValidSignature(java.util.Map<java.lang.String,java.lang.String> paymentResponse)
paymentResponse
- Map containing the signed fields from the request. This map should be the output from getValidParametersboolean isDecisionSuccessful(java.util.Map<java.lang.String,java.lang.String> paymentResponse)
paymentResponse
- the payment response data