I have customized code in my dawn theme to add a terms and conditions checkbox. However, my Shoppay and Google pay buttons are bypassing this mandatory checkbox.
The code is in Edit code> Templates> cart-termsbox.liquid for anyone that can help:
{{ block.settings.prelink_text }} {{ block.settings.link_text }} {{ block.settings.postlink_text }}
#termsbox_id { transform: scale({{ block.settings.checkbox_scale }}); } {% if block.settings.mandatory %} #dynamic-checkout-cart, [name="checkout",][type="submit"] { {% if cart.attributes[block.settings.internal_label] != "No" %} pointer-events: auto; opacity: 1.0; {% else %} pointer-events: none; opacity: 0.5; {% endif %} } {% endif %}