-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Received 3 IPNs for the same transaction, only one flagged as duplicate #243
Comments
I manually executed the So a workaround would be to call |
This sounds like a valid issue. The code here looks buggy for the case when you have out-of-order notification of IPNs: django-paypal/paypal/standard/helpers.py Lines 17 to 38 in 24d914b
Could you check for your case that there were other IPNs with the same txn_id but different payment_status? Otherwise, we have to look further for the cause. We should probably be instead checking for duplicate |
Clearly, the code above checks only if the latest similar IPN has the same payment status. If the latest has a different status but the previous has the same, it doesn't recognize it as duplicate. So the question is why we make this difference and not just this?:
Still, it doesn't seem that that's what's going on here. If you look at the picture above, those are the only IPNs with that So maybe it happened that the first two (3 am and 3:01 am) arrived concurrently? Here is the picture after running |
Hi!
I received 3 IPNs for the same transaction with the same data, but only one was flagged as duplicate. They have all the same transaction id and all the same payment status, and are all separated by one minute (3:00 am 3:01 am 3:02 am).
Only one got marked as duplicate so my system ended up processing the same payment twice.
The text was updated successfully, but these errors were encountered: