Class DefaultCommerceWebServicesPaymentFacade
java.lang.Object
de.hybris.platform.acceleratorfacades.payment.impl.DefaultPaymentFacade
de.hybris.platform.acceleratorocc.payment.facade.impl.DefaultCommerceWebServicesPaymentFacade
- All Implemented Interfaces:
PaymentFacade,CommerceWebServicesPaymentFacade
public class DefaultCommerceWebServicesPaymentFacade
extends DefaultPaymentFacade
implements CommerceWebServicesPaymentFacade
Default implementation of
CommerceWebServicesPaymentFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeginSopCreateSubscription(String responseUrl, String merchantCallbackUrl) Gets the Silent Order Post request data which includes all data required to create a subscription (customer profile).protected StringgetFullResponseUrl(String url, String siteName, boolean isSecure) Resolves a given URL to a full URL including server and port, etc.getPaymentSubscriptionResult(String cartId) Get payment subscription result related to cart with given idprotected PaymentSubscriptionResultModelvoidDelete payment subscription result related to cart with given idvoidsavePaymentSubscriptionResult(PaymentSubscriptionResultData paymentSubscriptionResultData, 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, setUserServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.acceleratorfacades.payment.PaymentFacade
beginHopCreateSubscription, completeHopCreateSubscription, completeSopCreateSubscription, completeSopCreateSubscription
-
Constructor Details
-
DefaultCommerceWebServicesPaymentFacade
public DefaultCommerceWebServicesPaymentFacade()
-
-
Method Details
-
beginSopCreateSubscription
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
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, 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
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
-
removePaymentSubscriptionResult
Description copied from interface:CommerceWebServicesPaymentFacadeDelete payment subscription result related to cart with given id- Specified by:
removePaymentSubscriptionResultin interfaceCommerceWebServicesPaymentFacade- Parameters:
cartId- Cart identifier
-
getConfigurationService
-
setConfigurationService
-
getPaymentSubscriptionResultService
-
setPaymentSubscriptionResultService
public void setPaymentSubscriptionResultService(PaymentSubscriptionResultService paymentSubscriptionResultService) -
getModelService
-
setModelService
-