Uses of Class
com.foxinmy.weixin4j.exception.WeixinException
-
-
Uses of WeixinException in com.foxinmy.weixin4j.api
Methods in com.foxinmy.weixin4j.api that throw WeixinException Modifier and Type Method Description RefundResultPayApi. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee)Deprecated.退款申请(全额退款)RefundResultPayApi. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, CurrencyType refundFeeType, String opUserId, String refundDesc, RefundAccountType refundAccountType)Deprecated.申请退款(请求需要双向证书)OpenIdResultPayApi. authCode2openId(String authCode)Deprecated.授权码查询OPENID接口MerchantResultPayApi. closeOrder(String outTradeNo)Deprecated.关闭订单MchPayRequestPayApi. createAppPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoStore store)Deprecated.创建APP支付请求对象MchPayRequestPayApi. createJSPayRequest(String openId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建JSAPI支付请求对象MchPayRequestPayApi. createMicroPayRequest(String authCode, String body, String outTradeNo, double totalFee, String createIp, String attach, SceneInfoStore store)Deprecated.提交被扫支付MchPayRequestPayApi. createNativePayRequest(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建Native支付(扫码支付)链接【模式二】NativePayResponsePayApi. createNativePayResponse(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建Native支付(扫码支付)回调对象【模式一】MchPayRequestPayApi. createPayRequest(MchPayPackage payPackage)Deprecated.创建支付请求对象PrePayPayApi. createPrePay(MchPayPackage payPackage)Deprecated.统一下单接口 除被扫支付场景以外,商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易回话标识后再按扫码、JSAPI 、APP等不同场景生成交易串调起支付。MchPayRequestPayApi. createWapPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoApp app)Deprecated.创建WAP支付请求对象:正常流程用户支付完成后会返回至发起支付的页面,如需返回至指定页面, 则可以在MWEB_URL后拼接上redirect_url参数,来指定回调页面CustomsOrderResultCustomsApi. declareCustomsOrder(CustomsOrder customsOrder)Deprecated.订单附加信息提交voidPayApi. downloadBill(Date billDate, BillType billType, OutputStream outputStream, TarType tarType)Deprecated.下载对账单
1.微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账 单中,跟原支付单订单号一致,bill_type 为 REVOKED;
2.微信在次日 9 点启动生成前一天的对账单,建议商户 9 点半后再获取;
3.对账单中涉及金额的字段单位为“元”。StringPayApi. getShorturl(String url)Deprecated.native支付URL转短链接:用于扫码原生支付模式一中的二维码链接转成短链接(weixin://wxpay/s/XXXXXX),减小二维码数据量 ,提升扫描速度和精确度。protected WeixinRequestExecutorMchApi. getWeixinSSLExecutor()Deprecated.微信SSLCorpPaymentRecordCashApi. queryCorpPayment(String outTradeNo)Deprecated.企业付款查询 用于商户的企业付款操作进行结果查询,返回付款操作详细结果CouponDetailCouponApi. queryCouponDetail(String openId, String couponId, String stockId)Deprecated.查询代金券详细CouponStockCouponApi. queryCouponStock(String couponStockId)Deprecated.查询代金券批次CustomsOrderRecordCustomsApi. queryCustomsOrder(IdQuery idQuery, CustomsCity customsCity)Deprecated.订单附加信息查询doubleCashApi. queryExchageRate(CurrencyType currencyType, Date date)Deprecated.查询汇率OrderPayApi. queryOrder(IdQuery idQuery)Deprecated.订单查询RedpacketRecordCashApi. queryRedpack(String outTradeNo)Deprecated.查询红包记录RefundRecordPayApi. queryRefund(IdQuery idQuery)Deprecated.退款查询SettlementRecordCashApi. querySettlement(boolean status, Pageable pageable, Date start, Date end)Deprecated.查询结算资金XmlResultPayApi. reportInterface(String interfaceUrl, int executeTime, String outTradeNo, String ip, Date time, XmlResult returnXml)Deprecated.接口上报MerchantResultPayApi. reverseOrder(IdQuery idQuery)Deprecated.冲正订单(需要证书) 当支付返回失败,或收银系统超时需要取消交易,可以调用该接口 接口逻辑:支 付失败的关单,支付成功的撤销支付 7天以内的单可撤销,其他正常支付的单 如需实现相同功能请调用退款接口 调用扣款接口后请勿立即调用撤销,需要等待5秒以上。先调用查单接口,如果没有确切的返回,再调用撤销CorpPaymentResultCashApi. sendCorpPayment(CorpPayment payment)Deprecated.企业付款为企业提供付款至用户零钱的能力CouponResultCouponApi. sendCoupon(String couponStockId, String partnerTradeNo, String openId, String opUserId)Deprecated.发放代金券(需要证书)RedpacketSendResultCashApi. sendRedpack(Redpacket redpacket)Deprecated.发放红包 企业向微信用户个人发现金红包 -
Uses of WeixinException in com.foxinmy.weixin4j.cache
Methods in com.foxinmy.weixin4j.cache that throw WeixinException Modifier and Type Method Description TCacheCreator. create()创建CacheTCacheManager. getCache()获取缓存对象TCacheManager. refreshCache()刷新缓存对象 -
Uses of WeixinException in com.foxinmy.weixin4j.http.weixin
Methods in com.foxinmy.weixin4j.http.weixin that throw WeixinException Modifier and Type Method Description WeixinRequestExecutorWeixinRequestExecutor. createSSLRequestExecutor(String password, InputStream inputStream)创建 SSL微信请求对象WeixinRequestExecutorWeixinRequestExecutor. createSSLRequestExecutor(String password, String pemCertificate, String pemPrivateKey)使用PEM格式证书创建SSL微信请求对象WeixinResponseWeixinRequestExecutor. doRequest(HttpRequest request)执行微信请求WeixinResponseWeixinRequestExecutor. get(String url, URLParameter... parameters)Get方法执行微信请求protected voidWeixinRequestExecutor. handleResponse(WeixinResponse response)handle the weixin responseWeixinResponseWeixinRequestExecutor. post(String url, FormBodyPart... bodyParts)Post方法执行微信请求,用于文件上传WeixinResponseWeixinRequestExecutor. post(String url, String body)Post方法执行微信请求 -
Uses of WeixinException in com.foxinmy.weixin4j.jssdk
Methods in com.foxinmy.weixin4j.jssdk that throw WeixinException Modifier and Type Method Description StringJSSDKConfigurator. toJSONConfig(String url)生成config配置JSON串 -
Uses of WeixinException in com.foxinmy.weixin4j.payment
Methods in com.foxinmy.weixin4j.payment that throw WeixinException Modifier and Type Method Description RefundResultWeixinPayProxy. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee)Deprecated.申请退款RefundResultWeixinPayProxy. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, CurrencyType refundFeeType, String opUserId, String refundDesc, RefundAccountType refundAccountType)Deprecated.申请退款OpenIdResultWeixinPayProxy. authCode2openId(String authCode)Deprecated.授权码查询OPENIDMerchantResultWeixinPayProxy. closeOrder(String outTradeNo)Deprecated.关闭订单MchPayRequestWeixinPayProxy. createAppPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoStore store)Deprecated.创建APP支付请求对象MchPayRequestWeixinPayProxy. createJSPayRequest(String openId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建JSAPI支付请求对象MchPayRequestWeixinPayProxy. createMicroPayRequest(String authCode, String body, String outTradeNo, double totalFee, String createIp, String attach, SceneInfoStore store)Deprecated.提交被扫支付MchPayRequestWeixinPayProxy. createNativePayRequest(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建Native支付(扫码支付)链接【模式二】NativePayResponseWeixinPayProxy. createNativePayResponse(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建Native支付(扫码支付)回调对象【模式一】MchPayRequestWeixinPayProxy. createPayRequest(MchPayPackage payPackage)Deprecated.创建支付请求对象PrePayWeixinPayProxy. createPrePay(MchPayPackage payPackage)Deprecated.统一下单接口 除被扫支付场景以外,商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易回话标识后再按扫码、JSAPI 、APP等不同场景生成交易串调起支付。MchPayRequestWeixinPayProxy. createWapPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoApp app)Deprecated.创建WAP支付请求对象CustomsOrderResultWeixinPayProxy. declareCustomsOrder(CustomsOrder customsOrder)Deprecated.订单附加信息提交voidWeixinPayProxy. downloadBill(Date billDate, BillType billType, OutputStream outputStream, TarType tarType)Deprecated.下载对账单
1.微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账 单中,跟原支付单订单号一致,bill_type 为 REVOKED;
2.微信在次日 9 点启动生成前一天的对账单,建议商户 9 点半后再获取;
3.对账单中涉及金额的字段单位为“元”。StringWeixinPayProxy. getPayShorturl(String url)Deprecated.native支付URL转短链接:用于扫码原生支付模式一中的二维码链接转成短链接(weixin://wxpay/s/XXXXXX),减小二维码数据量 ,提升扫描速度和精确度。CorpPaymentRecordWeixinPayProxy. queryCorpPayment(String outTradeNo)Deprecated.企业付款查询 用于商户的企业付款操作进行结果查询,返回付款操作详细结果CouponDetailWeixinPayProxy. queryCouponDetail(String openId, String couponId, String stockId)Deprecated.查询代金券详细CouponStockWeixinPayProxy. queryCouponStock(String couponStockId)Deprecated.查询代金券批次CustomsOrderRecordWeixinPayProxy. queryCustomsOrder(IdQuery idQuery, CustomsCity customsCity)Deprecated.订单附加信息查询doubleWeixinPayProxy. queryExchageRate(CurrencyType currencyType, Date date)Deprecated.查询汇率OrderWeixinPayProxy. queryOrder(IdQuery idQuery)Deprecated.订单查询RedpacketRecordWeixinPayProxy. queryRedpack(String outTradeNo)Deprecated.查询红包记录RefundRecordWeixinPayProxy. queryRefund(IdQuery idQuery)Deprecated.退款查询SettlementRecordWeixinPayProxy. querySettlement(boolean status, Pageable pageable, Date start, Date end)Deprecated.查询结算资金XmlResultWeixinPayProxy. reportInterface(String interfaceUrl, int executeTime, String outTradeNo, String ip, Date time, XmlResult returnXml)Deprecated.接口上报MerchantResultWeixinPayProxy. reverseOrder(IdQuery idQuery)Deprecated.冲正订单(需要证书) 当支付返回失败,或收银系统超时需要取消交易,可以调用该接口 接口逻辑:支 付失败的关单,支付成功的撤销支付 7天以内的单可撤销,其他正常支付的单 如需实现相同功能请调用退款接口 调用扣款接口后请勿立即调用撤销,需要等待5秒以上。先调用查单接口,如果没有确切的返回,再调用撤销CorpPaymentResultWeixinPayProxy. sendCorpPayment(CorpPayment payment)Deprecated.企业付款CouponResultWeixinPayProxy. sendCoupon(String couponStockId, String partnerTradeNo, String openId, String opUserId)Deprecated.发放代金券(需要证书)RedpacketSendResultWeixinPayProxy. sendRedpack(Redpacket redpacket)Deprecated.发放红包 企业向微信用户个人发现金红包 -
Uses of WeixinException in com.foxinmy.weixin4j.token
Methods in com.foxinmy.weixin4j.token that throw WeixinException Modifier and Type Method Description voidTicketManager. cachingTicket(String ticket)缓存ticketStringTicketManager. getAccessTicket()获取ticketStringTokenManager. getAccessToken()获取token字符串TokenTicketManager. getTicket()获取ticket对象
-