All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mizhousoft.weixin.payment.service.WxPayHttpClient Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package com.mizhousoft.weixin.payment.service;

import com.mizhousoft.weixin.common.WXException;
import com.mizhousoft.weixin.payment.WxPayConfig;

import kong.unirest.core.HttpResponse;

/**
 * WxPayHttpClient
 *
 */
public interface WxPayHttpClient
{
	/**
	 * GET请求
	 * 
	 * @param canonicalUrl
	 * @param withSerial
	 * @param payConfig
	 * @return
	 * @throws WXException
	 */
	HttpResponse get(String canonicalUrl, boolean withSerial, WxPayConfig payConfig) throws WXException;

	/**
	 * POST请求
	 * 
	 * @param body
	 * @param canonicalUrl
	 * @param withSerial
	 * @param payConfig
	 * @return
	 * @throws WXException
	 */
	HttpResponse post(String body, String canonicalUrl, boolean withSerial, WxPayConfig payConfig) throws WXException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy