GooglePayLauncher
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.
Parameters
the Android Fragment from which you will launch the Google Pay payment sheet
a GooglePayLauncherCallback to receive the result of the Google Pay payment flow
Used to launch the Google Pay payment sheet from within an Android Activity. This class must be instantiated before the Activity is created.
Parameters
the Android Activity from which you will launch the Google Pay payment sheet
a GooglePayLauncherCallback to receive the result of the Google Pay payment flow
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.
Parameters
the ActivityResultRegistry to use for launching the Google Pay payment sheet
the LifecycleOwner used to control when the launcher is registered
an Android Context
a GooglePayLauncherCallback to receive the result of the Google Pay payment flow
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.
Parameters
the Android Fragment from which you will launch the Google Pay payment sheet
a unique key identifying this launcher's Activity result. Must be unique per live launcher instance in the same Activity, and stable across process death.
a GooglePayLauncherCallback to receive the result of the Google Pay payment flow
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.
Parameters
the Android Activity from which you will launch the Google Pay payment sheet
a unique key identifying this launcher's Activity result. Must be unique per live launcher instance in the same Activity, and stable across process death.
a GooglePayLauncherCallback to receive the result of the Google Pay payment flow
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.
Parameters
the ActivityResultRegistry to use for launching the Google Pay payment sheet
the LifecycleOwner used to control when the launcher is registered
an Android Context
a unique key identifying this launcher's Activity result. Must be unique per live launcher instance in the same Activity, and stable across process death.
a GooglePayLauncherCallback to receive the result of the Google Pay payment flow