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 java.lang.ObjectAbstraction of interactions with WeChat Pay, e.g. calling WeChat API, handle response from WeChat Pay
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.log4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description AbstractWeChatPayProcessor(WeChatPayConfiguration config)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddParameter(java.lang.String name, java.lang.String value)Add a parameter, will be ignored if the name or value is emptyprotected voiddebug(java.lang.String msg)Add a parameter, will be ignored if the name or value is emptyWeChatPayConfigurationgetConfig()WeChatPayParametersgetParams()abstract Tprocess()Process this operation
-
-
-
Constructor Detail
-
AbstractWeChatPayProcessor
public AbstractWeChatPayProcessor(WeChatPayConfiguration config)
-
-
Method Detail
-
debug
protected void debug(java.lang.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(java.lang.String name, java.lang.String value)Add a parameter, will be ignored if the name or value is empty- Parameters:
name- Parameter namevalue- Parameter value
-
getParams
public WeChatPayParameters getParams()
- Returns:
- the params
-
getConfig
public WeChatPayConfiguration getConfig()
- Returns:
- the config
-
-