简体   繁体   English

经典API和Rest API的区别?

[英]Difference of Classic API and Rest API?

I'm starting a new project and it consists of paypal transactions. 我正在开始一个新项目,该项目由Paypal交易组成。 No credit cards to be used on the transaction just only paypal to paypal transaction. 没有信用卡可用于交易,仅用于Paypal至Paypal交易。 Any idea on what is the best API to use between the two and why? 关于两者之间最好使用什么API的任何想法,为什么? Thanks. 谢谢。

You are able to accept payment from both PayPal account and credit card using classic API. 您可以使用经典API从PayPal帐户和信用卡接受付款。 But if your project contains mobile solution, I would recommend rest api since PayPal's mobile SDKs are using rest API. 但是,如果您的项目包含移动解决方案,则我建议使用rest api,因为PayPal的移动SDK正在使用rest API。

You can start with Classic API. 您可以从Classic API开始。 it's more robust and well developed. 它更加健壮和完善。 REST API does not support many variables/parameters that work in Classic API. REST API不支持在Classic API中工作的许多变量/参数。

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

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