How I approached reliability, security, and operational trade-offs when modernising a payment flow using hosted checkout, tokenisation, and 3-D Secure.