Skip to content
Sharp

Design patterns · interview question

What should a payment adapter own when integrating a vendor SDK?

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

Correct answer

D. Translation between your domain model and the vendor's request and response shapes

Why

Adapters exist to hide external interface mismatch. They should convert between your application's vocabulary and the vendor's SDK details so checkout logic stays business-focused.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →