支付宝回调问题

来源:11-10 支付模块所有功能自测

weixin_慕标0301205

2019-08-09

老师我的支付宝可以扫码付款,并付款成功,商家的金额也会和买家对应,但支付宝不能回调,数据库中订单状态也没有发生变化。

09-Aug-2019 01:54:59.741 INFO [http-apr-8080-exec-6] com.alipay.demo.trade.service.impl.AbsAlipayTradeService.tradePrecreate trade.precreate bizContent:{"out_trade_no":"1492091089794","seller_id":"","total_amount":"4.00","undiscountable_amount":"0","subject":"happymmall扫码支付,订单号:1492091089794","body":"订单1492091089794购买商品共4.00元","goods_detail":[{"goods_id":"26","goods_name":"Apple iPhone 7 Plus (A1661) 128G 玫瑰金色 移动联通电信4G手机","quantity":1,"price":"6999"}],"operator_id":"test_operator_id","store_id":"test_store_id","extend_params":{"sys_service_provider_id":"2088102178934742"},"timeout_express":"120m"}
09-Aug-2019 01:55:01.039 INFO [http-apr-8080-exec-6] com.alipay.api.internal.util.AlipayLogger.logBizSummary Summary^_^10000^_^null^_^ProtocalMustParams:charset=utf-8&method=alipay.trade.precreate&sign=F1pSGT92uV1Q+iKyQ7j/PruwMSalBVqcgaABKJdCudun4tbXexpyAq4RfXXYQOGSL92YL2qSx291vIFdhSFZPYu88QBkBS1oIs30g/QgD/RD9HG4HBiFTO0/tGjddALMQBKp3p2mzH30rUssKzUmn2Bg6Gl2PSr3362rr9UOZvNFu+OC/c9VMelJODzrbZJcMgDZgxMF29fPEjZgn6zGlR3QK75VL5onFqca0OgvTrs7JGJkA7GG2NGkzYcd10k2Z2W1xD5E3kcqq2LXLXLEdttAvgfyfEpVqJKnAPYB251Fa0rS3AD/Zec/Lq36899kb5ndQN+Dfn9Grx5SMLcRog==&notify_url=http://tomcat.imooc.com/mmall/order/alipay_callback.do&version=1.0&app_id=2016101000653137&sign_type=RSA2&timestamp=2019-08-09 01:54:59^_^ProtocalOptParams:alipay_sdk=alipay-sdk-java-3.3.0&format=json^_^ApplicationParams:biz_content={"out_trade_no":"1492091089794","seller_id":"","total_amount":"4.00","undiscountable_amount":"0","subject":"happymmall扫码支付,订单号:1492091089794","body":"订单1492091089794购买商品共4.00元","goods_detail":[{"goods_id":"26","goods_name":"Apple iPhone 7 Plus (A1661) 128G 玫瑰金色 移动联通电信4G手机","quantity":1,"price":"6999"}],"operator_id":"test_operator_id","store_id":"test_store_id","extend_params":{"sys_service_provider_id":"2088102178934742"},"timeout_express":"120m"}^_^71ms,1163ms,60ms
09-Aug-2019 01:55:01.039 INFO [http-apr-8080-exec-6] com.alipay.demo.trade.service.impl.AbsAlipayService.getResponse {"alipay_trade_precreate_response":{"code":"10000","msg":"Success","out_trade_no":"1492091089794","qr_code":"https:\/\/qr.alipay.com\/bax06837vkrbfuqfjbx40044"},"sign":"bmLNwhTe/WlzFJxPYvj+6OFiC9BGAcCtwKw/Iz5IWG8G0IEQV0gOsJk7mKjnzwMF3u1Lm0xEHKbcRO+AyzsNjuKOJz7voMw4sHNmiV//qVGnpDOnb1cpAiYfeIgyO3oWImwj8i/QN4zOAjPZaKMqiWzQ6T3cOJPRPvKbpP3XIyyjEmb4g7yzl7+i5BcszshzTriAhJXJtQ2IiziNFM9NfuXz0YFxisubo/CO8r4+uNnjAGsZcVV0aEIFuwuxGri2/zFv5bqq00ODmkcPkoE6tA/d5LTjpxgZVrVzNf2CLehVQTg6kKOXHepOckBP3tAs4H8+eGBY5Q2OrodLqw//jg=="}
09-Aug-2019 01:55:01.048 INFO [http-apr-8080-exec-6] com.mmall.service.impl.OrderServiceImpl.pay 支付宝预下单成功: )
09-Aug-2019 01:55:01.049 INFO [http-apr-8080-exec-6] com.mmall.service.impl.OrderServiceImpl.dumpResponse code:10000, msg:Success
09-Aug-2019 01:55:01.049 INFO [http-apr-8080-exec-6] com.mmall.service.impl.OrderServiceImpl.dumpResponse body:{"alipay_trade_precreate_response":{"code":"10000","msg":"Success","out_trade_no":"1492091089794","qr_code":"https:\/\/qr.alipay.com\/bax06837vkrbfuqfjbx40044"},"sign":"bmLNwhTe/WlzFJxPYvj+6OFiC9BGAcCtwKw/Iz5IWG8G0IEQV0gOsJk7mKjnzwMF3u1Lm0xEHKbcRO+AyzsNjuKOJz7voMw4sHNmiV//qVGnpDOnb1cpAiYfeIgyO3oWImwj8i/QN4zOAjPZaKMqiWzQ6T3cOJPRPvKbpP3XIyyjEmb4g7yzl7+i5BcszshzTriAhJXJtQ2IiziNFM9NfuXz0YFxisubo/CO8r4+uNnjAGsZcVV0aEIFuwuxGri2/zFv5bqq00ODmkcPkoE6tA/d5LTjpxgZVrVzNf2CLehVQTg6kKOXHepOckBP3tAs4H8+eGBY5Q2OrodLqw//jg=="}
09-Aug-2019 01:55:01.634 INFO [http-apr-8080-exec-6] com.mmall.service.impl.OrderServiceImpl.pay qrPath:D:\01_javase\apache-tomcat-8.0.37-windows-x64\apache-tomcat-8.0.37\webapps\mmall\upload/qr-1492091089794.png

图片描述

查询状态结果是false
下面是回调路径的配置:
图片描述
图片描述
查了一晚上,实在是不知道那错了

写回答

5回答

weixin_慕标0301205

提问者

2019-08-10

//img.mukewang.com/szimg/5d4edda609381ab512560663.jpg

就回调接口的request是空的拿不到,恳请老师给指导指导

0
0

weixin_慕标0301205

提问者

2019-08-10

老师我现在就差支付宝回调地址的问题了,其他的都好了,希望老师能给解答下

0
0

weixin_慕标0301205

提问者

2019-08-09

//img.mukewang.com/szimg/5d4d39a80960f0b814600866.jpg

付款之后,直接范文路径报空指针异常

0
0

weixin_慕标0301205

提问者

2019-08-09

//img1.sycdn.imooc.com/szimg/5d4d245109aa635f06960246.jpg

那应该是写这个http://zy7tp7.natappfree.cc这个域名吗

0
0

geelylucky

2019-08-09

同学,http://tomcat.imooc.com这个域名公网能访问嘛?

0
6
kiki的小黑猫
回复
weixin_慕标0301205
请问你现在解决了吗?我也是最后卡在这里了,替换了natapp的公网域名后回调部分还是报空指针
2020-02-29
共6条回复

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程