The factory selects the provider and the adapter hides vendor-specific API shape.
Real payment integrations often need more than one pattern. A factory centralizes provider selection, while each adapter translates a vendor SDK into a stable business interface such as `PaymentGateway`. That keeps checkout logic from depending on Stripe- or PayPal-specific request details.
Additional Notes
Why combine Factory and Adapter at a payment boundary?