商城支付功能—->第三方支付平台(易宝支付)
确认付款是出现错误:该订单已经付款,请关闭浏览器购买….
解决:在设置参数订单编号时后面加上个时间戳
String p2_Order=order.getOid().toString()+System.currentTimeMillis(); //订单编号
支付时用到的参数:
String p0_Cmd="Buy"; //业务类型
String p1_MerId="10001126856" ; //商户编号
String p2_Order=order.getOid().toString()+System.currentTimeMillis(); //订单编号
String p3_Amt="0.01"; //支付金额
String p4_Cur="CNY";// 交易币种
String p5_Pid=""; // 商品名称
String p6_Pcat=""; //商品种类
String p7_Pdesc="";//商品描述
String p8_Url="http://localhost:8080/test/callBack.action"; // 商户接收支付成功数据的地址
String p9_SAF=""; // 送货地址
String pa_MP=""; //商户扩展信息
String pd_FrpId=this.pd_FrpId; //支付通道编码
String pr_NeedResponse="1"; //应答机制
String keyValue="69cl522AV6q613Ii4W6u8K6XuW8vM1N6bFgyv769220IuYe9u37N4y7rI4Pl"; //秘钥