这几天在调试支付宝相应的接口,支付宝的加密使用了证书,调用网站支付时可以正常跳转支付页面,调试当面付接口时发现报了
{“alipay_trade_precreate_response”:{“code”:“40002”,“msg”:“Invalid Arguments”,“sub_code”:“isv.invalid-signature”,“sub_msg”:“验签出错,建议检查签名字符串或签名私钥与应用公钥是否匹配,网关生成的验签字符串为:alipay_root_cert_sn=6bc29aa3b4d406c43483ffea81e08d22&alipay_sdk=alipay-sdk-java-4.8.10.ALL&app_id=2016101200665312&biz_content={“body”:“好的商品”,“out_trade_no”:“20191017105011111112011ddd”,“product_code”:“FACE_TO_FACE_PAYMENT”,“subject”:“2222”,“timeout_express”:“10m”,“total_amount”:“58888”}&charset=utf-8&format=json&method=alipay.trade.precreate&sign_type=RSA2×tamp=2019-10-18 17:49:24&version=1.0”},“sign”:“G+qYsFyUb4+n5e65lZjOFX7Bje6rXc7ykpsN3BK+bnoz/ATT1+7/aiBNznSo72zAmn+722uT9fZ8zjDxaBlgBfHD2rPpNtJVLq4sfUWgJt+Tsq328f7FsESVBEJMQ9MTkxbMpVndmZQDkL2yNH1Ke+4Lrpbv6oocMeWrnSiwaPMmhGZ1JOjFghVX9rNKZN1Qf1ZMGFlMu4wKzfRDq