processSetupIntent

fun processSetupIntent(intent: SetupIntent, allowRedisplay: AllowRedisplay, collectConfig: CollectSetupIntentConfiguration = CollectSetupIntentConfiguration.Builder().build(), callback: SetupIntentCallback): Cancelable

Processes a SetupIntent by collecting a setup intent payment method and confirming the intent. This is a convenience method that combines the two-step process of Terminal.collectSetupIntentPaymentMethod collecting a payment method and Terminal.confirmSetupIntent confirming the setup intent into a single call.

Return

A Cancelable that allows the operation to be canceled when the SDK is not waiting for a network response.

Parameters

intent

The SetupIntent that should be processed

allowRedisplay

Field to reflect whether this payment method can be shown again to its customer in a checkout flow.

collectConfig

The CollectSetupIntentConfiguration object allows optional per-transaction overrides.

callback

The SetupIntentCallback to be invoked when the command completes