CakePHP-Paypal-IPN-Plugin
CakePHP-Paypal-IPN-Plugin copied to clipboard
Does this plugin check for duplicate txn_id ?
(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 !
Hi @Oliboy50 ,
Does this change solve your problem ? Because i've got the same behaviour and it simply buy 9 times the same item ...
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.