ALIN10146-自查方案

来自    APP支付与登录 | 
作者:我是个导演  |  更新于:2018-06-01 11:27:32     

报错原因

    1.请求appid应用未上线

    2.签约权限问题    

    3.签名类型使用错误

    4.请求参数问题 

   5.秘钥匹配问题

正确请求参数示例如下↓↓↓

    

alipay_sdk=alipay-sdk-php-20161101&app_id=2016072800109035&biz_content=%7B%22out_trade_no%22%3A%22201712290251256987%22%2C%22total_amount%22%3A0.01%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22subject%22%3A%22app%E6%B5%8B%E8%AF%95%22%7D&charset=utf-8&format=json&method=alipay.trade.app.pay&notify_url=https%3A%2F%2Fwww.alipay.com&sign_type=RSA2&timestamp=2017-12-29+02%3A51%3A25&version=1.0&sign=HaD12RXDt8rubSpyHaN4n3KeJh3oh1KwQyQSzVg3XJGrtyvA%2BcAZVtJhyJsYwxMj17%2FNwBmF9QGOYiOQt%2FY%2FWvnt%2FwTCJ7wYByLvcxkQjaQR3dThEN3LXLzp%2FZESRPgVCIywkn%2Bk0Os6or2xG8uWljPRZekDxHGaz0ADqug9hJqxnovV1s8R%2BVf5T16DiJf8YSC%2BnXd%2FJxkWB%2Bbm8oJT1UVs5QMdw5e3LoqiQQJNYIHZbwdbkkFc41v1URwaLsdtgjZ6dH11DOE0fJsFMfAo3FbYoOuyG%2F4ZM1zqVpwWkPP0D4SC7NjIIlyv5LpsObV70nceyASd7w7G9mgjo6J3pQ%3D%3D

注:.net的SDK生成的请求支付串是没有alipay_sdk=这个头的  商户生成请求字符串直接使用就可以不要自己拼接上alipay_sdk= 否则会报错ALIN10146

最新推荐自查方案!!!

请各位开发者可以安装该帖中的apk进行测试一下看看是否可以唤起支付宝钱包支付:https://openclub.alipay.com/read.php?tid=7695&fid=60

 

自查流程

  1.appid 应用未上线,应用必须是“已上线”状态才可以调用

    检查方法:登录这个地址【点击登录】查看我的应用》调用app支付接口的appid应用是否“已上线”(如下图)

 

  2.权限自查

    1)如何查询自己权限:https://openclub.alipay.com/read.php?tid=2025&fid=72

    2)查看是否已经添加app支付功能包:https://openclub.alipay.com/read.php?tid=1671&fid=72

 

  3.签约类型自查

    2018年1月5号 之后创建的应用签名类型请使用RSA2【<a href="https://read.php?tid=4021&fid=69" target="_blank">详情查看公告】

    请把配置sign_type=RSA2   

 

  4.请求参数请严格按照app支付请求参数进行请求。   

    如果您报错这个错误,建议只传必传参数进行测试或者使用官方客户端demo测试先保证账号和密钥没有问题

    1).java和php app支付demo:https://openclub.alipay.com/read.php?tid=2376&fid=60

    2).官方客户端demo测试demo:https://docs.open.alipay.com/54/104509

 

 5.秘钥匹配问题

建议参考这个帖子验证公钥的正确性:      https://openclub.alipay.com/read.php?tid=1486&fid=46

沙箱账号查看地址:https://openhome.alipay.com/platform/appDaily.htm?tab=info

如下是沙箱测试用账号密钥,大家可以直接用我的沙箱账号进行测试,判断是否是因为密钥问题导致的报错,为了防止有些开发会直接拿我的密钥放到正式环境使用,造成安全隐患,我就不把公钥放出来给大家了:

        //沙箱APPID
	public static final  String app_id = "2016101800718925";
	//沙箱私钥
	public static final  String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDfDBUJhaw46ck8MHccIBXPt2USOvCRZ0dQNZZwC0EmZvcnL2+NUyoJMbgcV3U5o6wApajkpibf9UkrtYgI3/GZhOgzfzH0IJYAXmYCEniM+Cl5ipIWhY0W/s+uNRGNdXvNlketNNcVqAvkKZdcHz23N60BXsvjdR+BJ/np2CUmr9OCv0aqqwOO190rOuZvVaFCJD5LDmvDFdXPzrJHcOAyYjb2hhJIWt5n4o/b3LMYeuxfwWuQ4VlGx+s0wZJ1udUyAX8X8byqYcnevG8A1sQd/dRVNr8f1BxS8kjDIDljCzKPoYyoaoeJMhJIxrV8gL57oEIX7PbrlvFLplaC7g/XAgMBAAECggEAI4m/SFceC6tkPszSDY8nKoNj/TWa4u/7stH2+D8y0DWTp5CtS202w2RCm3Fr4hUr8KZ0dInso75nPCmeVRupWPaOML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V3+qkDwIewx4lghFCQpwhO6SNWj4ppSgXh7XAss=";
	//支付宝公钥
	public static final  String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnVuBUzhfo7kWUN/TS/kHmb4afsAlUVaTR3U5e74V0os1bzlfvh+cpwnwzaEIb36CR1OzeIIzXgARIW/zGAL1/PLG8dFEXQOIGkA0a8YXGVNX9KeWnFCnCQ5gQxrfJ3ryasXzWBxv5bex1VrVsQ2TZ1VdUD+S7dR4SWFHvyck8/xGt3Hz5peUqo/OIlfQpoTBXdqfnJNrTVAMqcQhrIWwgpSVgmUq+UhlZsDaiUvxWWFm9v9nY172jFfzup/DIET//OpIghL6AB2F+ywkCcHdZHiGklnpNoQKQ6XMVKaO/k2nlHU64Y4WGSgJnSG6B798ohZoi3pndrVPAH5+5BKEFQIDAQAB";
	//沙箱网关地址
	public static final  String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

注:如果大家用我的沙箱账号测试是成功的,但是用自己的账号密钥测试失败,要么是密钥问题,要么是没签约或者没添加功能包,针对这几点做检查即可。

如果还是报错,请提供测试环境(正式或沙箱)+开发语言+appid+请求时间+请求参数一份

后续这个报错在本帖下方进行讨论,方便大家快速解决问题

银龙 | 2018-10-11 00:24:49
大神,帮忙看下正式环境php一直报10146app_id=2018090861276759&biz_content={\"subject\":\"在线支付\",\"out_trade_no\":\"DShop181010223908527\",\"total_amount\":0.01,\"product_code\":\"APP\"}&charset=UTF-8&format=json&method=alipay.trade.app.pay&notify_url=http:\/\/div.angelhood.top\/payment\/alipay\/notify_url.php&sign_type=RSA2&timestamp=2018-10-11 00:12:34&version=1.0&sign=srQzN0I3KUCftFWvMya0Ab7zxhE1ZJKVwOPYWG5AahuamhIRTuWX2PKvJgXwAgI%2FIrjl1h5nf8215MbaYReJ68%2F7oJoD0h7eSHa5YPAfhPa%2FyGSE0YquYaxaO%2F4yT%2BjijSf9BVXuASrWaQXQ3LPo3%2BR7t299n8mO1PqRmm5DpA%2FFNjHocWk%2BKeEP0nxuTRk6FG7kmXgjVrdiwV6OFjWk8myN1qS6Tsy9QX6CEpldtOJdwnrxjH9e6MkYYavTCVtRtobHI0eG9CqNYiFm78ZXot9B%2F%2Fj7QzR1HhIXRpGLPcR9N6PcHbDqiFLoDTpBUYQBv66qTBV9bWcstErqeXH1rA%3D%3D
王兰玉 | 2018-10-11 10:10:24
银龙:大神,帮忙看下正式环境php一直报10146app_id=2018090861276759&biz_content={\"subject\":\"在线支付\",\"out_trade_no\":\"DShop181010223908527\...回到原帖
你好,你的product_code\":\"APP\"传值错误,建议参考该帖进行集成:https://openclub.alipay.com/read.php?tid=9568&fid=60
电影票友 | 2018-10-13 18:20:14
按照https://docs.open.alipay.com/54/106370/.netsdk提示的,同时也检查商户app功能已经开通,但还是报10146错误. alipay_sdk=alipay-sdk-NET-3.0.4&app_id=2018100961601704&biz_content=%7b%22body%22%3a%22%e6%88%91%e6%98%af%e6%b5%8b%e8%af%95%e6%95%b0%e6%8d%ae%22%2c%22out_trade_no%22%3a%22127422471%22%2c%22product_code%22%3a%22QUICK_MSECURITY_PAY%22%2c%22subject%22%3a%22App%e6%94%af%e4%bb%98%e6%b5%8b%e8%af%95DoNet%22%2c%22timeout_express%22%3a%2230m%22%2c%22total_amount%22%3a%220.01%22%7d&charset=utf-8&format=json&method=alipay.trade.app.pay&notify_url=http%3a%2f%2fsohu.com&sign_type=RSA2&timestamp=2018-10-13+18%3a02%3a00&version=1.0&sign=BQaHnrGI6PDwALlRU78lp2712GG%2bNzjbENgbLCmB6ZsRPFMuiuouFtblnbP965TPTnqAle7wAmBuGq1agGU3RJ9%2bTFnjSNz4slHkq6ISkUwbex6vYNFR4cKTOho3I99M30advM8ZQdDLl4QnZAiNeVo%2bNx5vVkd2YSfz2Ym1J5FbxYrgzkCEWjQBj0IAOJ7ku%2bIXO%2fahM5lKXeVE3FF%2fBOEW4fo8HXr39M%2bug1hUZjZynIQrOf%2f3RY37LnJYAakOsA%2b5CsIi%2bmprVe0AMOhS4nXQu8kH3PJtl9hqsSn0MjBLAINqehgltVg8315kXiPTtzW%2bztb49snJMfW9mzSmYg%3d%3d
天籁 | 2018-10-15 10:11:51
电影票友:按照https://docs.open.alipay.com/54/106370/.netsdk提示的,同时也检查商户app功能已经开通,但还是报10146错误. alipay_sdk=alipay-sdk-NET-3.0.4&app_id...回到原帖
看你的参数没什么问题 建议参考本帖第五步来排查一下秘钥问题 看一下秘钥是否匹配
车悠悠 | 2018-10-16 10:35:15
有人能帮忙看一下吗 ALIN10146的问题 alipay_sdk=alipay-sdk-java-3.3.49.ALL&app_id=2018090561231448&biz_content=%7B%22out_trade_no%22%3A%22201810169430000001%22%2C%22passback_params%22%3A%22%25E8%25BD%25A6%25E6%2582%25A0%25E6%2582%25A0%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%2C%22subject%22%3A%22%E8%BD%A6%E6%82%A0%E6%82%A0%E5%95%86%E5%93%81%E8%B4%AD%E4%B9%B0%22%2C%22timeout_express%22%3A%2230m%22%2C%22total_amount%22%3A%220.1%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay&notify_url=http%3A%2F%2F5248d116.ngrok.io%2Fapp%2Falipay%2Fnotify&sign=Xz%2BlWyv8%2BQ6r%2Ba%2Bng%2Fbp4I1%2FHTWgwdIeOi6xzRXeUmt2RhhSkgbrbDA5VlVEjjRGzdxo%2BJ%2FX6os9PKAeLm0U7FlJqwTBdtL8OxfAHjCm1acGHT7c1l8izkNYxC7D1ifXPub32ukswZH1LxiDHSWBgUHNVXYjdhIfZlIScKeVo%2BfEcKzQ8b2W52H3JzEB0m%2BZH0Nc0sBaA1f5tc89DuhRBCFmnZuTDHkvz8S19AqNw%2BzivdKPJB7Yp2A0opnF9hOMooR5onCf%2Fm%2BPF9vvKX8u%2FVoSlBPxbKPCbnQ0DMVoC1b7UNazOw659wIXpjA7OMcMoaqbPLbnTZNrS%2FFfzg9Hfg%3D%3D&sign_type=RSA2&timestamp=2018-10-16+09%3A43%3A00&version=1.0
天籁 | 2018-10-16 10:56:53
车悠悠:有人能帮忙看一下吗 ALIN10146的问题 alipay_sdk=alipay-sdk-java-3.3.49.ALL&app_id=2018090561231448&biz_content=%7B%22out_trade_no%22%3...回到原帖
biz_content参数中缺少subject参数 这个是必传参数 不能缺少 passback_params是非必传参数 建议取消 建议参考这个API:只传入必传参数测试:https://docs.open.alipay.com/204/105465/ 有问题再追问
欧拉欧拉 | 2018-10-16 11:24:43
alipay_sdk=alipay-sdk-php-20180705&app_id=2017040606564840&biz_content=%7B%22body%22%3A%22%5Cu4f59%5Cu989d%5Cu5145%5Cu503c%22%2C%22subject%22%3A%22%5Cu4f59%5Cu989d%5Cu5145%5Cu503c%22%2C%22out_trade_no%22%3A%222201810161044393979%22%2C%22total_amount%22%3A%220.81%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%7D&charset=utf-8&format=json&method=alipay.trade.app.pay&notify_url=https%3A%2F%2F832.st.wsy010.cn%2Fo2o%2Fdistribution%2Findex.php%2Fshop%2Fnotify%2Falipay.html&sign_type=RSA2&timestamp=2018-10-16+10%3A44%3A39&version=1.0&sign=v%2F10s0G06bJfDRhGK4CZ2ADc4getAZI9w0dYZe%2FhCBq4z41JoGxn7TpVX%2FDp9lxtMEFi9f%2BnhiP9aRJOaeEODwIh7tlVJmlnlgB%2FGVsX%2B%2B%2F4Kx6yFV6J9tm5ivx01iPTBuKN3wR%2Fnj8awPnpztuYddq8yt6fZoS2kK7ia6RXYAT9KeI039oILzM6CgxZgFgx4QXB68Qn0Bn5qM3sTnIou%2BRzLmbsd3nEN4G0YbcnxUrwhfeaZ8w6O10%2FZ1JbabyC%2BoEJIqLnrsoWpV8s1LeErU5QFoOh9Y2%2FLpIjRdQ%2BwQnESOrXAYRa039zZPsq409cGADDCTeD1%2F07nMhE717XHQ%3D%3D 求救,被搞崩溃了
天籁 | 2018-10-16 11:35:00
欧拉欧拉:alipay_sdk=alipay-sdk-php-20180705&app_id=2017040606564840&biz_content=%7B%22body%22%3A%22%5Cu4f59%5Cu989d%5Cu5145%5Cu50...回到原帖
你的这个appid对应的152***@qq.com 账户是没有签约APP支付的接口的所以调用会报错 建议先签约这个接口后再调用测试 如何签约请参考:https://openclub.alipay.com/read.php?tid=276&fid=72 有问题再追问
共享办公 | 2018-10-16 17:52:08
天籁:这边使用你的这个请求字符串是可以正常支付的 APP支付沙箱测试目前只支持安卓测试 且必须在客户端添加EnvUtils.setEnv(EnvUtils.EnvEnum.SANDBOX); 这一段代码 详细的请参考:https://docs...回到原帖
您好,请问下EnvUtils.setEnv(EnvUtils.EnvEnum.SANDBOX);是哪个sdk下的呢
别逗了 | 2018-10-17 15:45:37
报系统繁忙(10146),我对比了下没找到参数哪里有问题app_id=2018101061668024&biz_content=%7b%22subject%22%3a%22%e4%b8%96%e7%ba%aa%e8%b4%ad%e8%ae%a2%e5%8d%9518101714006GXAL%22%2c%22body%22%3a%2218101714006GXAL%22%2c%22product_code%22%3a%22QUICK_MSECURITY_PAY%22%2c%22out_trade_no%22%3a%2218101714006GXAL%22%2c%22timeout_express%22%3a%2290m%22%2c%22total_amount%22%3a%220.01%22%7d&charset=utf-8&format=JSON&method=alipay.trade.app.pay&notify_url=http%3a%2f%2fapi.sjgo365.com%2fpay%2fAlipayPayNotify&sign_type=RSA&timestamp=2018-10-17+15%3a37%3a25&version=1.0&sign=bY3l%2bq09nn9b1uKCqyjexMzmQYR8KLTNhTwpFTmWbh7ji%2byaivoQpdTDTFn%2f4Z%2fxS2xXq2p34Zi01LV7DWDFkEX3ISNypVexJw7ygytjdjJ1jCxd3HONJG3sgwT9KMT6mBk6uzoHHKNPFaoWMZhbhREJunvNKK9kO6zYsYXTD6qCdWWD1ygTo7agfdHRuhF2B3MmO357mUVmqWlMrI5eAC0mjVmi%2bSbTmcwQpKGK0ZCeRjqt%2fhd55RHrbL%2bHdKXIiBsUV3q%2bO4DtgC3m7hA86Pqx2dZU9%2f6VeuKtIWTVQrxcX%2fZcF5NVIl4c1HglCTzr970%2fk%2bjENx2SrGqjtTS4eQ%3d%3d
天籁 | 2018-10-17 15:52:46
别逗了:报系统繁忙(10146),我对比了下没找到参数哪里有问题app_id=2018101061668024&biz_content=%7b%22subject%22%3a%22%e4%b8%96%e7%ba%aa%e8%b4%ad%e8%ae%...回到原帖
sign_type=RSA 看你的appid应该是只有RSA(256)秘钥的上传入口的 也就是RSA2秘钥 你的sign_type应该是RSA2 建议你这边使用这里的服务端demo:https://docs.open.alipay.com/54/106370/生成请求字符串测试
小邓子 | 2018-10-18 15:38:17
app_id=2018092561508341&method=alipay.trade.app.pay&format=JSON&charset=utf-8&sign_type=RSA2&version=1.0&return_url=&notify_url=http%3A%2F%2Fapi.dadaodata.com%2Fpay%2Fapi%2Falinoti&timestamp=2018-10-18+15%3A23%3A26&sign=Wo6MWm9JxVG8lzdHN%2BcW9sa0vejL1v35lwWTztG1Rh2NlXN3gIYKMdD4Ud8yLMuGmTHrmnU3TH7aAe6WhSn7rUMq2Ob7WXgOBBiS2c1TEYSxP0jRB0guto4G%2BZD9ysT95daZRVODTIAM0C82rYKnTWwKweFy4C%2B3BmjGwskDKHebX7fw3Ii1NGi%2BRV1dgGqZ4YoEdkItFjgNjrChoa0zvYwitqUKBxSlIXC7Dc%2B4BuTf%2BiZYXZCjtUCHZGH9jEZ03oUAOg09VMqnndYfTSLZJEoAfDBAGQXkJWxfsNAqzZBA0b6lIxR49VF%2BVW%2FAXNoWTwAaVNaBWlmYQlXDxiIsCw%3D%3D&biz_content=%7B%22out_trade_no%22%3A%22201810181523264650814131%22%2C%22total_amount%22%3A%220.1%22%2C%22subject%22%3A%22%5Cu652f%5Cu4ed8%5Cu5b9d%5Cu5145%5Cu503c%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%7D php 手机支付 报alin10146 系统繁忙
天籁 | 2018-10-18 15:49:00
小邓子:app_id=2018092561508341&method=alipay.trade.app.pay&format=JSON&charset=utf-8&sign_type=RSA2&version=1.0&return_url=&not...回到原帖
return_url=在APP支付的接口是没有这个参数的 需要取消 还有你的这个参数请求字符串顺序是不对的 建议参考这里的示例demo:https://docs.open.alipay.com/54/106370/ 使用SDK生成请求字符串测试一下
威武123 | 2018-10-26 16:16:25
问题1: 在移动支付老版本接口文档中,没有找到移动支付订单的查询接口,请提供一下这个接口的文档 问题2: 使用app支付订单查询接口去查询老版本移动支付订单时,返回“无效的AppID参数”,请问新版的查询接口能有办法支持版本订单吗? 使用的是SDK中的查询API(AlipayTradeQueryResponse response = alipayClient.execute(request);)
我的回复
回复数
  226
阅读数
  68031

返回顶部