简体   繁体   English

如何检查Paypal Vault中是否已存储卡

[英]How to check if a card is already stored in Paypal Vault

I have managed to integrate the Paypal Vault through their API to store credit card information, retrieve the information and delete a card. 我已经通过他们的API集成了Paypal Vault,以存储信用卡信息,检索信息并删除卡。 But I am looking for a way to check if the card is already stored in the vault before I store it, but could find any information on how to achieve this. 但是我正在寻找一种在存储卡之前检查卡是否已经存储在保管库中的方法,但是可以找到有关如何实现此功能的任何信息。

Any suggestions would be greatly appreciated! 任何建议将不胜感激! TIA! TIA!

It's a old question, still sharing some views. 这是一个古老的问题,仍在分享一些看法。

PayPal currently does not validate credit card information that is stored using the /vault/credit-card call. PayPal当前不验证使用/vault/credit-card呼叫存储的信用卡信息。 And is also allowing a single card to be attached with multiple payers. 并且还允许单张卡与多个付款人连接。

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) 您可以通过检查输入卡号(也需要注意您网站上的PCI)并在这种情况下提供唯一的payer_id(尤其是处理同一用户的卡)来实施自己的规则。

{
  "payer_id": "user12345",
  "type": "visa",
  "number": "4417119669820331",
  "expire_month": "11",
  "expire_year": "2018",
  "first_name": "Joe",
  "last_name": "Shopper"
}

If you included a payer_id when you stored the credit card, you'll need to include that as well when using the stored credit card. 如果在存储信用卡时包括了payer_id在使用存储的信用卡时也需要包括该名称。

Ref: PayPal vault card data duplicate 参考: PayPal保管卡数据重复

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

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