简体   繁体   English

贝宝定期计划列表为NULL

[英]PayPal Recurring Plan List is NULL

I'm attempting to get a list of all Recurring Payment plans using the C# API. 我正在尝试使用C#API获取所有定期付款计划的列表。 The result is always NULL. 结果始终为NULL。 What am I doing wrong? 我究竟做错了什么? I setup and tested other similar API requests such as Invoie.GetAll and that works, so I am confident my user account is setup correctly, I have a good auth token, etc. 我设置并测试了其他类似的API请求(例如Invoie.GetAll),该请求可以正常工作,因此我确信我的用户帐户设置正确,具有良好的身份验证令牌等。

Here is my code (note: I've tried passing the optional parameters too with no luck). 这是我的代码(注意:我也尝试过传递可选参数,但是没有运气)。 Perhaps there is a bug with the Api? 也许Api有错误?

        var plans = PayPal.Api.Plan.List(_apiContext);
        return Xml(plans);

Turns out I needed to use Express Checkout of the NVP and SOAP API Reference . 事实证明,我需要使用NVP和S​​OAP API参考的 Express Checkout。 I have something working now. 我现在有工作。

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

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