Presenter

class Presenter

A presenter for the Link controller that handles UI operations requiring Activity context.

The Presenter is tied to an Activity lifecycle and should be created and destroyed appropriately to avoid memory leaks.

Functions

Link copied to clipboard
fun confirmSetupIntent(clientSecret: String)

Confirm a SetupIntent using the payment method from the most recent successful present call.

Link copied to clipboard
fun present()

Present the full Link flow — consumer lookup, authentication, payment method selection, and payment method creation — in a single call. The result is delivered through the PresentCallback provided to createPresenter.