Design Patterns · Middle · Question 54 of 75

Why wrap an external payment SDK in your own Gateway?

Explanation

The rest of the app talks in your domain terms (charge(order)), not the vendor's types and quirks.

Further reading

Problem with a question

Design Patterns · Middle · question 54

Test yourself

Take the Design Patterns · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz