使用 PHP 在数据库中插入 Paypal 付款日期
我不知道该怎么做。我想在我的网站上添加一个 Paypal“立即购买”按钮,当用户付款时,我想使用 mysql 将他们付款的日期保存到数据库中。
这怎么可能呢?
I'm not sure how to go about doing this.. I want to add a Paypal "buy now" button on my website and when a user pays I want to save the date they paid into the database using mysql.
How would this be possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要做的是创建一个 PayPal IPN 脚本,这将使 PayPal 在您每次收到付款时调用您服务器上的 PHP 脚本。 完整详情请访问 PayPal 网站< /a>,但这里是它如何工作的概述:
What you'll need to do is create a PayPal IPN script, which will cause PayPal to call upon a PHP script on your server every time you receive a payment. The full details are available on PayPal's website, but here's an overview of how it works: