Click here to Skip to main content
16,004,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

SQL
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900