Like I have applied a checkbox on payment page for using it as credit score inspite of money. There is problem when my credit is 100 % used i.e. by using credit score grand total becomes 0. In that case Zero checkout payment should come but its not coming and when i reload the page that zero checkout payment method comes is there any way to refresh payment method list on my checkbox click. You can check in below image what i am talking about.
Magento – Magento 2: How to refresh payment method on some condition
ajaxmagento2payment-methods
Best Answer
you can use some code like this:
in this code, I'm reloading the payment method when ajax request is succeeded.
Main part of the code for reloading payment info: