何时使用 IPN 以及何时使用 PayPal 中的 WebHook 作为通知机制? [英] When to use IPN and when WebHooks in PayPal as a notification mechanism?

查看:26
本文介绍了何时使用 IPN 以及何时使用 PayPal 中的 WebHook 作为通知机制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看 WebHooks 和 IPN 的文档,我想知道:在不需要真正实时通知的情况下,我应该使用哪一个?即使延迟 1 小时也可以.WebHooks 和 IPN 在这件事上有何不同?

I'm looking at the documentation of WebHooks and IPN and I wonder: which one should I use my store where I don't need really real-time notifications? Even 1 hour delay will do. How do WebHooks and IPN differ for this matter?

推荐答案

IPN 是将付款或订阅等事件通知商家的经典方式.它与已弃用的经典 API 相结合.事件可能需要一分钟才能到达商家.

IPN is the classical way of notifying merchants of events such as payments or subscriptions. It's coupled with the deprecated classic API. It might take a minute for events to reach the merchant.

Webhooks 是一种新的 REST API 方式,可以将事件几乎立即发送给商家.

Webhooks is the new REST API way where the event is sent almost instantly to the merchant.

最好实施 Webhooks,因为这是一种新方式,而且 IPN 将来可能会被处理掉.

It's better to implement Webhooks because it's the new way and IPN might be disposed of in the future.

这篇关于何时使用 IPN 以及何时使用 PayPal 中的 WebHook 作为通知机制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆