When paypal receives payment from site it sends notification with Instant Payment Notification(IPN) mechanism. What variable do paypal send to the merchant site through this IPN mechanism? Is it "txn_id" or "receipt_id" ?
I tested IPN on sandbox.paypal.com and I received something like this:
receipt_id=1595-5622-3323-1800
txn_id=6UF4364986091943X
Later on, I stopped receiving this receipt_id and I was receiving only txn_id:
txn_id=6UF4364986091943X
Do you have more information? Why I stopped receiving receipt_id? Is this some undocumented feature of paypal?