支付网关集成问题 [英] Payment Gateway Integration Prob

查看:123
本文介绍了支付网关集成问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个情况.我有一个名为buy.php的页面,人们可以在其中查看产品,提供其详细信息,例如姓名,电子邮件等,然后单击购买"按钮以转到支付网关的安全连接".他在那里输入了他的信用卡号和密码...突然他关闭了浏览器.

我想在数据库中将上述情况捕获为用户已中止",而不是他在PHP中的事务ID".但是如何?

请回复.

I have a situation. I have a page called buy.php where people can see a product, provide his particulars like name, email etc, then click the Buy button to move to a Secured Connection of a Payment Gateway. There he inputs His Credit card number and password... Suddenly he closes the browser.

I want to capture the above situation in my Database as "User Aborted" against his Transaction ID in PHP. but HOW?

Please reply.

推荐答案

您不能.您可以存储一个标志,说他们推动了购买,并在购买结束时将其清除.您可以使用AJAX来检测何时有人在这些框中键入内容.但是我认为没有可靠的方法可以确定他们完全输入了一个数字(更不用说有效或正确的数字了),然后关闭了浏览器.
You can''t. You could store a flag to say that they pushed buy, and clear it when the purchase ends. You could use AJAX to detect when someone is typing in to those boxes. But I don''t think there''s any reliable way to know for sure that they entered a number ( let alone a valid or correct one ) fully and then closed the browser.


这篇关于支付网关集成问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆