付款流程回叫响应,可提供更安全的付款问题,得到重复的响应 [英] Payment process call back reponse for safer pay issue getting duplicate response

查看:104
本文介绍了付款流程回叫响应,可提供更安全的付款问题,得到重复的响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用更安全的付款方式在自己的网站上付款.在这种情况下,我遇到了NotifyURL响应的一个问题,即
用户成功付款(当前是通过测试帐户)后,将显示带有关闭"选项的付款成功页面.

问题:-在付款NotifyUrl页面上从更安全的付款服务器获取重复的交易ID.

在此期间,更安全的付款服务器通过POST将确认消息(付款确认")通过POST发送到回调页面.在回叫页面上,我检查付款响应是否成功,如果成功,则检查交易ID是否重复.
如果交易ID已经存在,请不要执行以下任何操作. (为了安全起见).如果有新的交易ID,则将一些记录插入数据库并向用户和管理员发送电子邮件,但是更安全的付款服务器同时发送2个响应,因此我的代码发送重复的电子邮件并将重复的电子邮件插入到管理员和用户,甚至
在执行操作之前,我检查了重复的交易ID.

请给我建议

I have used safer pay for making payment in my site. In that I have facing one problem with NotifyURL response as,
When user made payment(currently by test account) successfully, then it show payment success page with Closed option.

Issue :- Getting duplicate transaction id from safer pay server on payment NotifyUrl page.

During this period Safer pay server transmitting the confirmation message (Pay Confirm) by POST to callback page.On call back page, i check the payment response for success and if success , then check the transaction id for duplicate .
If transaction id is already present, then don’t do any below operation. (for safe side). If new transaction id, then insert some record into database and sending email to user and admin, but Safer pay server sending 2 response at same time, so my code sending duplicate email and inserted duplicate email to admin and user even
I checked for duplicate transaction id before doing operation.

Please give me suggestion

推荐答案

Hi,
you can add one more filed in table where you save transaction id ,field is isProcessed boolean type.


when first time transaction trying to execute(done few task) it check either isprocessed true or false if it false then do nothing else do required task.

but you need to check first how duplicate entry made in table.


这篇关于付款流程回叫响应,可提供更安全的付款问题,得到重复的响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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