Class DefaultMerchantTransactionCodeGenerator

java.lang.Object
de.hybris.platform.payment.strategy.impl.DefaultMerchantTransactionCodeGenerator
All Implemented Interfaces:
TransactionCodeGenerator

public class DefaultMerchantTransactionCodeGenerator extends Object implements TransactionCodeGenerator
This class is used by DefaultPaymentServiceImpl to provide the merchant transaction code based on the specified order.
  • Field Details

  • Constructor Details

    • DefaultMerchantTransactionCodeGenerator

      public DefaultMerchantTransactionCodeGenerator()
  • Method Details

    • setKeyGenerator

      public void setKeyGenerator(KeyGenerator keyGenerator)
    • generateCode

      public String generateCode(String base)
      this implementation generates a code of the following pattern - NOTE: if 'base' is only will be returned.
      Specified by:
      generateCode in interface TransactionCodeGenerator
      Parameters:
      base - the leading part of the generated code
      Returns:
      the merchant transaction code