Software Engineering Architecture Lab

Adapter: Taming Third-Party Payment Gateways

Make Stripe-like and Razorpay-like SDKs look like your own interface. Lesson 5 of Level 4: Design Patterns. Based on Design Patterns.

Level 4 · Design Patterns · Lesson 5 of 13

Make Stripe-like and Razorpay-like SDKs look like your own interface.

Continue learning

All lessons in Design Patterns

  1. Patterns Are Answers to Recurring Pain
  2. Strategy: Pluggable Payment Methods
  3. Factory Method & Abstract Factory: Creating the Right Thing
  4. Builder, and Why Singleton Is Usually a Trap
  5. Adapter: Taming Third-Party Payment Gateways
  6. Decorator: Adding Behaviour Without Touching the Core
  7. Facade & Proxy: Simple Front Doors and Smart Stand-ins
  8. Observer: Reacting to Order Events
  9. Command: Refunds, Retries and Queued Work as Objects
  10. State: An Order Lifecycle Without the Giant Switch
  11. Template Method: One Checkout Skeleton, Many Variations
  12. Chain of Responsibility: Validation & Fraud Pipelines
  13. Composite, Bridge, Mediator, Iterator & Prototype