Class CisSapDigitalPaymentFormActionUrlStrategy
- java.lang.Object
-
- de.hybris.platform.cissapdigitalpayment.strategies.impl.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 Summary
Constructors Constructor Description CisSapDigitalPaymentFormActionUrlStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CisSapDigitalPaymentServicegetCisSapDigitalPaymentService()java.lang.StringgetHopRequestUrl()Invoke the CisSapDigitalPaymentService to get the registration URL and the session ID.PaymentFormActionUrlStrategygetPaymentFormActionUrlStrategy()SessionServicegetSessionService()java.lang.StringgetSopRequestUrl(java.lang.String clientRef)Gets the URI of the Silent Order Post.voidsetCisSapDigitalPaymentService(CisSapDigitalPaymentService cisSapDigitalPaymentService)voidsetPaymentFormActionUrlStrategy(PaymentFormActionUrlStrategy paymentFormActionUrlStrategy)voidsetSessionService(SessionService sessionService)
-
-
-
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:
getHopRequestUrlin interfacePaymentFormActionUrlStrategy- Returns:
- a URL to the HOP server.
-
getSopRequestUrl
public java.lang.String getSopRequestUrl(java.lang.String clientRef)
Description copied from interface:PaymentFormActionUrlStrategyGets 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:
getSopRequestUrlin interfacePaymentFormActionUrlStrategy- 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
-
-