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

Topic summary

  • Goal: Trigger a custom function when a customer clicks the existing “Pay Now” button using the new checkout extensions.
  • Problem: Documentation covers adding new buttons to the checkout UI but does not explain how to reference or hook into the already existing “Pay Now” button.
  • Ask: Guidance or a method to select the built-in button and attach a click handler.
  • Status: Unresolved; no solution or workaround provided yet.
Summarized with AI on January 3. AI used: gpt-5.

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