Closed pabyska closed 8 years ago
Thanks.
According to Vojta. I would like to split Service, to more specific services.
PayService, RecurrentService and also specific entities. Payment and RecurrentPayment.
How about that?
Implemented in 3.0.0.
https://github.com/Markette/Gopay/blob/master/src/Gopay/Service/RecurrentPaymentService.php
Thank you for idea.
Thanks for contribution!
I have some notes - primarily it quite pollutes
Service
. It's bit god-like already, which isn't good, and this makes it worse. It would nicer to implement this with better architecture. What about maybe changingPayment
to interface (introducingIPayment
to avoid BC break). There could be thenRecurringPayment
which would implement setting and using all those extra parameters.