如何确定 PayPal 帐户是否已使用新的 .NET REST 库进行验证

How do I determine if a PayPal account is verified using the new .NET REST Libraries

所以我在 Visual Studio 2010 年使用 Nuget 包安装了 PayPal.net SDK 1.7.0。根据我的所有阅读,这是 'latest and greatest' 并且有望成为 PayPal 中最向前兼容的库。

我在测试 Payout 功能时没有遇到任何问题,运行良好。

但是,在进行付款之前,我想在允许付款之前确定 PayPal 用户是否已验证(地址或银行帐户)。我能找到的唯一描述我在这里需要的文档只能在一个名为 'Adaptive Accounts' 的即将被弃用的库中找到。

https://github.com/paypal/adaptiveaccounts-sdk-dotnet

你直接去 GitHub link,它甚至建议不要使用它。那么,到底如何实现发款前预验证的功能呢?

This Classic SDK is not actively supported and will be deprecated in the future. For full support on new integrations, please use the PayPal .NET SDK

那么我要使用它还是我安装的新库支持此功能,但就是找不到相关文档?

我们的 REST API 库目前不支持 AdaptiveAccounts。

如果您想使用自适应帐户 API,您将需要使用经典 API 集成。您应该使用的特定 API 称为 GetVerifiedStatus API.

https://developer.paypal.com/webapps/developer/docs/classic/api/adaptive-accounts/GetVerifiedStatus_API_Operation/

如果您正在为它寻找 SDK,这里是适用于 AdaptiveAccounts 的最新 SDK:https://www.nuget.org/packages/PayPalAdaptiveAccountsSDK/

这不会贬值,至少不会很快,直到 REST API 支持 AdaptiveAccounts API。