小程序支付开发,一直不能完成返回,这些参数怎样生成?

微信支付 文章 2021-03-24 09:21 655 0 全屏看文

AI助手支持GPT4.0

小程序支付开发,一直不能完成返回,这些参数怎样生成?The payment development of the mini program has been unable to complete the return. How to generate these parameters?

小程序支付开发,一直不能完成返回,这些参数怎样生成?

真的很佩服写这些技术文档的工程师,写的参数名称很多上文不接下文,根本不知怎么来。

运行的结果众所周知,这样运行直接返回签名错误。

{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":1074,"truncated_sign_message":"POSTn/v3/pay/transactions/jsapin1616489894n368b0a9db0936ee30adea669130f3b16n{"time_en","url":"/v3/pay/transactions/jsapi"}},"message":"错误的签名,验签失败"}


I really admire the engineers who write these technical documents. They write a lot of parameter names, but I don't know how. The running result is well known, so the running directly returns the signature error. {"code":"SIGN_ ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_ information":{"method":"POST","sign_ message_ length":1074,"truncated_ sign_ message":"POSTn/v3/pay/transactions/jsapin1616489894n368b0a9db0936ee30adea669130f3b16n{"time_ "E", "URL": / V3 / pay / transactions / jsapi "}}," message ":" wrong signature, signature verification failed "}"

回答:

Yza:

基本 开发者看完文档可以自己写出来搞定了,而且官方还提供 验签工具。你总不能直接复制粘贴就以为搞定吧

Memory:

建议多看看文档

跨商通:

目测楼主属于一上来就走代码,接触微信支付不超过半天。

-EOF-

AI助手支持GPT4.0