PaymentSheetAdapter

Operations required by Inttegro's native payment state machine.

CheckoutPaymentSheetAdapter is the production implementation. Supply a custom adapter only for deterministic previews, tests, or a controlled transport that preserves Checkout's read-and-pay security boundary. Retries must be idempotent and delayed methods must remain pending until authoritative completion.

Inheritors

Functions

Link copied to clipboard

Submits the payer's numeric token for the active confirmation challenge.

Link copied to clipboard

Starts or safely retries payment using the payer's current selection.

Link copied to clipboard

Refreshes authoritative state after provider authorization or processing.

Link copied to clipboard

Requests a replacement code for a recoverable confirmation challenge.

Link copied to clipboard
abstract suspend fun retrieve(configuration: PaymentSheetConfiguration): PaymentSheetSession

Retrieves the client-safe Checkout projection for a finalized Order.

Link copied to clipboard

Loads the amount policy for a customer-selected Purchase Intent.

Link copied to clipboard

Creates the finalized Order for a valid payer-selected amount.

Link copied to clipboard
open suspend fun updateAmount(configuration: PaymentSheetConfiguration, orderId: String, lineItemId: String, amount: PaymentSheetSession.Money): PaymentSheetSession

Updates the amount on the same finalized Order before payment starts.