PaymentAuthenticator
interface PaymentAuthenticator<Authenticatable> : ActivityResultLauncherHost
Content copied to clipboard
A class to authenticate a StripeIntent or Source.
Functions
Link copied to clipboard
abstract suspend fun authenticate( host: AuthActivityStarterHost, authenticatable: Authenticatable, requestOptions: ApiRequest.Options)
Content copied to clipboard
Authenticates a StripeIntent or Source.
Link copied to clipboard
Notify the ActivityResultLaunchers are invalid. This happens when the host Activity is destroyed.
Link copied to clipboard
open fun onNewActivityResultCaller(activityResultCaller: ActivityResultCaller, activityResultCallback: ActivityResultCallback<PaymentFlowResult.Unvalidated>)
Content copied to clipboard
Notify the PaymentAuthenticator that a new ActivityResultCaller and ActivityResultCallback is available. This happens when the host Activity is recreated and its ActivityResultLauncher needs to be re-registered.