How to Ensure the Security of a P2P Payment App?