Skip to content
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

Draft
wants to merge 272 commits into
base: develop
Choose a base branch
from

Conversation

bortefi
Copy link
Owner

@bortefi bortefi commented Sep 22, 2021

Internal Pull request Do NOT MERGE

davemeteor and others added 30 commits June 15, 2021 15:22
…' 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'
Copy link
Owner Author

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']
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants