Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

REST API vs Classic APIs

Tags:

paypal

I am working with PayPal integration for the first time and am confused regarding the two solutions. I need to accept direct payments. User enters credit card information and I use PayPal as the processor. I would also at a later point after release like to add PayPal Express Checkout for convenience. I have PayPal Payments Pro, which assigned me a Payflow account. 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.

I would greatly appreciate a quick separation of services (XMLPay? DoDirectPayment?)

I am using C# / ASP.NET and already have the core and rest api libraries installed in my project via NuGet. I also have an app created and an ID+Secret pair to use.

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. Hopefully a developer who has been down this road can steer me in the right direction. Thanks!

like image 379
Zerkey Avatar asked Nov 16 '13 02:11

Zerkey


People also ask

What is difference between REST API and normal API?

API vs REST API: Key Differences While structurally, most of the APIs follow the application-application format, REST API strictly operates on the web concept of Client and Server. The Client and Server are separated from one another, giving more flexibility.

What are the 3 types of APIs?

There are also three common types of API architectures: REST, a collection of guidelines for lightweight, scalable web APIs. SOAP, a stricter protocol for more secure APIs. RPC, a protocol for invoking processes that can be written with XML (XML-RPC) or JSON (JSON-RPC).

What are the 4 main types of Web APIs?

Four types of web APIs There are four principal types of API commonly used in web-based applications: public, partner, private and composite.

Which is better than REST API?

GraphQL solves both over-fetching and under-fetching issues by allowing the client to request only the needed data; Since the client now has more freedom in the fetched data, development is much faster with GraphQL than what it would be with REST.


1 Answers

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.

There is also a C# SDK provided to get you started, all info available at: https://developer.paypal.com/webapps/developer/docs/api/

like image 113
Finn K Avatar answered Sep 20 '22 17:09

Finn K