Class HPSResponseCodeEvaluator
java.lang.Object
com.broadleafcommerce.vendor.chasepayment.service.hps.support.HPSResponseCodeEvaluator
Component responsible for examining response code details returned in HPS API responses and
understanding the success/failure of the operation.
-
Constructor Summary
ConstructorsConstructorDescriptionHPSResponseCodeEvaluator(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionevaluateQueryResponse(@NonNull HPSQueryResponseEvaluationInput input) Evaluate the HPS UID Query response details and return interpreted information about it.protected com.broadleafcommerce.common.extension.TypeFactoryprotected voidvalidateAvsCheckPassed(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) protected voidvalidateCvvCheckPassed(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) protected voidvalidateGatewayApprovalStatus(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) protected voidvalidateGatewayProcStatus(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) protected voidvalidateGatewayProfileProcStatus(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) protected voidvalidateTopLevelStatus(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output)
-
Constructor Details
-
HPSResponseCodeEvaluator
public HPSResponseCodeEvaluator(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
evaluateQueryResponse
public HPSQueryResponseEvaluationOutput evaluateQueryResponse(@NonNull @NonNull HPSQueryResponseEvaluationInput input) Evaluate the HPS UID Query response details and return interpreted information about it.
- Parameters:
input- the payload containing response details that should be evaluated- Returns:
- the interpreted information about the given response
-
validateTopLevelStatus
protected void validateTopLevelStatus(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) -
validateGatewayProcStatus
protected void validateGatewayProcStatus(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) -
validateGatewayProfileProcStatus
protected void validateGatewayProfileProcStatus(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) -
validateGatewayApprovalStatus
protected void validateGatewayApprovalStatus(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) -
validateCvvCheckPassed
protected void validateCvvCheckPassed(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) -
validateAvsCheckPassed
protected void validateAvsCheckPassed(HPSQueryResponseEvaluationInput input, HPSQueryResponseEvaluationOutput output) -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-