关于返回参数问题

来源:7-11 支付宝密钥说明

bleso

2021-08-24

		WxPayConfig wxPayConfig = new WxPayConfig();
        wxPayConfig.setAppId("wxd898fcb01713c658");          //公众号Id
        //支付商户资料
        wxPayConfig.setMchId("1483469312");
        wxPayConfig.setMchKey("7mdApPMfXddfWWbbP4DUaVYm2wjyh3v3");
        wxPayConfig.setNotifyUrl("http://ayanpay.natapp1.cc/pay/notify");
        BestPayServiceImpl bestPayService = new BestPayServiceImpl();
        bestPayService.setWxPayConfig(wxPayConfig);
        PayRequest payRequest = new PayRequest();
        payRequest.setPayTypeEnum(BestPayTypeEnum.WXPAY_NATIVE);
        payRequest.setOrderId("123128908");
        payRequest.setOrderName("bleso-微信公众账号支付订单2");
        payRequest.setOrderAmount(0.02);
        PayResponse payResponse = bestPayService.pay(payRequest);
        System.out.println(payResponse);

这里返回的payResponse的内容的OrderId为空咋回事?

写回答

1回答

廖师兄

2021-08-31

控制台日志显示什么?可以在

bestPayService.pay

里打断点,看微信返回什么

0
0

实战支付+电商双系统 玩转Java技术栈

花一份课的价,收获:双系统实战+坐拥20K+粉的师兄指导,值~

2047 学习 · 1048 问题

查看课程