Class DefaultTmaPaymentMethodFacade
java.lang.Object
de.hybris.platform.b2ctelcofacades.payment.impl.DefaultTmaPaymentMethodFacade
- All Implemented Interfaces:
TmaPaymentMethodFacade
Default implementation of Payment Method Facade
TmaPaymentMethodFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePaymentSubscription(CCPaymentInfoData paymentInfoData, String userId) Create new payment subscription.protected de.hybris.platform.commerceservices.order.CommerceCardTypeServiceprotected de.hybris.platform.commerceservices.order.CommercePaymentProviderStrategyprotected de.hybris.platform.servicelayer.dto.converter.Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> protected de.hybris.platform.commerceservices.customer.CustomerAccountServiceprotected de.hybris.platform.servicelayer.user.UserServicevoidsetCommerceCardTypeService(de.hybris.platform.commerceservices.order.CommerceCardTypeService commerceCardTypeService) voidsetCommercePaymentProviderStrategy(de.hybris.platform.commerceservices.order.CommercePaymentProviderStrategy commercePaymentProviderStrategy) voidsetCreditCardPaymentInfoConverter(de.hybris.platform.servicelayer.dto.converter.Converter<CreditCardPaymentInfoModel, CCPaymentInfoData> creditCardPaymentInfoConverter) voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) voidsetDefaultPaymentInfo(CCPaymentInfoData paymentInfoData, String userId) Sets the default payment method for a given customer.voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
DefaultTmaPaymentMethodFacade
public DefaultTmaPaymentMethodFacade()
-
-
Method Details
-
setCustomerAccountService
public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) -
setCommerceCardTypeService
public void setCommerceCardTypeService(de.hybris.platform.commerceservices.order.CommerceCardTypeService commerceCardTypeService) -
setCommercePaymentProviderStrategy
public void setCommercePaymentProviderStrategy(de.hybris.platform.commerceservices.order.CommercePaymentProviderStrategy commercePaymentProviderStrategy) -
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService) -
setCreditCardPaymentInfoConverter
public void setCreditCardPaymentInfoConverter(de.hybris.platform.servicelayer.dto.converter.Converter<CreditCardPaymentInfoModel, CCPaymentInfoData> creditCardPaymentInfoConverter) -
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService() -
getCommerceCardTypeService
protected de.hybris.platform.commerceservices.order.CommerceCardTypeService getCommerceCardTypeService() -
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService() -
getCommercePaymentProviderStrategy
protected de.hybris.platform.commerceservices.order.CommercePaymentProviderStrategy getCommercePaymentProviderStrategy() -
getPaymentProvider
-
getCreditCardPaymentInfoConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<CreditCardPaymentInfoModel,CCPaymentInfoData> getCreditCardPaymentInfoConverter() -
createPaymentSubscription
public CCPaymentInfoData createPaymentSubscription(CCPaymentInfoData paymentInfoData, String userId) Description copied from interface:TmaPaymentMethodFacadeCreate new payment subscription. Pass in a CCPaymentInfoData containing the customer's card details. A new payment subscription will be created, and the sorted card details will be returned in a new CCPaymentInfoData.- Specified by:
createPaymentSubscriptionin interfaceTmaPaymentMethodFacade- Parameters:
paymentInfoData- the data instance containing the customer's card detailsuserId- the data instance containing the customer's id- Returns:
- the newly created payment info data
-
setDefaultPaymentInfo
Description copied from interface:TmaPaymentMethodFacadeSets the default payment method for a given customer.- Specified by:
setDefaultPaymentInfoin interfaceTmaPaymentMethodFacade- Parameters:
paymentInfoData- the data containing the customer's card detailsuserId- the customer's id
-