better-payment / bp-plugin-shopware6-api2

Shopware 6 Plugin for Better Payment API2
Other
0 stars 0 forks source link

Add Payment Methods during plugin install #17

Closed hasanzade-hasan closed 1 year ago

hasanzade-hasan commented 1 year ago

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 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.