I need some unique field in Paypal NVP Masspayment so that I can refer that transaction instantly and gather all informations like transaction fee etc.
Please help . At the moment it seems that paypal doesnt return any field to search a specific transaction.
You may want to use the variable:
Ref. https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/MassPay_API_Operation_NVP/
This value can be then collected using Instant Payment Notification (IPN) service, please check its functionality here and the MassPay values you can collect with IPN are listed here.
For L_UNIQUEIDn, the variable returned with the IPN POST will be:
unique_id_x
For Mass Payments, the unique ID from input, where x is the record number. This allows the merchant to cross-reference the payment Length: 13 characters