支付成功
我即将与一家银行合作建立一个自托管付款表格。到目前为止,他们的要求和文档是有意义的。
在我的数据库端,我不记录信用卡详细信息等敏感数据。
问题:
我在用户表中创建了一个名为 paid
的字段,其中包含 1 或 0
这对银行来说足够了吗?
我假设它就像贝宝,您可以在其中添加一个链接,以便在付款获得批准后运行。如果付款成功,我的脚本将简单地将 -paid - 字段更新为 1。否则,如果付款不成功,它会更新为零并向员工和用户等发送电子邮件...
这是否很简单,还是我遗漏了什么?
I'm about to work with a bank to set up a self hosted payment form. Their requirements and documentation makes sense so far.
On my end of the database I don't record sensitive data such as credit card details.
Question:
I have created a field in my users table called paid
, which will contain either a 1 or 0
Should that be enough for the bank?
I'm assuming its like pay-pal where you can put a link inside to run after payment is approved. My script would simply update the - paid - field with a 1 if the payment was a success. ELSE if the payment were not a success it would update with zero and send email to staff and user etc...
Is that the simplicity of it or am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这并不是真正的答案,因为没有具体的问题,但我的两分钱..
您的解决方案可能过于简单化。请考虑以下事项:
这是订阅产品、实物交付产品还是完全其他的产品?要求会有所不同。您的用户表上有“付费”标志,这让我相信它是订阅。如果是这样,它可能是错误命名的。您可能需要一个“当前订阅”标记,而不是“已付费”,因为用户实际上会多次付费。
退款、退款或部分积分的政策是什么?
用户如何付款或用户何时付款重要吗?
This isn't really an answer, since there wasn't a specific question, but my two cents..
Your solution is likely overly simplistic. Consider the following:
Is this a subscription product, a physical, delivered product, or something else entirely? Requirements will be different depending. That you have the "paid" flag on your users table leads me to believe that it is a subscriptions. If so, it is likely misnamed. Instead of "paid", you likely want a flag for "currently subscribed", since the user will actually pay multiple times.
What's the policy for refunds, charge backs, or partial credits?
Does it matter how the user paid or when the user paid?