rememberGooglePayLauncher
fun rememberGooglePayLauncher(config: GooglePayLauncher.Config, readyCallback: GooglePayLauncher.ReadyCallback, resultCallback: GooglePayLauncher.ResultCallback): GooglePayLauncher
Creates a GooglePayLauncher that is remembered across compositions.
This must be called unconditionally, as part of the initialization path.
Parameters
config
The GooglePayLauncher.Config used to configure the integration.
readyCallback
Called after determining whether Google Pay is available and ready to use. GooglePayLauncher.presentForPaymentIntent and GooglePayLauncher.presentForSetupIntent may only be called if Google Pay is ready.
resultCallback
Called with the result of the GooglePayLauncher operation