-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ap 294 epic convert adyen payment methods #3
base: develop
Are you sure you want to change the base?
Conversation
…' of github.com:bortefi/adyen-shopware5 into AP-279-store-ayden-payment-methods-as-shopware-payments
|
||
class RemoveStoredPaymentsSubscriber implements SubscriberInterface | ||
{ | ||
public static function getSubscribedEvents(): array | ||
{ | ||
return [ | ||
'Enlight_Controller_Action_PostDispatchSecure_Backend_Payment' => '__invoke' | ||
'Enlight_Controller_Action_PostDispatchSecure_Backend_Payment' => 'providePaymentsWithAdyenHideFunctionality' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to keep invoke here and rename the namespace or the class
|
||
if ($adyenSourceType !== (string) $paymentMethod['source']) { | ||
continue; | ||
if ((true === $paymentMethod['hide'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why this is a combined if?
With early returns / continue the functionality is more clear upon reading the code.
Internal Pull request Do NOT MERGE