“How do you design an automated test suite for an e-commerce checkout flow with external payment gateways?”
Layered tests into unit mock validations, isolated integration tests using sandbox webhook stubs, and end-to-end smoke tests verifying order state transitions with idempotency checks.
Running live payments in automation without sandboxing or mocking.