Overview
Success and Failure Actions allow you to define custom behaviors that occur after a purchase or restore action completes in your No-Code screens. By default:- On Success: The screen closes (
Close All) - On Failure: Nothing happens, the user stays on the screen (
None)
Available Actions
The following actions can be configured as Success or Failure handlers:Supported Actions
Success and Failure handlers can be configured for the following actions:- Make Purchase — triggered when a user initiates a product purchase
- Restore — triggered when a user restores previous purchases
Platform-Specific Configuration
When Platform-Specific Actions is enabled, you can configure different Success/Failure behaviors for iOS and Android platforms independently.Minimum SDK Versions
Success and Failure Actions require the following minimum SDK versions:Note
If you’re using an older SDK version, the default behavior will be applied:- Success: Close all screens
- Failure: Stay on the screen
Configuration
To configure Success/Failure Actions in the No-Code Builder:- Select a component with a Make Purchase or Restore action
-
In the Action section of the right sidebar, you’ll see:
- On Success — action to execute after successful completion
- On Failure — action to execute after failure
- Select the desired action for each case
- If the action requires a value (e.g., URL, screen ID), enter it in the corresponding field
Best Practices
- Success Actions: Consider navigating to a thank-you screen or closing all screens to return users to your app
- Failure Actions: Keep users on the screen (
None) so they can retry, or navigate to a help/support screen - Platform Differences: Use platform-specific actions when iOS and Android require different post-purchase flows
Displaying No-Codes Using No-Codes with custom purchases handling