PayPal + RESTful API + WebHooks + 自签名证书 [英] PayPal + RESTful API + WebHooks + Self Signed Certificates
问题描述
我一直在使用适用于 PayPal 的 REST API,并且能够顺利处理销售、退款等事宜.但是我遇到了 webhook 的问题.
I've been working with the REST API for PayPal and I'm able to get the sales, refunds, etc processed without an issue. But I am having an issue with the webhooks.
我在沙箱中配置了一个 webhook,它从不将信息发布到 webhook URL(甚至不尝试根据访问日志).
I have a webhook configured in sandbox and it never posts the information to the webhook URL (doesn't even attempt to according to the access logs).
由于 wbehooks 需要 https,我想知道将自签名证书与 webhooks 一起使用是否存在问题?这是我唯一能想到的防止 PayPal 访问 PayPal 沙箱出现故障的 URL 短的方法(我知道,这从来没有发生过).我可以让 IPN 与自签名一起使用,但 iirc SSL 不是 IPN 的要求.
Since wbehooks required https I was wondering if there is an issue with using self signed certificates with webhooks? It's the only thing I can think of to prevent PayPal from accessing the URL short of PayPal's sandbox being glitchy (I know, that NEVER happens). I can get IPN to work with the self signed but iirc SSL isn't a requirement for IPN.
帮助,请...
~Wranorn
推荐答案
嘿,我是 PayPal 的 Avi.自签名证书不应该用于 webhooks,如果你想测试不同的端点,你可以使用类似 ngrok 的东西在本地测试它.否则,了解从 PayPal 收到的用于支付执行调用的调试 ID 会很有用.目前,Sandbox 上存在一些 Webhook 的现有服务问题可能会导致此问题,并且正在积极解决这些问题.
Hey this is Avi from PayPal. Self signed certs should not be working for webhooks, if you want to test out a different endpoint you can use something like ngrok to test it locally. Otherwise it would be useful to know debug id received from PayPal for the payment execution call. There are some existing service issues for webhooks on Sandbox currently that could be contributing to this, and those are being actively worked on.
这篇关于PayPal + RESTful API + WebHooks + 自签名证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!