收藏
回答

验证签名错误

我的商户号:104894229


请求 https://api.mch.weixin.qq.com/hk/v3/transactions/native 支付成功后,

报文主体

{"id":"d8790eb0-2ba5-57a4-a451-2516bdc94ce1","create_time":"2019-07-10T10:08:54+08:00","resource_type":"encrypt-resource","event_type":"TRANSACTION.SUCCESS","summary":"支付成功","resource":{"original_type":"transaction","algorithm":"AEAD_AES_256_GCM","ciphertext":"28UAdgbECCohTIf3Q87fJhiyb+g9+YRwnY0VVxc/BHPOYHNkfaptkwX7HpN0PlTtde6OYFC73njN8CyU+auUs05/jw/8fX5MIL6HVc49aoGPOhPVjCHxn/m0dQOfxNjldW/Z76dRwYz+/58voiwxQqpjKfzngqHaD41zrBUMWbkl4yMsJ7p0shz5Al0Nedvq2D7vx6FyTtza1/k1LQa6VHGkdlQQqTb9Me7D1OgJbBwA2Q4cktuGtaB778S/2mZaqnWjO6GgqkYx8wMqbGXBaaa8TNSop9VZQSd+US0RJ6FHjWpmazgePJlu6Udx37M5QfWKQI3Oh+dVaFW0JrMf52nQQjFsP6VCoYOHipoP12La8WvXGFu11orrgP267gxIDN5dgCDrZYywM4SvIufWSrz4TjyvBO9iM+0DwwIlMgrgeTwDqUGHwH55Sri2hftuUQEVfEZy5ljdd1XhyB4vyylCPwduepGFTcwBOGEDSUbKqMLI5mO9ncsfCazxELTtBYe6nbT7I/3jCQYliB6pdJIUBQ4lWzyz5043WW+bufmQnz7IALCfiTEAW+UHhOo4EW/MS1PToYaynNAPPBeab0ZjhsZxfc5PH6cp5TQVXXDPAHgIA5NZY/izfYw=","associated_data":"transaction","nonce":"LQpYw6zDRmrR"}}


头信息

Array

(

    [USER] => www

    [HOME] => /home/www

    [HTTP_ACCEPT] => */*

    [HTTP_HOST] => qingfeng.wlh298.com

    [HTTP_CONTENT_LENGTH] => 963

    [HTTP_USER_AGENT] => Mozilla/4.0

    [HTTP_PRAGMA] => no-cache

    [HTTP_WECHATPAY_TIMESTAMP] => 1562724535

    [HTTP_WECHATPAY_SIGNATURE] => XC3P0h0D3A3lXFNhrMnkCndROQ2vqZHj7ih8KPbTB0tZJMpd8q2Jr1WklFpmMYY/LxrwxckKLy5tUTFqJgV+8SjJrG25aunOnusp13ZesWxSuUJdg5c1MQz4IHctOEC/Oj2IBfKbQo1WaxFkMC4ENbc3LWlaaByKLtxFm0LkBcgZ3J6BeZEFnQaV7GaTIqj+L2Sgl81sBiuNllRBVe1GSGGXitJfG+3+ShL84bCoVbyM/b5o+BvUo/odKPWVtjnF4A31GEk67ERgfQC81dyJrSwjkJ+4AFu83WOaBorrva6Nkcu7oC1kZntS4kHhKGULxBMmiuA721rYiFUayqH3sA==

    [HTTP_CONNECTION] => Keep-Alive

    [HTTP_CONTENT_TYPE] => application/json

    [HTTP_WECHATPAY_SERIAL] => 19069CF3CC31F5C96C92F04330E444F631579E1C

    [HTTP_WECHATPAY_NONCE] => Do4paGBIojb7bV3iHhiVXeJEXZEHz22N

    [PATH_INFO] => /wechat/index/notify

    [REDIRECT_STATUS] => 200

    [SERVER_NAME] => 47.107.42.108

    [SERVER_PORT] => 443

    [SERVER_ADDR] => 172.18.197.91

    [REMOTE_PORT] => 57618

    [REMOTE_ADDR] => 140.207.54.78

    [SERVER_SOFTWARE] => nginx/1.14.0

    [GATEWAY_INTERFACE] => CGI/1.1

    [HTTPS] => on

    [REQUEST_SCHEME] => https

    [SERVER_PROTOCOL] => HTTP/1.1

    [DOCUMENT_ROOT] => /www/wwwroot/wechat/public

    [DOCUMENT_URI] => /index.php/wechat/index/notify

    [REQUEST_URI] => /index.php/wechat/index/notify

    [SCRIPT_NAME] => /index.php

    [CONTENT_LENGTH] => 963

    [CONTENT_TYPE] => application/json

    [REQUEST_METHOD] => POST

    [QUERY_STRING] => 

    [SCRIPT_FILENAME] => /www/wwwroot/wechat/public/index.php

    [FCGI_ROLE] => RESPONDER

    [PHP_SELF] => /index.php/wechat/index/notify

    [REQUEST_TIME_FLOAT] => 1562724535.4462

    [REQUEST_TIME] => 1562724535

)


验证一直错误

最后一次编辑于  07-10  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答

1 个回答