Class DefaultTmaPaymentMethodFacade

java.lang.Object
de.hybris.platform.b2ctelcofacades.payment.impl.DefaultTmaPaymentMethodFacade
All Implemented Interfaces:
TmaPaymentMethodFacade

public class DefaultTmaPaymentMethodFacade extends Object implements TmaPaymentMethodFacade
Default implementation of Payment Method Facade TmaPaymentMethodFacade.
  • 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

      public String 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: TmaPaymentMethodFacade
      Create 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:
      createPaymentSubscription in interface TmaPaymentMethodFacade
      Parameters:
      paymentInfoData - the data instance containing the customer's card details
      userId - the data instance containing the customer's id
      Returns:
      the newly created payment info data
    • setDefaultPaymentInfo

      public void setDefaultPaymentInfo(CCPaymentInfoData paymentInfoData, String userId)
      Description copied from interface: TmaPaymentMethodFacade
      Sets the default payment method for a given customer.
      Specified by:
      setDefaultPaymentInfo in interface TmaPaymentMethodFacade
      Parameters:
      paymentInfoData - the data containing the customer's card details
      userId - the customer's id