minibear2021 / wechatpayv3

微信支付 API v3 Python SDK
MIT License
933 stars 141 forks source link

Exception: No wechatpay platform certificate, please double check your init params. #56

Closed langubtc closed 3 months ago

langubtc commented 3 months ago

使用Demo的方式报错,出现以下问题。

Exception: No wechatpay platform certificate, please double check your init params.

使用我自己下载的证书报错:

image

{
    "data": {
        "order_number": "20240801060352000005",
        "payment_info": 401,
        "message": "{\"code\":\"SIGN_ERROR\",\"detail\":{\"detail\":{\"issue\":\"sign not match\"},\"field\":\"signature\",\"location\":\"authorization\",\"sign_information\":{\"method\":\"POST\",\"sign_message_length\":348,\"truncated_sign_message\":\"POST\\n/v3/pay/transactions/jsapi\\n1722492232\\n1FAE111772BD4B97AD1100D6659C3868\\n{\\\"notify\\n\",\"url\":\"/v3/pay/transactions/jsapi\"}},\"message\":\"商户证书序列号有误。\"}"
    },
    "code": 0,
    "message": "Success"
}```
langubtc commented 3 months ago

我已经试过你说的额换v3key的方法,还是报错

langubtc commented 3 months ago

自己找到问题了,已经解决