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

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

问题描述

我正在查看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中将WebHooks用作通知机制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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