|
@@ -145,6 +145,7 @@ public class PaymentServiceImpl implements IPaymentService {
|
|
|
detail.setPay_type(paymentRecords.getPayType());
|
|
detail.setPay_type(paymentRecords.getPayType());
|
|
|
detail.setTx_amt(refundReceive.getPrice().toString());
|
|
detail.setTx_amt(refundReceive.getPrice().toString());
|
|
|
detail.setOrg_pos_seq(refundReceive.getPayId().toString());
|
|
detail.setOrg_pos_seq(refundReceive.getPayId().toString());
|
|
|
|
|
+ detail.setNotify_url(url+"/payReverseNotify");
|
|
|
payReverse.setBarcode_reverse_request(detail);
|
|
payReverse.setBarcode_reverse_request(detail);
|
|
|
PayReverseBack back = null;
|
|
PayReverseBack back = null;
|
|
|
try {
|
|
try {
|
|
@@ -288,6 +289,28 @@ public class PaymentServiceImpl implements IPaymentService {
|
|
|
return "success";
|
|
return "success";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String payReverseNotification(PayNotification payNotification) {
|
|
|
|
|
+ /*QueryWrapper<PaymentRecords> queryMapper = new QueryWrapper<>();
|
|
|
|
|
+ queryMapper.eq("pay_id",payNotification.getPos_seq());
|
|
|
|
|
+ try {
|
|
|
|
|
+ PaymentRecords pr = paymentRecordsService.getOne(queryMapper);
|
|
|
|
|
+ //支付通知
|
|
|
|
|
+ if(!pr.getTransType().equals("2")){
|
|
|
|
|
+
|
|
|
|
|
+ }else{
|
|
|
|
|
+ log.info("重复推送支付成功消息---"+pr.getPaySn());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ return "fail";
|
|
|
|
|
+ }*/
|
|
|
|
|
+ return "success";
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public VaultsResponse<String> scanPayOrder(PaymentRecords records) {
|
|
public VaultsResponse<String> scanPayOrder(PaymentRecords records) {
|
|
|
BasicConfiguration basicConfig = Basic.getSystemParameter(records.getOperatorId());
|
|
BasicConfiguration basicConfig = Basic.getSystemParameter(records.getOperatorId());
|