Commit 749dc5b1 authored by jiaorz's avatar jiaorz

支付宝转账接口

parent 73680d7c
...@@ -370,6 +370,30 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> { ...@@ -370,6 +370,30 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
} }
} }
/**
* 支付宝转账功能 单笔最小转账0.1 最大小数点位数前支持13位,实际限额和签约一致
* @param alipayClient
* @throws AlipayApiException
*/
public void fundTrans(AlipayClient alipayClient) throws AlipayApiException{
AlipayFundTransToaccountTransferRequest request = new AlipayFundTransToaccountTransferRequest();
request.setBizContent("{" +
"\"out_biz_no\":\"3142321423432\"," +
"\"payee_type\":\"ALIPAY_LOGONID\"," +
"\"payee_account\":\"abc@sina.com\"," +
"\"amount\":\"12.23\"," +
"\"payer_show_name\":\"上海交通卡退款\"," +
"\"payee_real_name\":\"张三\"," +
"\"remark\":\"转账备注\"" +
" }");
AlipayFundTransToaccountTransferResponse response = alipayClient.execute(request);
if(response.isSuccess()){
log.info("调用成功");
} else {
log.info("调用失败");
}
}
//解冻预授权 //解冻预授权
public void fundAuthOrderUnFreeze(AlipayClient alipayClient) throws AlipayApiException { public void fundAuthOrderUnFreeze(AlipayClient alipayClient) throws AlipayApiException {
AlipayFundAuthOrderUnfreezeRequest request = new AlipayFundAuthOrderUnfreezeRequest(); AlipayFundAuthOrderUnfreezeRequest request = new AlipayFundAuthOrderUnfreezeRequest();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment