Class AbstractWeChatPayProcessor<T>

java.lang.Object
de.hybris.platform.chinesepspwechatpayservices.processors.AbstractWeChatPayProcessor<T>
Direct Known Subclasses:
AbstractWeChatPayRequestProcessor, SignVerificationProcessor, StartPaymentRequestProcessor

public abstract class AbstractWeChatPayProcessor<T> extends Object
Abstraction of interactions with WeChat Pay, e.g. calling WeChat API, handle response from WeChat Pay
  • Field Details

    • logger

      protected final org.apache.log4j.Logger logger
  • Constructor Details

  • Method Details

    • debug

      protected void debug(String msg)
      Add a parameter, will be ignored if the name or value is empty
      Parameters:
      msg - message to be logged
    • process

      public abstract T process()
      Process this operation
    • addParameter

      protected void addParameter(String name, String value)
      Add a parameter, will be ignored if the name or value is empty
      Parameters:
      name - Parameter name
      value - Parameter value
    • getParams

      public WeChatPayParameters getParams()
      Returns:
      the params
    • getConfig

      public WeChatPayConfiguration getConfig()
      Returns:
      the config