Skip to content

APMs automatically enabled when selecting "No, ..." during onboarding (4467) #3362

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

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

mmaymo
Copy link
Collaborator

@mmaymo mmaymo commented May 6, 2025

This PR fixes the behaviour where APM's were enabled even if we selected "No" during onboarding.
The toggle $is_enabled now is conditioned to the flag "use_card_payments"

@mmaymo mmaymo requested a review from Dinamiko May 6, 2025 13:31
@@ -165,7 +165,7 @@ public function reset_all_settings() : void {
*/
public function set_defaults_for_new_merchant( ConfigurationFlagsDTO $flags ) : void {
if ( $this->onboarding_profile->is_setup_done() ) {
return;
//return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check and fix this commented line.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot that sorry, fixed

@mmaymo mmaymo requested a review from Dinamiko May 19, 2025 14:36
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.

2 participants