I am having two payment methods Online payment and COD in Magento 2. But the default one is an online payment. When I reload the page, the online payment option gets selected by default(even if I changed to the COD option before reloading the page). But my problem is when I get the selected payment method from a quote, it showing as COD because of the last selected option. How can I handle this scenario in Magento 2?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.