Start from the middle: the rules alone
When you travel abroad, your phone charger stays the same; you only bring a small adapter for the local socket. This architecture uses the same idea for a whole program.
In the middle is the core (green): only the shop’s rules. No web pages, no database, no card provider. Just “check the order, count the price, apply the discount”. It is the part we most want to protect.
Diagrama
A large green Core box in the middle, listing Order rules, Prices and discounts, Stock check. Nothing else yet.