Class DefaultCommerceWebServicesPaymentFacade
- java.lang.Object
-
- de.hybris.platform.acceleratorfacades.payment.impl.DefaultPaymentFacade
-
- de.hybris.platform.acceleratorwebservicesaddon.payment.facade.impl.DefaultCommerceWebServicesPaymentFacade
-
- All Implemented Interfaces:
PaymentFacade,CommerceWebServicesPaymentFacade
public class DefaultCommerceWebServicesPaymentFacade extends DefaultPaymentFacade implements CommerceWebServicesPaymentFacade
Default implementation ofCommerceWebServicesPaymentFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultCommerceWebServicesPaymentFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentDatabeginSopCreateSubscription(java.lang.String responseUrl, java.lang.String merchantCallbackUrl)Gets the Silent Order Post request data which includes all data required to create a subscription (customer profile).ConfigurationServicegetConfigurationService()protected java.lang.StringgetFullResponseUrl(java.lang.String url, java.lang.String siteName, boolean isSecure)Resolves a given URL to a full URL including server and port, etc.ModelServicegetModelService()PaymentSubscriptionResultDatagetPaymentSubscriptionResult(java.lang.String cartId)Get payment subscription result related to cart with given idprotected PaymentSubscriptionResultModelgetPaymentSubscriptionResultForCart(java.lang.String cartId)PaymentSubscriptionResultServicegetPaymentSubscriptionResultService()voidremovePaymentSubscriptionResult(java.lang.String cartId)Delete payment subscription result related to cart with given idvoidsavePaymentSubscriptionResult(PaymentSubscriptionResultData paymentSubscriptionResultData, java.lang.String cartId)Save payment subscription result for cart with given idvoidsetConfigurationService(ConfigurationService configurationService)voidsetModelService(ModelService modelService)voidsetPaymentSubscriptionResultService(PaymentSubscriptionResultService paymentSubscriptionResultService)-
Methods inherited from class de.hybris.platform.acceleratorfacades.payment.impl.DefaultPaymentFacade
beginHopCreateSubscription, completeHopCreateSubscription, completeSopCreateSubscription, completeSopCreateSubscription, getBaseSiteService, getCheckoutCustomerStrategy, getCurrentSiteName, getCurrentUserForCheckout, getCustomerAccountService, getDefaultPaymentAddress, getFullResponseUrl, getPaymentService, getPaymentSubscriptionResultDataConverter, getSiteBaseUrlResolutionService, getSiteConfigService, getUserService, setBaseSiteService, setCheckoutCustomerStrategy, setCustomerAccountService, setPaymentService, setPaymentSubscriptionResultDataConverter, setSiteBaseUrlResolutionService, setSiteConfigService, setUserService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.acceleratorfacades.payment.PaymentFacade
beginHopCreateSubscription, completeHopCreateSubscription, completeSopCreateSubscription, completeSopCreateSubscription
-
-
-
-
Method Detail
-
beginSopCreateSubscription
public PaymentData beginSopCreateSubscription(java.lang.String responseUrl, java.lang.String merchantCallbackUrl)
Description copied from interface:PaymentFacadeGets the Silent Order Post request data which includes all data required to create a subscription (customer profile).- Specified by:
beginSopCreateSubscriptionin interfacePaymentFacade- Overrides:
beginSopCreateSubscriptionin classDefaultPaymentFacade- Parameters:
responseUrl- - requires aHostedOrderPageRequestobject containing all the request data.merchantCallbackUrl- - The URL of the MerchantCallbackController used by the Provider to send validation responses.- Returns:
- a
PaymentDataobject which contains all data required to create a subscription.
-
getFullResponseUrl
protected java.lang.String getFullResponseUrl(java.lang.String url, java.lang.String siteName, boolean isSecure)Resolves a given URL to a full URL including server and port, etc.- Parameters:
url- - the URL to resolveisSecure- - flag to indicate whether the final URL should use a secure connection or not.- Returns:
- a full URL including HTTP protocol, server, port, path etc.
-
savePaymentSubscriptionResult
public void savePaymentSubscriptionResult(PaymentSubscriptionResultData paymentSubscriptionResultData, java.lang.String cartId)
Description copied from interface:CommerceWebServicesPaymentFacadeSave payment subscription result for cart with given id- Specified by:
savePaymentSubscriptionResultin interfaceCommerceWebServicesPaymentFacade- Parameters:
paymentSubscriptionResultData- Object to be savedcartId- Cart identifier
-
getPaymentSubscriptionResult
public PaymentSubscriptionResultData getPaymentSubscriptionResult(java.lang.String cartId)
Description copied from interface:CommerceWebServicesPaymentFacadeGet payment subscription result related to cart with given id- Specified by:
getPaymentSubscriptionResultin interfaceCommerceWebServicesPaymentFacade- Parameters:
cartId- Cart identifier- Returns:
- payment subscription result data
-
getPaymentSubscriptionResultForCart
protected PaymentSubscriptionResultModel getPaymentSubscriptionResultForCart(java.lang.String cartId)
-
removePaymentSubscriptionResult
public void removePaymentSubscriptionResult(java.lang.String cartId)
Description copied from interface:CommerceWebServicesPaymentFacadeDelete payment subscription result related to cart with given id- Specified by:
removePaymentSubscriptionResultin interfaceCommerceWebServicesPaymentFacade- Parameters:
cartId- Cart identifier
-
getConfigurationService
public ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getPaymentSubscriptionResultService
public PaymentSubscriptionResultService getPaymentSubscriptionResultService()
-
setPaymentSubscriptionResultService
public void setPaymentSubscriptionResultService(PaymentSubscriptionResultService paymentSubscriptionResultService)
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-