As discussed 7 Payment Methods are created in PaymentMethod directory. This is where following info for each payment method is stored with its own class:
Payment handler class
Payment method name
Payment method description
Payment method translations
An abstract class named PaymentMethod.php is also added to do common operations on those Payment Methods. These operations are getter methods. Those 7 Payment Method classes all should extend this abstract class.
Each Payment Method class has respective Payment Handler class which implements either AsynchronousPaymentHandlerInterface or SynchronousPaymentHandlerInterface depending on what type of Payment Method it is.
It is now left to fill-in corresponding Payment Handler classes with related Payment Method implementation logic.
As discussed 7 Payment Methods are created in
PaymentMethod
directory. This is where following info for each payment method is stored with its own class:An abstract class named
PaymentMethod.php
is also added to do common operations on those Payment Methods. These operations are getter methods. Those 7 Payment Method classes all should extend this abstract class.Each Payment Method class has respective Payment Handler class which implements either
AsynchronousPaymentHandlerInterface
orSynchronousPaymentHandlerInterface
depending on what type of Payment Method it is.It is now left to fill-in corresponding Payment Handler classes with related Payment Method implementation logic.