java.lang.Object
de.hybris.platform.acceleratorservices.web.payment.validation.AbstractMockUrlValidator
de.hybris.platform.acceleratorservices.web.payment.validation.SopMockUrlValidator

@Component("sopMockUrlValidator") public class SopMockUrlValidator extends AbstractMockUrlValidator
  • Field Details

  • Constructor Details

    • SopMockUrlValidator

      public SopMockUrlValidator()
  • Method Details

    • getPaymentResponseEndRelativeUrl

      protected String getPaymentResponseEndRelativeUrl()
      Specified by:
      getPaymentResponseEndRelativeUrl in class AbstractMockUrlValidator
    • validateMerchantCallBackUrl

      public boolean validateMerchantCallBackUrl(String url)
      Validate the passed merchant callback url, if it is allowed or not. For a Url to be allowed it must be only containing allowed scheme, host and port. Allowed hosts are picked up from config property acceleratorservices.merchant.callback.url.allowlist Also the url must contain the relative path (/integration/merchant_callback OR /payment/sop/response).

      If the property acceleratorservices.payment.url.strict.enabled is set to false this method only does scheme validation UrlSchemeValidator, and skips other validations.

      Parameters:
      url - url to be validated.
      Returns:
      true if url is allowed, otherwise false.