Class DefaultCreditCardMappingService

java.lang.Object
de.hybris.platform.integration.cis.subscription.service.impl.DefaultCreditCardMappingService
All Implemented Interfaces:
CreditCardMappingService

public class DefaultCreditCardMappingService extends Object implements CreditCardMappingService
Implements the functionality of converting the credit card codes in hybris to those of the provider
  • Constructor Details

    • DefaultCreditCardMappingService

      public DefaultCreditCardMappingService()
  • Method Details

    • initialize

      public Map<String,String> initialize()
      Load vendor credit card mapping from property file.
      Returns:
      vendor credit card mapping
    • convertCCToProviderSpecificName

      public boolean convertCCToProviderSpecificName(@Nonnull Collection<CardTypeData> creditCards, String vendor)
      Description copied from interface: CreditCardMappingService
      Converts the code of a credit card to the appropriate code of the provider
      Specified by:
      convertCCToProviderSpecificName in interface CreditCardMappingService
      Parameters:
      creditCards - the credit cards
      vendor - the name of the billing provider
      Returns:
      true if conversion is done