-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Admin] Configure available Saferpay payment methods retrieved by the API #51
[Admin] Configure available Saferpay payment methods retrieved by the API #51
Conversation
.../payment/being_able_to_configure_available_payment_methods_only_for_saferpay_gateway.feature
Outdated
Show resolved
Hide resolved
/** @var array $allowedPaymentMethods */ | ||
$allowedPaymentMethods = $data['allowed_payment_methods']; | ||
|
||
$this->commandBus->dispatch(new ConfigurePaymentMethods($paymentMethodId, $allowedPaymentMethods)); |
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.
I wonder if command pattern is not an overkill here 🤔 Cannot we just use a standard resource update action to partially update the payment method?
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.
I think you're right that this might be overkill, but at the same time I'm wondering if it makes sense to change it now as it's a bit of a big change, and I'm also not sure how to properly use the resource controller as it's quite a custom form type and updating one field in the gateway config array, even so not necessarily updating the resource 🤔
…payment method only
Thank you, Grzegorz! 🖖 |
Payment method index page:
Saferpay available payment methods configuration page: