黑名单送货地址逻辑
我需要一些关于我想要实施的项目背后的逻辑的想法。基本上,我们一直遇到一些(10 名以下)“客户”使用欺诈性信用卡的问题。发生的情况是他们使用信用卡(有效)购买物品并将其运送给他们。然后,真正的持卡人会看到他们的账单上所购买的商品,并对此提出异议,让我们承担我们运送的货物的费用。该“客户”每次都使用不同的电子邮件地址和不同的帐户,因此我不可能阻止他的帐户。但他确实使用了相同的送货地址。所以我想也许这是阻止他的最好方法。您认为最简单的方法是在数据库中创建一个表,其中包含我们已知用于欺诈订单的地址,并交叉检查每个提交订单的地址。或者是否有更简单的方法来做到这一点。我们已经在进入时验证了信用卡,但就像我之前所说的那样,这些卡仍然有效 - 它们没有被报告为被盗。
I need some ideas for the logic behind a project I want to implement. Basically we have been having a problem with a few (under 10) "customers" using fraudulent credit cards. What happens is they use the credit card, (which is valid) to buy items and have them shipped to them. Then, the real card owner sees what was bought on their statement and disputes it leaving us to cover the cost of the goods we shipped. The "customer" in question uses different email addresses and different accounts everytime so its impossible for me to block his account. But he does use the same shipping address. So I was thinking maybe that was the best way to block him. Do you think the easiest way would be to create a table in the database with addresses we know are being used for fraudulent orders and cross check the address on every submit order. Or would there be an easier way to do this. We already verify credit cards upon entry but like i said before the cards are still valid-they aren't being reported as stolen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为你需要做的第一件事就是报警并以欺诈罪逮捕他们。这应该可以在 3-5 年内解决他们的问题。
否则,如果地址完全相同,那么您可以进行字符串匹配。
更新:
如果您想投入大量程序员和基础设施时间和金钱,我会选择 Abe Miessler 关于经纬度的回答。如果您想要一种快速而肮脏的方式,请通过分解城市、州和邮政编码来进行直接地址匹配。然后您可以比较街道地址
其中 zipcode=zipcode
I think the first thing you need to do is call the police and have them arrested for fraud. That should clear up the issue with them for 3-5 years.
Otherwise, if the addresses are exactly the same then, yes you could do a string match.
UPDATE:
If you want to put a lot of programmer and infrastructure time and money in on it, I'd go with Abe Miessler's answer about lat and long. If you want a quick and dirty way, go with a straight address match by breaking out city state and zip. Then you can compare the street addresses
where zipcode=zipcode
我认为阻止黑名单地址的一个好方法可能是对邪恶地址进行地理编码(使用 Google 地图 API 或其他东西将其提取到经纬度),然后对所有传入地址进行地理编码并与纬度/经度黑名单进行比较。
谷歌似乎在采用同一地址的不同变体并返回相同的纬度/经度方面做得相当好。只是一个想法。
更新
您也绝对应该提醒当局。甚至可能能从这个笨蛋身上得到一些钱
I would think that a good way to block black listed addresses might be to geocode the evil address (distill it to it's lat long using Google mapping API or something) and then geocode all incoming addresses and compare to the black list of lat/longs.
Google seems to do a pretty good job at taking different variations of the same address and returning the same lat/long. Just a thought.
UPDATE
also you should DEFINITELY alert the authorities. Might even be able to get some money out of this schmo