简体   繁体   English

Android上的Paypal Save Card

[英]Paypal Save Card on Android

I'd like to use the paypal SDK for android in order to process real products available in my app. 我想使用paypal SDK for android来处理我的应用程序中可用的真实产品。 I would like the users to enter their card information only once, or at least only require a security code and for paypal to save these details so I need only send a token of some sort to refer to those saved details, rather than the user entering their card information again when purchasing a different product. 我希望用户只输入一次卡片信息,或者至少只需要一个安全码和paypal来保存这些细节,所以我只需要发送某种令牌来引用那些保存的细节,而不是用户输入购买不同产品时,他们的卡信息会再次出现。 Essentialy, I want to make the process of buying further products as easy as possible after the initial purchase. 实际上,我想在初次购买后尽可能简单地购买更多产品。

Is this possible using the paypal SDK for android? 这可能是使用paypal SDK for android? or would I need to implement the Paypal REST API on my server, and communicate from the android to the server, and let that do the heavy lifting instead? 或者我是否需要在我的服务器上实现Paypal REST API ,并从android到服务器进行通信,让它重做呢?

I actually don't understand the difference between the Paypal SDK for android, and the REST API available, as I imagine you could use both from android (using HttpClient for example) 我实际上不明白用于Android的Paypal SDK和可用的REST API之间的区别,因为我想你可以同时使用android(例如使用HttpClient)

Thank you, 谢谢,

Jonas 乔纳斯

Sounds like you are wanting to enable future payments in your app. 听起来您想要在您的应用中启用将来的付款 However, PayPal Mobile SDK 2.0+ only supports this feature as PayPal payments and not direct credit cards. 但是,PayPal Mobile SDK 2.0+仅支持此功能作为PayPal付款而非直接信用卡。

Currently if you wanted to store credit card details you would need to use REST API and the Vault . 目前,如果您想存储信用卡详细信息,则需要使用REST API和Vault

Paypal SDK: The PayPal Mobile SDKs enable native apps(Android, iOS) to easily accept PayPal and credit card payments. Paypal SDK:PayPal Mobile SDK使本机应用程序(Android,iOS)能够轻松接受PayPal和信用卡付款。

For android: https://developer.paypal.com/docs/classic/mobile/ht_mpl-itemPayment-Android/ 对于android: https//developer.paypal.com/docs/classic/mobile/ht_mpl-itemPayment-Android/

Paypal SDK is newer than PayPal Rest API, the best difference is the speed to implement in your aplication. Paypal SDK比PayPal Rest API更新,最好的区别是你的应用程序中实现的速度。

PayPal Rest API: include features like pre-approved payments, chained payments, and more support for non-US accounts, and sometimes you really dont need that. PayPal Rest API:包括预先批准的付款,链式付款以及对非美国帐户的更多支持等功能,有时您真的不需要它。 And take more time de implementation. 并花更多时间实施。

I Recommend use Paypal SDK. 我推荐使用Paypal SDK。

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

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