请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

支付宝回调问题

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

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
下面是回调路径的配置:
图片描述
图片描述
查了一晚上,实在是不知道那错了

正在回答 回答被采纳积分+3

5回答

提问者 weixin_慕标0301205 2019-08-10 23:08:37

https://img1.sycdn.imooc.com//szimg/5d4edda609381ab512560663.jpg

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

0 回复 有任何疑惑可以回复我~
提问者 weixin_慕标0301205 2019-08-10 00:43:10

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

0 回复 有任何疑惑可以回复我~
提问者 weixin_慕标0301205 2019-08-09 17:18:15

https://img1.sycdn.imooc.com//szimg/5d4d39a80960f0b814600866.jpg

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

0 回复 有任何疑惑可以回复我~
提问者 weixin_慕标0301205 2019-08-09 15:45:14

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

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

0 回复 有任何疑惑可以回复我~
geelylucky 2019-08-09 15:32:54

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

0 回复 有任何疑惑可以回复我~
  • 提问者 weixin_慕标0301205 #1
    这个是当时讲nginx时候我在vhost文件里面配置的那个地址,应该公网不能访问?,我不知道这个路径是写什么,以为是写这个,然后写上去的,那支付宝回调地址应该些什么啊,是natapp里面那个域名吗
    回复 有任何疑惑可以回复我~ 2019-08-09 15:42:17
  • 提问者 weixin_慕标0301205 #2
    老师我现在就差支付宝回调地址的问题了,其他的都好了,希望老师能给解答下
    回复 有任何疑惑可以回复我~ 2019-08-10 00:43:31
  • 提问者 weixin_慕标0301205 #3
    就是回调的参数request拿不到,是空的
    回复 有任何疑惑可以回复我~ 2019-08-10 00:54:50
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信