本文整理汇总了Java中com.alipay.api.response.AlipayTradeCreateResponse类的典型用法代码示例。如果您正苦于以下问题:Java AlipayTradeCreateResponse类的具体用法?Java AlipayTradeCreateResponse怎么用?Java AlipayTradeCreateResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AlipayTradeCreateResponse类属于com.alipay.api.response包,在下文中一共展示了AlipayTradeCreateResponse类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getResponseClass
import com.alipay.api.response.AlipayTradeCreateResponse; //导入依赖的package包/类
public Class<AlipayTradeCreateResponse> getResponseClass() {
return AlipayTradeCreateResponse.class;
}
示例2: tradeCreateToResponse
import com.alipay.api.response.AlipayTradeCreateResponse; //导入依赖的package包/类
/**
* 统一收单交易创建接口
* https://doc.open.alipay.com/docs/api.htm?spm=a219a.7629065.0.0.21yRUe&apiId=1046&docType=4
* @param model
* @param notifyUrl
* @return {AlipayTradeCreateResponse}
* @throws {AlipayApiException}
*/
public static AlipayTradeCreateResponse tradeCreateToResponse(AlipayTradeCreateModel model, String notifyUrl) throws AlipayApiException{
AlipayTradeCreateRequest request = new AlipayTradeCreateRequest();
request.setBizModel(model);
request.setNotifyUrl(notifyUrl);
return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
}
示例3: tradeCreate
import com.alipay.api.response.AlipayTradeCreateResponse; //导入依赖的package包/类
/**
* 统一收单交易创建接口
*
* @param model
* @param notifyUrl
* @return
* @throws AlipayApiException
*/
public static AlipayTradeCreateResponse tradeCreate(AlipayTradeCreateModel model, String notifyUrl)
throws AlipayApiException {
AlipayTradeCreateRequest request = new AlipayTradeCreateRequest();
request.setBizModel(model);
request.setNotifyUrl(notifyUrl);
return AliPayConfig.build().getAlipayClient().execute(request);
}
示例4: tradeCreate
import com.alipay.api.response.AlipayTradeCreateResponse; //导入依赖的package包/类
/**
* 统一收单交易创建接口
* https://doc.open.alipay.com/docs/api.htm?spm=a219a.7629065.0.0.21yRUe&apiId=1046&docType=4
*
* @param model
* @param notifyUrl
* @return
* @throws AlipayApiException
*/
public static AlipayTradeCreateResponse tradeCreate(AlipayTradeCreateModel model, String notifyUrl)
throws AlipayApiException {
AlipayTradeCreateRequest request = new AlipayTradeCreateRequest();
request.setBizModel(model);
request.setNotifyUrl(notifyUrl);
return AliPayConfig.build().getAlipayClient().execute(request);
}