简体   繁体   English

REST API与经典API

[英]REST API vs Classic APIs

I am working with PayPal integration for the first time and am confused regarding the two solutions. 我是第一次使用PayPal集成,对这两种解决方案感到困惑。 I need to accept direct payments. 我需要接受直接付款。 User enters credit card information and I use PayPal as the processor. 用户输入信用卡信息,我使用PayPal作为处理器。 I would also at a later point after release like to add PayPal Express Checkout for convenience. 还会发布之后稍后添加PayPal Express Checkout以方便使用。 I have PayPal Payments Pro, which assigned me a Payflow account. 我有PayPal Payments Pro,它为我分配了一个Payflow帐户。 Which documentation should I follow to accomplish both? 我应该遵循哪些文件来完成这两项工作? There are so many assorted PDFs, many of which are over 100 pages, and I don't have a clear idea where I should start. 有很多各种各样的PDF,其中很多都超过100页,我不清楚我应该从哪里开始。

I would greatly appreciate a quick separation of services (XMLPay? DoDirectPayment?) 我非常感谢快速分离服务(XMLPay?DoDirectPayment?)

I am using C# / ASP.NET and already have the core and rest api libraries installed in my project via NuGet. 我正在使用C#/ ASP.NET,并且已经通过NuGet在我的项目中安装了核心和其余的api库。 I also have an app created and an ID+Secret pair to use. 我还创建了一个应用程序,并使用了ID + Secret对。

I have called PayPal but the phone team does not have the proficiency to answer these questions and simply refers me to the documentation site. 我打电话给PayPal,但电话团队没有能力回答这些问题,只是简单地将我引荐到文档站点。 Hopefully a developer who has been down this road can steer me in the right direction. 希望一直走在这条道路上的开发人员可以引导我朝着正确的方向前进。 Thanks! 谢谢!

I would suggest the REST Apis, they support both direct credit card and express checkout depending on which funding instrument (CC vs PayPal) you pass in the pay request. 我建议使用REST Apis,它们支持直接信用卡和快速结账,具体取决于您在付款请求中传递的资金工具(CC与PayPal)。

There is also a C# SDK provided to get you started, all info available at: https://developer.paypal.com/webapps/developer/docs/api/ 还提供了一个C#SDK来帮助您入门,所有信息均可在以下网址获得: https//developer.paypal.com/webapps/developer/docs/api/

For anyone running into this post in their search for more PayPal integration information (as I did), the C# REST API wrappers (provided by PayPal) are very useful, and they include full sample projects showing you how to perform most common tasks. 对于在搜索更多PayPal集成信息时遇到这篇文章的人(正如我所做的那样),C#REST API包装器(由PayPal提供)非常有用,它们包括完整的示例项目,向您展示如何执行大多数常见任务。

You can find them here: https://github.com/paypal/PayPal-NET-SDK 你可以在这里找到它们: https//github.com/paypal/PayPal-NET-SDK

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

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