类 WechatGatewayComponent

java.lang.Object
com.publiccms.common.base.AbstractPaymentGateway
com.publiccms.logic.component.paymentgateway.WechatGatewayComponent
所有已实现的接口:
Config, Container<String>, PaymentGateway

@Component public class WechatGatewayComponent extends AbstractPaymentGateway implements Config
  • 字段详细资料

  • 构造器详细资料

    • WechatGatewayComponent

      public WechatGatewayComponent()
  • 方法详细资料

    • getVerifier

      public com.wechat.pay.contrib.apache.httpclient.auth.Verifier getVerifier(Map<String,String> config, byte[] apiV3Key)
      参数:
      config -
      apiV3Key -
      返回:
      verifier
    • getVerifier

      public com.wechat.pay.contrib.apache.httpclient.auth.Verifier getVerifier(Map<String,String> config, byte[] apiV3Key, PrivateKey merchantPrivateKey)
      参数:
      config -
      apiV3Key -
      merchantPrivateKey -
      返回:
      verifier
    • getCode

      public String getCode(short siteId, boolean showAll)
      指定者:
      getCode 在接口中 Config
      参数:
      siteId -
      showAll -
      返回:
      config code or null
    • getCodeDescription

      public String getCodeDescription(Locale locale)
      指定者:
      getCodeDescription 在接口中 Config
      参数:
      locale -
      返回:
      description
    • getAccountType

      public String getAccountType()
      指定者:
      getAccountType 在接口中 PaymentGateway
    • pay

      public boolean pay(SysSite site, TradePayment payment, String paymentType, String callbackUrl, jakarta.servlet.http.HttpServletResponse response)
      指定者:
      pay 在接口中 PaymentGateway
    • getOutTradeNo

      private String getOutTradeNo(long paymentId)
    • refund

      public boolean refund(short siteId, TradePayment payment, TradeRefund refund)
      指定者:
      refund 在接口中 PaymentGateway
    • getExtendFieldList

      public List<SysExtendField> getExtendFieldList(SysSite site, Locale locale)
      指定者:
      getExtendFieldList 在接口中 Config
      参数:
      site -
      locale -
      返回:
      config extend field list
    • enabled

      public boolean enabled(short siteId)
      指定者:
      enabled 在接口中 PaymentGateway
    • destroy

      @PreDestroy public void destroy()