使用同一张信用卡,我想知道什么是最好的做法,如果:最佳实践来检测,如果2个客户尝试在布伦特里
- 用户1使用卡XYZ1和XYZ1成功验证并在布伦特里增加。
- 用户2使用相同的卡xyz1和xyz1验证失败,并在braintree中添加验证失败原因。
- 我想找到在braintree尝试xyz1(成功或失败)的用户。
任何像条纹指纹。
使用同一张信用卡,我想知道什么是最好的做法,如果:最佳实践来检测,如果2个客户尝试在布伦特里
任何像条纹指纹。
完全披露:我在布伦特里工作。如果您有任何其他问题,请随时联系support。
您可以使用using the credit card unique identifier在transaction搜索中搜索保险柜中使用相同信用卡的交易。这将为您提供一个响应,其中包含使用同一张卡片的所有交易。从那里,您可以检查information about the customer that created it的交易响应对象。
您不能在验证搜索中使用信用卡唯一标识符。相反,您可以搜索基于customer ID或payment method token,然后pull the credit card unique identifier from the verification response object的验证。
在Ruby中,搜索交易将是这个样子:
collection = Braintree::Transaction.search do |search|
search.credit_card_unique_identifier.is "the_unique_identifier"
end
collection.each do |transaction|
puts transaction.customer_details.id
end
看起来他们的PaymentMethod.create调用中有一个选项,如果同一张卡已经添加到Braintree Vault中,该选项将失败。链接到该属性here