简体   繁体   English

通过卡详细信息防止多次条纹试验

[英]Prevent multiple stripe trials by card details

We are looking to offer a free trial of our product with payments powered by Stripe Subscriptions. 我们希望提供由Stripe Subscriptions提供支持的付款方式来免费试用我们的产品。

However, what I'm not sure about is whether it is possible to prevent a user from having multiple emails by limiting it to one trial by card, similar to how sites like Netflix operate. 但是,我不确定的是,是否可以通过将用户的电子邮件限制为一次卡片试用来防止用户收到多封电子邮件,类似于Netflix这样的网站的运行方式。

You can definitely do this though you have to build the logic yourself. 尽管您必须自己构建逻辑,但是您绝对可以做到这一点。 The idea is that you can detect duplicate cards and automatically block ones you've seen before if they try to access the trial. 这样做的目的是,您可以检测到重复的卡并自动阻止以前访问过的卡,如果它们尝试访问该试用版。

Stripe returns the fingerprint property on Cards. Stripe返回Cards上的fingerprint属性。 That property is a unique identifier for a given card number in your account. 该属性是您帐户中给定卡号的唯一标识符。

This means that if I sign up today with my card and then I come back tomorrow with the same card under a different email address you'd see the same exact fingerprint on both tokens or card objects. 这意味着,如果我今天用我的卡注册,然后明天用另一张电子邮件地址下的同一张卡回来,则在令牌或卡对象上都会看到相同的准确指纹。

The idea then would be to keep track of all the card fingerprints you see in your database to detect a returning customer. 这样的想法将是跟踪您在数据库中看到的所有卡指纹以检测回头客。 Whenever a customer adds a new card you'd first look if you've seen that card fingerprint before in your database and decide to create the customer or return an error based on this. 每当客户添加新卡时,您都会首先查看是否在数据库中看到过该卡的指纹,然后决定创建该客户或根据此错误返回错误。

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

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