Skip to content
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

Does this plugin check for duplicate txn_id ? #12

Open
Oliboy50 opened this issue Feb 17, 2014 · 2 comments
Open

Does this plugin check for duplicate txn_id ? #12

Oliboy50 opened this issue Feb 17, 2014 · 2 comments

Comments

@Oliboy50
Copy link

(Sorry, I don't know how to simply ask something on github without creating an issue...)

I just wanted to know if this plugin checks for duplicate txn_id before processing an IPN, or have we to manage this in the afterPaypalNotification action by ourselves ?

Edit: As a workaround (if the plugin doesn't check for multiples txn_id), I just created an unique constraint on the txn_id field in the db... Hope this won't produce any bug.

Thanks !

@irongomme
Copy link

Hi @Oliboy50 ,

Does this change solve your problem ? Because i've got the same behaviour and it simply buy 9 times the same item ...

@wblondel
Copy link

wblondel commented Aug 8, 2015

Hi @Oliboy50 and @irongomme ,

I created a unique constraint on the txn_id field. It's not a good idea, because it prevents transactions from being updated :/
For exemple, if a payment is "under review" (first message) and then the payment is verified (second message), you will never receive the second message because you'll have infinite Internal Servor Error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants