贝宝(PayPal)保管卡数据重复 [英] PayPal vault card data duplicate
问题描述
我正在我的应用程序中实现PayPal保管库.但我注意到,PayPal API允许为不同用户(甚至是同一用户)保存卡数据.这正常吗?有办法防止这种情况发生吗?
I'm implementing PayPal vault in my app. But I noticed that the PayPal API allows to save the card data for different users, even for the same user. Is this normal? is there a way to prevent this from happening?
推荐答案
PayPal当前不验证使用/vault/credit-card
调用存储的信用卡信息.并且还允许单张卡与多位付款人一起附加.
PayPal currently does not validate credit card information that is stored using the /vault/credit-card
call. And is also allowing a single card to be attached with muitiple payers.
您可以通过检查输入卡号(也需要在您的网站上同时处理PCI)来实施自己的规则,并在这种情况下提供唯一的payer_id
(尤其是用于处理同一用户的卡)>
You may implement your own rule by checking the input card number (need to take care of PCI on your website as well), and providing a unique payer_id
in this case (especially for handling cards of same user)
{
"payer_id": "user12345",
"type": "visa",
"number": "4417119669820331",
"expire_month": "11",
"expire_year": "2018",
"first_name": "Joe",
"last_name": "Shopper"
}
如果您在存储信用卡时包括了payer_id,则在使用存储的信用卡时也需要包括该信息.
这篇关于贝宝(PayPal)保管卡数据重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!