I'm new to PHP and Magento.
I am building a payment module. I have saved some encrypted credentials in the core_data table. i am currently able to retrieve these decrypted credentials with my method renderer via : window.checkoutConfig.payment.name_of_module. these are made available through my Model>Ui>ConfigProvider.php, where they return the configurations(decrypted).
is there a way for my listen to the method in my method renderer, on click, which calls a Magento backend API to run a function. so that it does not need to be displayed?
SINCERELY APPRECIATE with clear examples as I am really finding it tough to go through the docs.