我可以使用 Spreedly 将订阅分配给场所和用户吗?
在我的应用程序中,用户有一个帐户,许多场地可以属于每个帐户。这些场地可以免费或付费订阅。
我想使用 Spreedly 来整理每个场所的定期计费。因此,用户可以拥有多个场所,其中一些是免费的,一些是收费的。我可以用 Spreedly 做到这一点吗?我看到的所有文档都仅将订阅分配给用户。
感谢您的帮助,非常感谢!
In my app a user has an account, and many venues can belong to each account. The venues are on either a free or premium subscription.
I would like to use Spreedly to sort out recurring billing for each venue. So a user can own multiple venues where some are free and some are premium. Can I do this with Spreedly? All the documentation I have seen assigns a subscription to a user only.
Thanks for any help its much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Spreedly 不知道也不关心用户和场所之间的区别。这些只是您已确定的型号名称。所以是的,你可以这样做。如果您遵循指南,只需将其应用于您的场地模型而不是用户模型。
Spreedly doesn't know or care about the difference between a User or a Venue. These are just names of models that you have determined. So yes, you can do that. If you are following a guide, just apply it to your venue model instead of your user model.