CakePHP-Paypal-IPN-Plugin icon indicating copy to clipboard operation
CakePHP-Paypal-IPN-Plugin copied to clipboard

Does this plugin check for duplicate txn_id ?

Open Oliboy50 opened this issue 11 years ago • 2 comments

(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 !

Oliboy50 avatar Feb 17 '14 10:02 Oliboy50

Hi @Oliboy50 ,

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

irongomme avatar Jul 06 '15 17:07 irongomme

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.

wblondel avatar Aug 08 '15 00:08 wblondel