Rejecting a discount code with discount function

Furthermore the documentation of the hook currently states “This method will return an error if the buyer is using an accelerated checkout method, such as Apple Pay, Google Pay, or Meta Pay.” - which seems to be a big issue.