Class CisSapDigitalPaymentFormActionUrlStrategy

  • All Implemented Interfaces:
    PaymentFormActionUrlStrategy

    public class CisSapDigitalPaymentFormActionUrlStrategy
    extends java.lang.Object
    implements PaymentFormActionUrlStrategy
    Implementation class for PaymentFormActionUrlStrategy. SAP Digital payment extension only handle HOP request.
    • Constructor Detail

      • CisSapDigitalPaymentFormActionUrlStrategy

        public CisSapDigitalPaymentFormActionUrlStrategy()
    • Method Detail

      • getHopRequestUrl

        public java.lang.String getHopRequestUrl()
        Invoke the CisSapDigitalPaymentService to get the registration URL and the session ID. Session ID is saved to Hybris session which is ater used to poll the registered card with SAP Digital payment. The URL is passed to the facade layer and the user will be redirected to this URL to make payment
        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.
      • getCisSapDigitalPaymentService

        public CisSapDigitalPaymentService getCisSapDigitalPaymentService()
        Returns:
        the cisSapDigitalPaymentService
      • setCisSapDigitalPaymentService

        public void setCisSapDigitalPaymentService​(CisSapDigitalPaymentService cisSapDigitalPaymentService)
        Parameters:
        cisSapDigitalPaymentService - the cisSapDigitalPaymentService to set
      • getPaymentFormActionUrlStrategy

        public PaymentFormActionUrlStrategy getPaymentFormActionUrlStrategy()
        Returns:
        the paymentFormActionUrlStrategy
      • setPaymentFormActionUrlStrategy

        public void setPaymentFormActionUrlStrategy​(PaymentFormActionUrlStrategy paymentFormActionUrlStrategy)
        Parameters:
        paymentFormActionUrlStrategy - the paymentFormActionUrlStrategy to set
      • getSessionService

        public SessionService getSessionService()
        Returns:
        the sessionService
      • setSessionService

        public void setSessionService​(SessionService sessionService)
        Parameters:
        sessionService - the sessionService to set