cgi_bin_ticket_getticket, cgibin_add_template, cgibin_send_data, cgibin_set_industry, cgibin_token, close_order, micro_mch_add, micro_mch_qry, oauth2_access_token, oauth2_refresh_token, pay_micropay, pay_orderquery, pay_refund, pay_reverse, pay_unifiedorder, sns_auth_token, sns_userinfo| 构造器和说明 |
|---|
WechatClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CloseOrderOutput |
closeOrder(CloseOrderInput input,
String apiKey)
Close order close order output.
|
static WechatPayOutput |
micropay(WechatPayInput input,
String apiKey)
Micropay wechat pay output.
|
static OrderQueryOutput |
orderQuery(OrderQueryInput input,
String apiKey)
Order query order query output.
|
static MicroMchOutput |
postMicroMch(MicroMchInput o,
String apiKey,
String p12FilePath)
申请小微收款识别码
|
static String |
queryMicroMch(MicroMchInput o,
String apiKey,
String p12FilePath)
build request data for wechat ~ query submch
api:https://api.mch.weixin.qq.com/secapi/mch/submchmanage?
|
static WechatRefundOutput |
refund(WechatRefundInput data,
String apiKey,
String p12FilePath)
Refund wechat refund output.
|
static WechatReverseOutput |
reverse(WechatReverseInput data,
String apiKey,
String p12FilePath)
Reverse wechat reverse output.
|
static UnifiedOrderOutput |
unifiedorder(UnifiedOrderInput data,
String apiKey)
统一下单接口,若为扫码支付,调用此方法后需要另开 Thread 调用查询接口,检测用户是否完成支付
|
public static MicroMchOutput postMicroMch(MicroMchInput o, String apiKey, String p12FilePath)
o - the oapiKey - the api keyp12FilePath - the p 12 file pathpublic static String queryMicroMch(MicroMchInput o, String apiKey, String p12FilePath)
o - the oapiKey - the api keyp12FilePath - the p 12 file pathpublic static UnifiedOrderOutput unifiedorder(UnifiedOrderInput data, String apiKey)
data - the dataapiKey - the api keypublic static WechatRefundOutput refund(WechatRefundInput data, String apiKey, String p12FilePath)
data - the dataapiKey - the api keyp12FilePath - the p 12 file pathpublic static WechatReverseOutput reverse(WechatReverseInput data, String apiKey, String p12FilePath)
data - the dataapiKey - the api keyp12FilePath - the p 12 file pathpublic static WechatPayOutput micropay(WechatPayInput input, String apiKey)
input - the inputapiKey - the api keypublic static OrderQueryOutput orderQuery(OrderQueryInput input, String apiKey)
input - the inputapiKey - the api keypublic static CloseOrderOutput closeOrder(CloseOrderInput input, String apiKey)
input - the inputapiKey - the api keyCopyright © 2018. All rights reserved.