@Component public class AlipayGatewayComponent extends AbstractPaymentGateway implements Config, SiteCache
限定符和类型 | 字段和说明 |
---|---|
private CacheEntity<java.lang.Short,com.alipay.easysdk.factory.MultipleFactory> |
cache |
static java.lang.String |
CONFIG_ALIPAY_PUBLIC_KEY |
static java.lang.String |
CONFIG_APPID |
static java.lang.String |
CONFIG_CODE |
static java.lang.String |
CONFIG_CODE_DESCRIPTION |
static java.lang.String |
CONFIG_ENCRYPTKEY |
static java.lang.String |
CONFIG_GATEWAY |
static java.lang.String |
CONFIG_NOTIFYURL |
static java.lang.String |
CONFIG_PRIVATE_KEY |
static java.lang.String |
CONFIG_PRODUCT_CODE |
static java.lang.String |
CONFIG_TIMEOUT_EXPRESS |
protected ConfigDataComponent |
configDataComponent |
private TradePaymentHistoryService |
historyService |
static java.lang.String[] |
PROCUDT_CODES |
private TradePaymentService |
service |
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
构造器和说明 |
---|
AlipayGatewayComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
void |
clear(short siteId) |
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) |
com.alipay.easysdk.factory.MultipleFactory |
getFactory(short siteId,
java.util.Map<java.lang.String,java.lang.String> config) |
void |
initCache(CacheEntityFactory cacheEntityFactory) |
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_GATEWAY
public static final java.lang.String CONFIG_APPID
public static final java.lang.String CONFIG_PRIVATE_KEY
public static final java.lang.String CONFIG_TIMEOUT_EXPRESS
public static final java.lang.String CONFIG_ALIPAY_PUBLIC_KEY
public static final java.lang.String CONFIG_PRODUCT_CODE
public static final java.lang.String[] PROCUDT_CODES
public static final java.lang.String CONFIG_NOTIFYURL
public static final java.lang.String CONFIG_ENCRYPTKEY
private TradePaymentService service
private TradePaymentHistoryService historyService
protected ConfigDataComponent configDataComponent
private PaymentProcessorComponent tradePaymentProcessorComponent
private CacheEntity<java.lang.Short,com.alipay.easysdk.factory.MultipleFactory> cache
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 com.alipay.easysdk.factory.MultipleFactory getFactory(short siteId, java.util.Map<java.lang.String,java.lang.String> config)
siteId
- config
- public boolean pay(SysSite site, TradePayment payment, java.lang.String paymentType, java.lang.String callbackUrl, javax.servlet.http.HttpServletResponse response)
pay
在接口中 PaymentGateway
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 void initCache(CacheEntityFactory cacheEntityFactory) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
cacheEntityFactory
- java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException
public boolean enable(short siteId)
enable
在接口中 PaymentGateway