OptionalonCalled when the user cancels the purchase flow.
OptionalonCallback called when an error that won't close the paywall occurs. For example, a retryable error during the purchase process.
OptionalonCalled when a purchase flow is about to start for the given package.
Listener for purchase lifecycle events.