Skip to content

Commit

Permalink
Merge pull request #8 from roncoo/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
leslie52 authored Aug 22, 2016
2 parents e4a4b19 + a0e4b17 commit fd1293b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1036,5 +1036,5 @@ insert into pms_menu_role (role_id, menu_id) select 2,id from PMS_MENU;
-- 2016.8.5 第三方支付信息表增加支付宝线下产品字段
alter table rp_user_pay_info add offline_app_id varchar(50);
alter table rp_user_pay_info add rsa_private_key varchar(100);
alter table rp_user_pay_info add rsa_public_key varchar(100);
alter table rp_user_pay_info add rsa_public_key varchar(100);

Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@
import com.roncoo.pay.notify.entity.RpNotifyRecord;
import com.roncoo.pay.notify.enums.NotifyStatusEnum;
import com.roncoo.pay.notify.service.RpNotifyService;

import org.apache.activemq.command.ActiveMQTextMessage;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.listener.SessionAwareMessageListener;

import javax.jms.*;

import javax.jms.Message;
import javax.jms.MessageListener;
import java.util.Date;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ private F2FPayResultVo getF2FPayResultVo(RpTradePaymentOrder rpTradePaymentOrder

rpTradePaymentOrder.setPayWayCode(payWay.getPayWayCode());
rpTradePaymentOrder.setPayWayName(payWay.getPayWayName());
rpTradePaymentOrderDao.update(rpTradePaymentOrder);

RpTradePaymentRecord rpTradePaymentRecord = sealRpTradePaymentRecord( rpTradePaymentOrder.getMerchantNo(), rpTradePaymentOrder.getMerchantName() , rpTradePaymentOrder.getProductName(), rpTradePaymentOrder.getMerchantOrderNo(), rpTradePaymentOrder.getOrderAmount(), payWay.getPayWayCode(), payWay.getPayWayName() , rpTradePaymentOrder.getFundIntoType() , BigDecimal.valueOf(payWay.getPayRate()) , rpTradePaymentOrder.getOrderIp(), rpTradePaymentOrder.getReturnUrl(), rpTradePaymentOrder.getNotifyUrl(), rpTradePaymentOrder.getRemark(), rpTradePaymentOrder.getField1(), rpTradePaymentOrder.getField2(), rpTradePaymentOrder.getField3(), rpTradePaymentOrder.getField4(), rpTradePaymentOrder.getField5());
rpTradePaymentRecordDao.insert(rpTradePaymentRecord);
Expand All @@ -284,6 +283,9 @@ private F2FPayResultVo getF2FPayResultVo(RpTradePaymentOrder rpTradePaymentOrder
aliF2FPaySubmit.initConfigs(rpTradePaymentOrder.getFundIntoType(), rpUserPayInfo.getOfflineAppId(), rpUserPayInfo.getAppId(), rpUserPayInfo.getRsaPrivateKey(), rpUserPayInfo.getRsaPublicKey());
Map<String , String > aliPayReturnMsg = aliF2FPaySubmit.f2fPay(rpTradePaymentRecord.getBankOrderNo(), rpTradePaymentOrder.getProductName(), "", authCode, rpTradePaymentRecord.getOrderAmount(), roncooPayGoodsDetailses);

rpTradePaymentOrder.setStatus(aliPayReturnMsg.get("status"));//支付订单状态
rpTradePaymentOrderDao.update(rpTradePaymentOrder);//修改支付订单

rpTradePaymentRecord.setStatus(aliPayReturnMsg.get("status"));//设置消费状态
rpTradePaymentRecord.setBankTrxNo(aliPayReturnMsg.get("bankTrxNo"));//银行流水号
rpTradePaymentRecord.setBankReturnMsg(aliPayReturnMsg.get("bankReturnMsg"));//银行返回信息
Expand Down Expand Up @@ -596,7 +598,7 @@ private ScanPayResultVo getScanPayResultVo(RpTradePaymentOrder rpTradePaymentOrd

WeiXinPrePay weiXinPrePay = sealWeixinPerPay(appid , mch_id , rpTradePaymentOrder.getProductName() ,rpTradePaymentOrder.getRemark() , rpTradePaymentRecord.getBankOrderNo() , rpTradePaymentOrder.getOrderAmount() , rpTradePaymentOrder.getOrderTime() , rpTradePaymentOrder.getOrderPeriod() , WeiXinTradeTypeEnum.NATIVE ,
rpTradePaymentRecord.getBankOrderNo() ,"" ,rpTradePaymentOrder.getOrderIp());
String prePayXml = WeiXinPayUtils.getPrePayXml(weiXinPrePay, WeixinConfigUtil.readConfig("partnerKey"));
String prePayXml = WeiXinPayUtils.getPrePayXml(weiXinPrePay, partnerKey);
//调用微信支付的功能,获取微信支付code_url
Map<String, Object> prePayRequest = WeiXinPayUtils.httpXmlRequest(WeixinConfigUtil.readConfig("prepay_url"), "POST", prePayXml);
if (WeixinTradeStateEnum.SUCCESS.name().equals(prePayRequest.get("return_code")) && WeixinTradeStateEnum.SUCCESS.name().equals(prePayRequest.get("result_code"))) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
################################################# 支付宝分页查询账单配置 #####################################################

#合作身份者ID,签约账号,以2088开头由16位纯数字组成的字符串,查看地址:https://b.alipay.com/order/pidAndKey.htm
partner=2088121890820083
partner=111111111

#MD5密钥,安全检验码,由数字和字母组成的32位字符串,查看地址:https://b.alipay.com/order/pidAndKey.htm
key=krmqp98s4zvz32oaoj1zqzlro54lujzu
key=2222222222

#支付宝提供给商户的服务接入网关URL(新)
alipay_gateway_new=https\://mapi.alipay.com/gateway.do?
Expand All @@ -19,7 +19,7 @@ log_path=C\:\\
input_charset=utf-8

#收款支付宝账号,以2088开头由16位纯数字组成的字符串,一般情况下收款账号就是签约账号
seller_id=2088121890820083
seller_id=3333333333

#支付宝消息验证地址
https_verify_url=https\://mapi.alipay.com/gateway.do?service\=notify_verify&
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#appId
appId=wxdc4e0888857e858d
appId=11111111

#微信支付商户号
mch_id=1311205301
mch_id=22222222

#微信支付
partnerKey=F64552266DE91BA676F1DBF984D847B6
partnerKey=33333333

#预支付订单请求地址
prepay_url=https\://api.mch.weixin.qq.com/pay/unifiedorder
Expand Down

0 comments on commit fd1293b

Please sign in to comment.