字节小程序
开发者社区
小程序小游戏
登录
支付签名错误

支付签名错误

74浏览作者: shahua

https://developer.toutiao.com/api/apps/ecpay/v1/create_order

报签名错误

参数:

{

"app_id": "tta9dedf6336ef66a801",

"out_order_no": "20240427140434220_yjhb0qfm",

"total_amount": 1,

"cp_extra": "73439351563837463410",

"valid_time": 900,

"notify_url": "https://www.zxdkxl.com/cy/apis/notify/tt",

"subject": "充值0.01元得40尧币",

"body": "充值0.01元得40尧币",

"sign": "8092ea44ec53c115ae46df5fa035d3a5"

}
报签名错误

我设置的签名串为:"{body}&{cp_extra}&{notify_url}&{out_order_no}&{salt}&{subject}&{total_amount}&{valid_time}"

生成的签名是“fbd171eca3ae9f91dcc2a2c2a5bf97e4”,与工具生成的签名“3360e421830c4e082dbda0fbdba53ec6”不一样

是哪里出错了吗

最后一次编辑于 2024年04月27日
加载中