简体   繁体   English

Paypal-PHP-SDK V2 是否支持Webhooks?

[英]Does Paypal-PHP-SDK V2 support Webhooks?

I am trying to implement Paypal's PHP sdk to create a subscription processor on my website.我正在尝试实施 Paypal 的 PHP sdk 以在我的网站上创建订阅处理器。 On their documentation they have a link to their Checkout V2 github link for PHP. On their side navigation menu, they have a link to Webhook implementation, but this just links to the deprecated version 1 of their documentation.在他们的文档中,他们有指向 PHP 的 Checkout V2 github 链接。在他们的侧边导航菜单中,他们有指向 Webhook 实现的链接,但这只是指向其文档的已弃用版本 1 的链接。

I cannot seem to find any information on how to setup a webhook to consume subscription creations, cancellations, successful payment notifications etc for their V2 code.我似乎找不到任何关于如何设置 webhook 以使用其 V2 代码的订阅创建、取消、成功付款通知等的信息。

Are webhooks still supported in V2? V2 是否仍然支持 webhooks?

The PayPal-PHP-SDK is deprecated. PayPal-PHP-SDK 已弃用。 As noted in the documentation :文档中所述

These /v1/payments and general-purpose REST SDKs are deprecated.这些/v1/payments和通用 REST SDK 已弃用。 See our current SDK offerings , which include the /v2/checkout and Payouts use cases.请参阅我们当前的 SDK 产品,其中包括/v2/checkout和支付用例。 For other APIs, use direct integration .对于其他 API,使用直接集成

Webhooks is one of those other APIs, for which you should use direct integration. Webhooks 是其他 API 之一,您应该对其使用直接集成。

This means no SDK.这意味着没有 SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM