@Component public class WechatGatewayComponent extends AbstractPaymentGateway implements Config
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String[] |
API_TYPES |
private com.wechat.pay.contrib.apache.httpclient.cert.CertificatesManager |
certificatesManager |
static java.lang.String |
CONFIG_APITYPE |
static java.lang.String |
CONFIG_APPID |
static java.lang.String |
CONFIG_CODE |
static java.lang.String |
CONFIG_CODE_DESCRIPTION |
static java.lang.String |
CONFIG_KEY |
static java.lang.String |
CONFIG_MCHID |
static java.lang.String |
CONFIG_NOTIFYURL |
static java.lang.String |
CONFIG_PRIVATEKEY |
static java.lang.String |
CONFIG_RESULTPAGE |
static java.lang.String |
CONFIG_SERIALNO |
private ConfigDataComponent |
configDataComponent |
private TradePaymentHistoryService |
historyService |
protected org.apache.commons.logging.Log |
log |
private TradePaymentService |
service |
private TemplateComponent |
templateComponent |
private PaymentProcessorComponent |
tradePaymentProcessorComponent |
CONFIG_CODE_DESCRIPTION_SUFFIX, CONFIGPREFIX, INPUT_TYPE_EDITORS, INPUT_TYPE_FILES, INPUT_TYPE_PRIVATE_FILES, INPUTTYPE_BOOLEAN, INPUTTYPE_CAPTCHA, INPUTTYPE_CATEGORY, INPUTTYPE_CATEGORY_PATH, INPUTTYPE_CATEGORYTYPE, INPUTTYPE_COLOR, INPUTTYPE_CONTENT, INPUTTYPE_CONTENT_STATUS, INPUTTYPE_DATE, INPUTTYPE_DATETIME, INPUTTYPE_DEPT, INPUTTYPE_DICTIONARY, INPUTTYPE_EMAIL, INPUTTYPE_FILE, INPUTTYPE_IMAGE, INPUTTYPE_KEYVALUE, INPUTTYPE_KEYWORDS, INPUTTYPE_LANG, INPUTTYPE_MODULE, INPUTTYPE_NUMBER, INPUTTYPE_PASSWORD, INPUTTYPE_PRIVATEFILE, INPUTTYPE_PRIVATEIMAGE, INPUTTYPE_PRIVATEVIDEO, INPUTTYPE_SURVEY, INPUTTYPE_TAG, INPUTTYPE_TAGTYPE, INPUTTYPE_TEMPLATE, INPUTTYPE_TEXT, INPUTTYPE_TEXTAREA, INPUTTYPE_TIME, INPUTTYPE_USER, INPUTTYPE_VIDEO, INPUTTYPE_VOTE
构造器和说明 |
---|
WechatGatewayComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
destroy() |
boolean |
enable(short siteId) |
java.lang.String |
getAccountType() |
java.lang.String |
getCode(short siteId,
boolean showAll) |
java.lang.String |
getCodeDescription(java.util.Locale locale) |
java.util.List<SysExtendField> |
getExtendFieldList(SysSite site,
java.util.Locale locale) |
private java.lang.String |
getOutTradeNo(long paymentId) |
com.wechat.pay.contrib.apache.httpclient.auth.Verifier |
getVerifier(java.util.Map<java.lang.String,java.lang.String> config,
byte[] apiV3Key) |
com.wechat.pay.contrib.apache.httpclient.auth.Verifier |
getVerifier(java.util.Map<java.lang.String,java.lang.String> config,
byte[] apiV3Key,
java.security.PrivateKey merchantPrivateKey) |
boolean |
pay(SysSite site,
TradePayment payment,
java.lang.String paymentType,
java.lang.String callbackUrl,
javax.servlet.http.HttpServletResponse response) |
boolean |
refund(short siteId,
TradePayment payment,
TradeRefund refund) |
confirmPay, exportable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportable, getCode, getMessage
keyFunction
public static final java.lang.String CONFIG_CODE
public static final java.lang.String CONFIG_CODE_DESCRIPTION
public static final java.lang.String CONFIG_APPID
public static final java.lang.String CONFIG_MCHID
public static final java.lang.String CONFIG_SERIALNO
public static final java.lang.String CONFIG_KEY
public static final java.lang.String CONFIG_PRIVATEKEY
public static final java.lang.String CONFIG_NOTIFYURL
public static final java.lang.String CONFIG_APITYPE
public static final java.lang.String CONFIG_RESULTPAGE
public static final java.lang.String[] API_TYPES
private TemplateComponent templateComponent
private TradePaymentService service
private TradePaymentHistoryService historyService
private PaymentProcessorComponent tradePaymentProcessorComponent
private ConfigDataComponent configDataComponent
private com.wechat.pay.contrib.apache.httpclient.cert.CertificatesManager certificatesManager
protected final org.apache.commons.logging.Log log
public com.wechat.pay.contrib.apache.httpclient.auth.Verifier getVerifier(java.util.Map<java.lang.String,java.lang.String> config, byte[] apiV3Key)
config
- apiV3Key
- public com.wechat.pay.contrib.apache.httpclient.auth.Verifier getVerifier(java.util.Map<java.lang.String,java.lang.String> config, byte[] apiV3Key, java.security.PrivateKey merchantPrivateKey)
config
- apiV3Key
- merchantPrivateKey
- public java.lang.String getCode(short siteId, boolean showAll)
public java.lang.String getCodeDescription(java.util.Locale locale)
getCodeDescription
在接口中 Config
locale
- public java.lang.String getAccountType()
getAccountType
在接口中 PaymentGateway
public boolean pay(SysSite site, TradePayment payment, java.lang.String paymentType, java.lang.String callbackUrl, javax.servlet.http.HttpServletResponse response)
pay
在接口中 PaymentGateway
private java.lang.String getOutTradeNo(long paymentId)
public boolean refund(short siteId, TradePayment payment, TradeRefund refund)
refund
在接口中 PaymentGateway
public java.util.List<SysExtendField> getExtendFieldList(SysSite site, java.util.Locale locale)
getExtendFieldList
在接口中 Config
public boolean enable(short siteId)
enable
在接口中 PaymentGateway
@PreDestroy public void destroy()