Checking the Apply Store Credit by default

Hi! I would like to check the “Apply Store Credit” checkbox by default in the checkout when a customer has a store credit. Would that be possible using a Shopify Function?

I still want the customer to be able to uncheck the box if needed. The issue is that when a customer uses Google Pay/Apple Pay to pay for their order in the checkout, the Apply store credit button is way down the page and the customer will not see that they have a store credit or they might think that it will be automatically applied. This is not the case.

I tried looking at the documentation or examples and I found nothing related to the state of the Apply Store Credit checkbox.

Thanks!