#Bug hunt: checkout button does nothing on Safari
Clicking Pay now on iOS Safari 18 does nothing. No error in the console. Works in Chrome and Firefox.
##What I tried
##Suspect
The click handler is attached before the button exists:
document.querySelector('#pay')
?.addEventListener('click', startCheckout);
```
Move it into DOMContentLoaded or use event delegation.
##Next step
Test with the polyfill removed.