简体   繁体   English

如何在没有Paypal帐户的情况下使用Paypal保存信用卡?

[英]How to save Credit card with Paypal without Paypal account?

I need to implement the payment transactions with paypal account and credit/debit card using paypal on my mobile application (Android and iOS SDK's). 我需要在我的移动应用程序(Android和iOS SDK)上使用Paypal使用Paypal帐户和信用卡/借记卡进行支付交易。

In one hand I understand the part of having a paypal account and paying with it, but in the other hand I took a look at Uber and I found that the users can save their credit card without creating a paypal account. 一方面,我了解拥有Paypal帐户并使用该帐户付款的部分,但另一方面,我查看了Uber,发现用户无需创建Paypal帐户即可保存其信用卡。 How can I achieve this behavior? 我该如何实现这种行为? Do I have to save this credit cards on my server? 我是否必须将此信用卡保存在服务器上? or is this a feature of Paypal? 还是Paypal的功能?

PD: I already know Uber uses BrainTree, but I have seen the same feature on other apps with Paypal. PD:我已经知道Uber使用BrainTree,但是我在使用Paypal的其他应用上也看到了相同的功能。

What you're looking for is called "reference transactions" or "vaulted credit cards". 您要查找的内容称为“参考交易”或“拱形信用卡”。 PayPal saves the card data on their server, and then you just save the transaction ID on your server. 贝宝将卡数据保存在其服务器上,然后您只需将交易ID保存在服务器上。 When you submit a reference transaction request you just include the transaction ID from the original transaction you processed (could be an Auth or Sale transaction) along with the new amount you need to process. 当您提交参考交易请求时,您只需包括您处理的原始交易(可能是Auth或Sale交易)中的交易ID,以及您需要处理的新金额。

Depending on what you're using to process the cards, though, the API you would use for the reference / vaulted transaction would be different. 但是,根据用于处理卡的内容的不同,用于参考/转帐交易的API会有所不同。

If you're using Payments Pro you would be using either DoDirectPayment / DoReferenceTransaction or the PayFlow API setup as a reference transaction . 如果您使用的是Payments Pro,则可以使用DoDirectPayment / DoReferenceTransactionPayFlow API设置作为参考交易

If you're working with REST that's where the vaulted transactions would come into play. 如果您使用的是REST,那么已存储的事务就将发挥作用。

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

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