PayPal 数字商品和显示购买情况

发布于 2024-12-23 07:13:24 字数 230 浏览 1 评论 0原文

我正在为一位想要出售其库存照片的客户开发一个网站。我试图让 Paypal Digital Goods 工作一段时间,但一直没有运气。如果有人能给我指点一个很好的教程来让它工作,那就太好了。

之后,我需要做的另一件事是能够向购买这些物品的人表明他们的帐户中有这些物品。我正在考虑使用布尔值来表示他们是否拥有每个单独的项目,但这最终会非常重复,所以我想知道是否有更好的方法?

我已经设置了用户系统,之后我就陷入困境了。

I am developing a website for a client who wants to sell his stock photos. I'm trying to get Paypal Digital Goods to work for a little while and have been having no luck at all. If anyone could point me toward a good tutorial on getting that to work that would be great as well.

After that another thing I need to get working is being able to show the people who purchased these items that they have it in their account. I was thinking of going Boolean values saying if they own each individual item, but that would end up being quite repetative so I wanted to know if there was a better way?

I already have the user system set up, I'm just stuck after this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温馨耳语 2024-12-30 07:13:24

你可以查看 http://www.ktools.net 和 Photostore(也许购买这个应用程序会更便宜)从头开始构建一个新的)

如果您决定使用自己的解决方案,可以通过数据库内的单独表来跟踪购买情况,

例如带有下一个字段的“购买”

id INT、userId INT、purchaseItem INT、purchaseDate 日期时间、
过期日期时间

最后一个字段是可选的,因此您可以在该用户无法下载时设置过期时间(例如,您可以设置 48 小时下载)

You can check http://www.ktools.net and Photostore (maybe it is cheaper to buy this app then to build a new one from the ground)

In case you decide to go with your own solution, tracking purchases can be done via separate table inside database

For example "purchases" with the next fields

id INT, userId INT, purchasedItem INT, purchaseDate datetime,
expire datetime

The last field is optional so you can set expire when the download won't be available for this user (for example you can set up 48hrs for download)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文