public class WechatPayClient extends Object implements WechatMpApi
cgi_bin_ticket_getticket, cgibin_add_template, cgibin_send_data, cgibin_set_industry, cgibin_token, oauth2_access_token, oauth2_refresh_token, sns_auth_token, sns_userinfo| 构造器和说明 |
|---|
WechatPayClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CloseOrderResponse |
closeOrder(CloseOrderRequest request,
String apiKey)
订单关闭.
|
static WechatPayResponse |
microPay(WechatPayRequest request,
String apiKey)
刷卡支付.
|
static OpenidQueryResponse |
openidQuery(OpenidQueryRequest request,
String apiKey)
查询OpenId.
|
static OrderQueryResponse |
orderQuery(OrderQueryRequest request,
String apiKey)
支付查询.
|
static MicroMchResponse |
postMicroMch(MicroMchRequest request,
String apiKey,
String p12FilePath)
申请小微收款权限(个人微信申请收款)
|
static MicroMchResponse |
queryMicroMch(MicroMchRequest request,
String apiKey,
String p12FilePath) |
static WechatRefundResponse |
refund(WechatRefundRequest request,
String apiKey,
String p12FilePath)
|
static WechatReverseResponse |
reverse(WechatReverseRequest request,
String apiKey,
String p12FilePath)
支付撤销.
|
static UnifiedOrderResponse |
unifiedOrder(UnifiedOrderRequest request,
String apiKey)
|
public static UnifiedOrderResponse unifiedOrder(UnifiedOrderRequest request, String apiKey) throws Exception
request - the request dataapiKey - the api keyException - the exceptionpublic static WechatRefundResponse refund(WechatRefundRequest request, String apiKey, String p12FilePath) throws Exception
request - the dataapiKey - the api keyp12FilePath - the p 12 file pathException - the exceptionpublic static WechatReverseResponse reverse(WechatReverseRequest request, String apiKey, String p12FilePath) throws Exception
request - the dataapiKey - the api keyp12FilePath - the p 12 file pathException - the exceptionpublic static WechatPayResponse microPay(WechatPayRequest request, String apiKey) throws Exception
WechatPayCore.microPay(org.thlws.payment.wechat.entity.request.WechatPayRequest, java.lang.String)request - the requestapiKey - the api keyException - the exceptionpublic static OrderQueryResponse orderQuery(OrderQueryRequest request, String apiKey) throws Exception
request - the requestapiKey - the api keyException - the exceptionpublic static CloseOrderResponse closeOrder(CloseOrderRequest request, String apiKey) throws Exception
request - the requestapiKey - the api keyException - the exceptionpublic static OpenidQueryResponse openidQuery(OpenidQueryRequest request, String apiKey) throws Exception
request - the dataapiKey - the api keyException - the exceptionpublic static MicroMchResponse queryMicroMch(MicroMchRequest request, String apiKey, String p12FilePath) throws Exception
request - the requestapiKey - the apiKeyp12FilePath - the p12FilePathException - the Exceptionpublic static MicroMchResponse postMicroMch(MicroMchRequest request, String apiKey, String p12FilePath) throws Exception
request - the requestapiKey - the apiKeyp12FilePath - the p12FilePathException - the ExceptionCopyright © 2018. All rights reserved.