GooglePayLauncher
Responsible for launching the Google Pay payment sheet
Constructors
Used to launch the Google Pay payment sheet from within an Android Fragment. This class must be instantiated after the Fragment's view has been created (i.e., in onCreateView or onViewCreated) and before the Fragment reaches the STARTED state.
Used to launch the Google Pay payment sheet from within an Android Activity. This class must be instantiated before the Activity is created.
Used to launch the Google Pay payment sheet from a composable, or anywhere else a Fragment or ComponentActivity reference is not available. This class must be instantiated before the lifecycleOwner reaches the CREATED state.
Used to launch the Google Pay payment sheet from within an Android Fragment, using a custom result key. This class must be instantiated after the Fragment's view has been created (i.e., in onCreateView or onViewCreated) and before the Fragment reaches the STARTED state.
Used to launch the Google Pay payment sheet from within an Android Activity, using a custom result key. This class must be instantiated before the Activity is created.
Used to launch the Google Pay payment sheet from a composable, or anywhere else a Fragment or ComponentActivity reference is not available, using a custom result key. This class must be instantiated before the lifecycleOwner reaches the CREATED state.
Functions
Launches the Google Pay payment sheet. This method cannot be called until the lifecycle of the Fragment or Activity used to instantiate your GooglePayLauncher has reached the CREATED state.