R
R
REDkiy2019-02-28 15:19:05
Software design
REDkiy, 2019-02-28 15:19:05

What design pattern can be applied to integrate external payment systems?

There was a task on acceptance of payments from users.
There is a list of several providers like Yandex.Checkout, a direct bank API, it seems there will be something like WebMoney, and even a cryptocurrency exchanger.
Is it worth creating some pattern in the program in order to tie it all together somehow in a unified way? Or directly implement a class with the necessary methods for each system and not take a steam bath?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2019-02-28
@REDkiy

It depends on the situation, but I suspect that Facade and / or Adapter can help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question