Recipe
How it works
- Get a reference to your external button(s)
- Listen for the
primer:state-changeevent - Set the button’s
disabledproperty based onisProcessing
Disable external buttons while payment is processing.
primer:state-change eventdisabled property based on isProcessing