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

cn.ezeyc.edpaliplug.pay.AliPay Maven / Gradle / Ivy

The newest version!
package cn.ezeyc.edpaliplug.pay;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public class AliPay {


     private static String createTrade(Long orderId,String outTradeNo,String amount,String alipayUserId){
//        // 商品明细信息,按需传入
//        JSONArray goodsDetail = new JSONArray();
//        JSONObject goods1 = new JSONObject();
//        goods1.put("goods_id", order.getGoodsId());
//        goods1.put("goods_name", order.getGoodsContent());
//        goods1.put("quantity", 1);
//        goods1.put("price", order.getMarketPrice());
//        goodsDetail.add(goods1);
//        return AliPayUtil.aliPayTradeCreated(outTradeNo, amount, alipayUserId,payNotify,goodsDetail);
         return  null;
     }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy