Revert transaction Id and Reference

And made purchaseId default to the transactionId