Class HPSValidationDiscriminatedProperties
java.lang.Object
com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<HPSValidationDiscriminatedProperties>
com.broadleafcommerce.vendor.chasepayment.service.hps.autoconfigure.HPSValidationDiscriminatedProperties
@ConfigurationProperties("broadleaf.chase-payment.hps.validation.discriminated")
public class HPSValidationDiscriminatedProperties
extends com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<HPSValidationDiscriminatedProperties>
Configuration properties configuring validation behavior around HPS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValidateHpsProfileAndBlcPaymentContextConsistency(String applicationId, String tenantId) booleangetValidateHpsProfileAndBlcPaymentOwnerConsistency(String applicationId, String tenantId) protected voidlogUnresolvedPropertyError(String propertyFriendlyName, String propertyPath, String applicationId, String tenantId) voidsetValidateHpsProfileAndBlcPaymentContextConsistency(boolean validateHpsProfileAndBlcPaymentContextConsistency) By default, when the HPS init request is initially made, our backend will track a minimal representation of the ContextRequest in the HPS metadata.voidsetValidateHpsProfileAndBlcPaymentOwnerConsistency(boolean validateHpsProfileAndBlcPaymentOwnerConsistency) By default, when the HPS init request is initially made, our backend will track a minimal representation of the intended payment owner type and payment owner ID in the HPS metadata.Methods inherited from class com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties
getApplication, getField, getTenant, setApplication, setTenant
-
Constructor Details
-
HPSValidationDiscriminatedProperties
public HPSValidationDiscriminatedProperties()
-
-
Method Details
-
getValidateHpsProfileAndBlcPaymentContextConsistency
-
getValidateHpsProfileAndBlcPaymentOwnerConsistency
-
logUnresolvedPropertyError
-
setValidateHpsProfileAndBlcPaymentContextConsistency
public void setValidateHpsProfileAndBlcPaymentContextConsistency(boolean validateHpsProfileAndBlcPaymentContextConsistency) By default, when the HPS init request is initially made, our backend will track a minimal representation of the ContextRequest in the HPS metadata. After the customer submits the HPS form/page, the next step is typically to create a BLC Payment object with the results. When this flag is enabled, at BLC Payment creation time, the backend will verify that the recorded ContextRequest information for the HPS interaction matches the context that the BLC Payment is being created in. This ensures an HPS profile created for a different application/tenant cannot be used to create a BLC Payment in a different application/tenant. When this flag is disabled, that verification is skipped. -
setValidateHpsProfileAndBlcPaymentOwnerConsistency
public void setValidateHpsProfileAndBlcPaymentOwnerConsistency(boolean validateHpsProfileAndBlcPaymentOwnerConsistency) By default, when the HPS init request is initially made, our backend will track a minimal representation of the intended payment owner type and payment owner ID in the HPS metadata. After the customer submits the HPS form/page, the next step is typically to create a BLC Payment object with the results. When this flag is enabled, at BLC Payment creation time, the backend will verify that the recorded payment owner information for the HPS interaction matches the payment owner information that the BLC Payment is being created for. This ensures, for example, that a profile created for cartX cannot be used to create a payment for cartY. When this flag is disabled, that verification is skipped.
-