我是 PayPal 的新手,我想知道实现 PayPal、SOAP 或 NVP API 的最佳方式是什么。
这两者之间的主要区别是什么???
最佳答案
我建议使用 NVP(名称-值对,基本上是带数据的 POST)API 而不是 SOAP API。 NVP 应该比 SOAP 轻得多。有a few questions已经on SO那complain about SOAP .我只是想弄清楚该使用哪个并偶然发现了那些。希望对您有所帮助。
此外,这是 PayPal describes the NVP API 的方法:
The PayPal Name-Value Pair API (NVP API) enables you to leverage the functionality of the PayPal API by simply sending an HTTP request to PayPal and specifying request parameters using name-value pairs. The NVP API is a lightweight alternative to the PayPal SOAP API and provides access to the same set of functionality as the SOAP API.
强调我自己。
关于soap - Paypal SOAP 和 NVP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1518263/