支付宝报错:sign check fail: check Sign and Data Fail JSON also 支付宝签名文件错误
支付过程执行成功但对response返回结果进行签名出现错误。
错误原因:
把应用公钥设置成支付宝公钥。
public static final String ALIPAY_PUBLIC_KEY = "应用公钥";
解决:
public static final String ALIPAY_PUBLIC_KEY = "支付宝公钥";
PS:
支付宝
https://www.alipay.com
sdk 集成
https://doc.open.alipay.com/doc2/detail?treeId=54&articleId=103419&docType=1
支付宝扫码支付
https://doc.open.alipay.com/doc2/detail.htm?spm=0.0.0.0.B6xA20&treeId=26&articleId=103239&docType=1