refactored and used date function in php to log exact moment user made entered payment