-
Could you show the difference between dependency injection and a service locator by modifying the CheckoutSession class?
-
How would you add payment handling with multiple payment gateways, for example Stripe and Braintree? There would be only one active payment gateway at a time and it would be controlled through configuration.
-
How would you introduce ability to use different payment gateway depending on the card type? For example, Amex payments would be handled by Braintree, while Mastercard payments would go through Stripe.
-
Could you refactor the CardType into a value object?
nour-diaa / php-backend-interview-questions Goto Github PK
View Code? Open in Web Editor NEWThis project forked from netsells/php-backend-interview-questions
This repo contains code that is used in PHP backend interviews