[英]Paypal payment integration selection
i have to integrate paypal payment gateway in php and iam in a state of confusion of selecting which method i have to choose. 我必须在PHP和iam中集成paypal支付网关处于混淆状态,选择我必须选择哪种方法。
I have gone through paypal developers documentation and found two methods. 我已经通过paypal开发人员文档,发现了两种方法。
1) REST API 2) Classic API 1)REST API 2)经典API
In classic apis there are still lot other options. 在经典的apis中还有很多其他选择。
I have to build a website with payment feature for a client in US and no other country will be using this website. 我必须为美国的客户建立一个具有付款功能的网站,其他国家/地区都不会使用此网站。
So which option will be best suitable and on what scenario i have to select REST API and Classic API. 那么哪个选项最适合我需要选择REST API和Classic API。
PayPal Classic and REST API PayPal Classic和REST API
Classic API 经典API
Request and response payloads are formatted as NVP and SOAP. 请求和响应有效负载的格式为NVP和SOAP。
Official PayPal SDK support for Express Checkout available with the PayPal Merchant SDK for .NET (GitHub | NuGet) PayPal Merchant SDK for .NET(GitHub | NuGet)提供对Express Checkout的官方PayPal SDK支持
REST API REST API
Request and response payloads are formatted as JSON 请求和响应有效负载格式为JSON
Official PayPal SDK support available with the PayPal .NET SDK (GitHub | NuGet) PayPal .NET SDK提供的官方PayPal SDK支持(GitHub | NuGet)
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. 通过PayPal名称 - 值对API(NVP API),您只需向PayPal发送HTTP请求并使用名称 - 值对指定请求参数,即可利用PayPal API的功能。 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.
NVP API是PayPal SOAP API的轻量级替代品,可以访问与SOAP API相同的功能集。
A few points to consider with respect to Classic API vs. REST API :
有关Classic API与REST API的几点要考虑:
Classic API is not going to be deprecated any time soon. 经典API不会很快被弃用。 You can use Classic API.
您可以使用Classic API。
Moreover REST API does not support many variables/parameters that work in Classic API. 此外,REST API不支持在Classic API中使用的许多变量/参数。
REST API can be used for both credit card and PayPal payments (express checkout architecture). REST API可用于信用卡和PayPal付款(快速结账体系结构)。
Note: 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)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.