App如何获取PayPal用户交易信息?

How app can get PayPal user transaction info?

当通过 Oauth2 将 PayPal 连接到我的应用程序的用户将收到付款时,我能否在特定 url 收到包含数据的通知?我知道可以使用 IPN,但是每个用户都需要在他们的帐户设置中添加我的 url。还有别的方法吗?

更新:或者我可以手动获取有关上次用户交易的信息(在我的应用程序外完成)吗?

我认为有很多方法可以完成您想要做的事情。

您提到了 IPN,那将是最好的方式。您可以在标准按钮代码或 API 请求中指定 NotifyURL(取决于您设置付款的方式),以便将这些付款的 IPN 发送到您的 IPN URL.这样您就不必让用户在他们自己的帐户中进行设置。

或者(或结合使用),您可以使用 Permissions API to allow users to authenticate your app to make API calls on their behalf. Then you can use the TransactionSearch and GetTransactionDetails API 来提取您需要的关于他们帐户交易历史的任何信息。