I have a custom payment method which is working fine but I need to change its title dynamically so I add a plugin aftergettitle() now the issue is that payment method title is not showing under payment and shipping method.
I also tried this but not worked for me.
I guess there's no need to share the code as it working fine without plugin and the plugin is only returning title if any one need code do comment ill share it