Skip to content
Sharp

Design patterns · interview question

Stripe changes its request schema, but checkout already depends only on PaymentGateway. Where should the primary code change occur?

Multiple choiceMediumchapter-13-curatedpremiumdesign-patternsadapter-pattern
Choose one answer
Answer and explanation

Correct answer

D. Inside the Stripe adapter at the integration boundary

Why

If checkout talks to a stable business interface, vendor-specific request and response changes should be absorbed by the adapter. That keeps the core flow isolated from third-party API volatility.

Test yourself on Design patterns

A free test with instant, explained results. No account needed.

Start free test
All Design patterns questions →