On-Chain Payment Infrastructure: Security and Integration Best Practices