Class DefaultPaymentFormActionUrlStrategy

    • Constructor Detail

      • DefaultPaymentFormActionUrlStrategy

        public DefaultPaymentFormActionUrlStrategy()
    • Method Detail

      • setBaseSiteService

        public void setBaseSiteService​(BaseSiteService baseSiteService)
      • setSiteBaseUrlResolutionService

        public void setSiteBaseUrlResolutionService​(SiteBaseUrlResolutionService siteBaseUrlResolutionService)
      • setSiteConfigService

        public void setSiteConfigService​(SiteConfigService siteConfigService)
      • getHopRequestUrl

        public java.lang.String getHopRequestUrl()
        Description copied from interface: PaymentFormActionUrlStrategy
        Gets the URI of the Hosted Order Page. This method read the HOP URL using the configuration service, as such the URL has to be defined in a property file on the class path.
        Specified by:
        getHopRequestUrl in interface PaymentFormActionUrlStrategy
        Returns:
        a URL to the HOP server.
      • getSopRequestUrl

        public java.lang.String getSopRequestUrl​(java.lang.String clientRef)
        Description copied from interface: PaymentFormActionUrlStrategy
        Gets the URI of the Silent Order Post. By default this method will utilize a config property to define the SOP URL. An extension may implement this method to call an external service (e.g., CIS) to get the correct SOP URL.
        Specified by:
        getSopRequestUrl in interface PaymentFormActionUrlStrategy
        Parameters:
        clientRef - unique identifier representing the client in a call to external services.
        Returns:
        a URL to the SOP server.
      • getAdjustRequestURI

        protected java.net.URI getAdjustRequestURI​(java.lang.String urlStr)