Recipe
How it works
- Listen for the
primer:state-changeevent - Check the
isProcessingproperty from the event detail - Show your loading UI when
isProcessingistrue - Hide it when
isProcessingisfalse
Display a loading state while payment is processing.
primer:state-change eventisProcessing property from the event detailisProcessing is trueisProcessing is false