运行支付宝demo报错
来源:11-4 支付宝支付功能官方Demo调试实操1(知识点补充)
幻神羽儿
2017-10-05
十月 05, 2017 9:17:14 上午 com.alipay.demo.trade.config.Configs init
INFO: 配置文件名: zfbinfo.properties
十月 05, 2017 9:17:14 上午 com.alipay.demo.trade.config.Configs init
INFO: Configs{支付宝openapi网关: https://openapi.alipaydev.com/gateway.do
, 支付宝mcloudapi网关域名: http://mcloudmonitor.com/gateway.do
, pid: 2088102170406092
, appid: 2016080700191328
, 商户RSA私钥: MIIEvg******HUt5Ub
, 商户RSA公钥: MIIBIj******IDAQAB
, 支付宝RSA公钥: MIIBIj******IDAQAB
, 签名类型: RSA2
, 查询重试次数: 5
, 查询间隔(毫秒): 5000
, 撤销尝试次数: 3
, 撤销重试间隔(毫秒): 2000
, 交易保障调度延迟(秒): 5
, 交易保障调度间隔(秒): 900
}
十月 05, 2017 9:17:14 上午 com.alipay.demo.trade.service.impl.AbsAlipayTradeService tradePrecreate
INFO: trade.precreate bizContent:{"out_trade_no":"tradeprecreate15071662342821716139","seller_id":"","total_amount":"0.01","undiscountable_amount":"0","subject":"xxx品牌xxx门店当面付扫码消费","body":"购买商品3件共20.00元","goods_detail":[{"goods_id":"goods_id001","goods_name":"xxx小面包","quantity":1,"price":"10"},{"goods_id":"goods_id002","goods_name":"xxx牙刷","quantity":2,"price":"5"}],"operator_id":"test_operator_id","store_id":"test_store_id","extend_params":{"sys_service_provider_id":"2088100200300400500"},"timeout_express":"120m"}
十月 05, 2017 9:17:15 上午 com.alipay.api.internal.util.AlipayLogger logBizError
SEVERE: 2017-10-05 09:17:15^_^{"alipay_trade_precreate_response":{"code":"10000","msg":"Success","out_trade_no":"tradeprecreate15071662342821716139","qr_code":"https:\/\/qr.alipay.com\/bax09981tpzt6pnadxjk00fd"},"sign":"AOIIgFcaNnv0ACsA8BVZZpFAAUVI4Vl9JADddc5Il/LRTqjkCwTxhfxZbglWnejV234HDJ1yaXVsWDTf0ptUnlwNDhDcUsWTul8NYvBUrUeOYcMTQAEJkBmUr1OxhANePyph1u6dQurVc8wWLo2A5Xm+MPn5KSIWhV3G1d6ry50KSez7j/HFDrSQ0+aNccF90SRjIRRTyrn2oIGcgDMS/x8MKRdNswDufImGAOhQqE4UCPOrLwDWBPwbMEX0ZfF+9/GZnZqH89GcZ/G+uyIjohRGkqeQ9t7h1H7iDus7wIHR5EWMDVZG0LIquHBoUhZBYcm4nuGj5o8J9wKtGpsb6w=="}
com.alipay.api.AlipayApiException: com.alipay.api.AlipayApiException: sign check fail: check Sign and Data Fail!JSON also!
at com.alipay.api.DefaultAlipayClient._execute(DefaultAlipayClient.java:438)
at com.alipay.api.DefaultAlipayClient.execute(DefaultAlipayClient.java:123)
at com.alipay.api.DefaultAlipayClient.execute(DefaultAlipayClient.java:110)
at com.alipay.api.DefaultAlipayClient.execute(DefaultAlipayClient.java:104)
at com.alipay.demo.trade.service.impl.AbsAlipayService.getResponse(AbsAlipayService.java:32)
at com.alipay.demo.trade.service.impl.AbsAlipayTradeService.tradePrecreate(AbsAlipayTradeService.java:102)
at com.alipay.demo.trade.service.impl.AlipayTradeServiceImpl.tradePrecreate(AlipayTradeServiceImpl.java:1)
at com.alipay.demo.trade.Main.test_trade_precreate(Main.java:426)
at com.alipay.demo.trade.Main.main(Main.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: com.alipay.api.AlipayApiException: sign check fail: check Sign and Data Fail!JSON also!
at com.alipay.api.DefaultAlipayClient.checkResponseSign(DefaultAlipayClient.java:534)
at com.alipay.api.DefaultAlipayClient._execute(DefaultAlipayClient.java:429)
... 13 more
十月 05, 2017 9:17:15 上午 com.alipay.demo.trade.Main test_trade_precreate
SEVERE: 系统异常,预下单状态未知!!!
2回答
-
com.alipay.api.AlipayApiException: com.alipay.api.AlipayApiException: sign check fail: check Sign and Data Fail!
你好,同学,这里提示sign fail,请看看代码,最后是有remove sign的代码的,对比一下课程代码。
如果和课程保持一致的代码,不会出现问题的。请对比一下哈
另外,看帖子看帖子看帖子,重要的说三遍哈
我给大家整理了这个,有问题可以来看看先找一下。 肯定有你想要的哈
部署环境的话 ,建议看下文章最后一小段哟~
尽快进入咱们QQ群哟~~
课程项目思维导图及线上环境、测试环境、部署linux和windows等解答
http://www.imooc.com/article/20193
【重点】问答区常见问题整理
http://www.imooc.com/article/18998
课程项目QQ群分享手记
http://www.imooc.com/article/19094
找工作的季节之简历及找工作的分享
http://www.imooc.com/article/19998
项目环境、vsftpd、linux、mysql等各种配置、软件下载
http://learning.happymmall.com
课程求10分好评哇谢谢啦~~(づ ̄ 3 ̄)づ
022018-09-27 -
幻神羽儿
提问者
2017-10-05
但是不影响生成二维码和收付款,配置文件都是按教程配置的,麻烦老师帮忙看看!
00
相似问题