Call a function on click of Pay Now in new checkout extension

Need to call a function and implement something when customer clicks on Pay Now button using new checkout extensions. In docs, it is shown how to add a new button on the checkout page UI but not how to select an already existing button on the checkout page. Pls help