Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

How can we help?

BACK

Why can't I receive the asynchronous notification in time?

Question:

No asynchronous notifications received.

Cause & Solution:

1- parameter notify_url was not set in the request

Check whether the notify_url is set correctly in the request. The value should start with http: // or https: //

2- notify_url is incorrect

Check whether the notify_url is incorrectly filled in the internal network address, and confirm whether the port number is correct.

3- Network certificate issues

If your address is https, that is, there is a certificate, you need to add a step to check whether it is a certificate issue.

Only genuine SSL certificates issued by official agencies are supported. Self-signing is not supported.

Inspection address: https://www.sslshopper.com/ssl-checker.html

4- The request was intercepted

Please check whether you have set up an IP firewall and add Alipay's IP to your whitelist.

Asynchronous notifications in the production environment will be sent through the proxy. The request header will carry x-forwarded-proto and x-forwarded-for. Please check whether the firewall will intercept the proxy request.

5- Abnormal when receiving notification

Confirm the reading method. Alipay's notification is a POST request. Check whether the signing passes and whether the relevant code is executed normally without exception.


问题:

收不到异步通知。

原因&检查方案:

1、请求中未设置notify_url

检查请求中是否正确设置了notify_url,值应为http://或者https://开头。

2、notify_url不正确

检查notify_url是否误填了内网地址,确认端口号是否正确。

3、网络证书问题

如果您的地址是https,也就是有证书,需加一步是否是证书问题;

只支持官方机构颁发的正版SSL证书,不支持自签名。

检验地址:https://www.sslshopper.com/ssl-checker.html

4、请求被拦截

请检查您是否设置了IP防火墙,请将支付宝的IP加入您的白名单。

正式环境的异步通知将通过代理发送,请求的header中会带有x-forwarded-proto和x-forwarded-for,请检查防火墙是否会拦截代理请求。

5、通知接收时异常

确认读取方式,支付宝的通知为POST请求。检查是否验签通过,相关代码是否正常执行无异常。

NEED HELP?

NEED HELP?