processPaymentIntent

fun processPaymentIntent(intent: PaymentIntent, collectConfig: CollectPaymentIntentConfiguration = CollectPaymentIntentConfiguration.Builder().build(), confirmConfig: ConfirmPaymentIntentConfiguration = ConfirmPaymentIntentConfiguration.Builder().build(), callback: PaymentIntentCallback): Cancelable

Processes a PaymentIntent by collecting a payment method and confirming the intent. This is a convenience method that combines the two-step process of Terminal.collectPaymentMethod collecting a payment method and Terminal.confirmPaymentIntent confirming the payment 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 PaymentIntent that should be processed

callback

The PaymentIntentCallback to be called when processing completes

collectConfig

The CollectPaymentIntentConfiguration object allows optional per-transaction overrides.

confirmConfig

The ConfirmPaymentIntentConfiguration object allows optional per-transaction overrides.