简体   繁体   English

PayPal在JavaScript应用程序中的集成

[英]PayPal integration in JavaScript app

I m developing a Cordova application (mobile and web). 我正在开发Cordova应用程序(移动和Web)。 I need to integrate a payment service like PayPal, for in-app micropayment purchases. 我需要集成PayPal这样的付款服务,以进行应用内小额付款购买。

I noticed two services on the PayPal's website: Braintree and Express Checkout. 我在PayPal网站上注意到了两项服务:Braintree和Express Checkout。 Actually I cannot use the Braintree service (braintreepayments.com) because I need to receive money exclusively on my PayPal account, no matter the customer pays using PayPal or direct credit card. 实际上,我无法使用Braintree服务(braintreepayments.com),因为无论客户使用PayPal还是直接信用卡付款,我都需要专门在PayPal帐户上收款。

So, I think the best way to go is Express Checkout. 因此,我认为最好的方法是Express Checkout。 I saw this link and it seems that two methods are available: vzero and REST calls. 我看到了此链接 ,似乎有两种方法可用:vzero和REST调用。

I think vzero would be better because of their mobile compatibility, but when I try to search informations about vzero, I m always getting informations about Braintree. 我认为vzero会更好,因为它们具有移动兼容性,但是当我尝试搜索有关vzero的信息时,我总是会得到有关Braintree的信息。

So I ma bit confused between vzero, Express Checkout, PayPal and Braintree and I don't know what to use to fit my needs. 所以我在vzero,Express Checkout,PayPal和Braintree之间有些困惑,我不知道该用什么来满足我的需求。

Any help ? 有什么帮助吗? Thanks 谢谢

The v.zero implementation on PayPal's site is a PayPal specific version of braintree. PayPal网站上的v.zero实现是Braintree的PayPal特定版本。 It allows you to, in the future, transition to Braintree for DCC, Venmo, Apple Pay, Bitcoin, etc, but allows you to use just PayPal for now. 它允许您将来过渡到DCC,Venmo,Apple Pay,比特币等的Braintree,但现在只允许使用PayPal。 With that implementation, you will have braintree functionality using only PayPal without having to have a braintree dashboard. 通过该实现,您将仅使用PayPal即可拥有大脑树功能,而无需拥有大脑树仪表板。

v.zero using PayPal would help with your mobile functionality, for sure, but you have more range of current options with the NVP/SOAP or REST versions of Express Checkout. 当然,使用PayPal的v.zero将有助于您的移动功能,但是使用NVP / SOAP或REST版本的Express Checkout,您可以使用更多当前选项。

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

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