CheckoutPaymentSheetAdapter

Public Checkout transport used by the native payment sheet.

The adapter never accepts a merchant API key. It loads merchant identity and commercial terms from Checkout, keeps mutation retries idempotent, propagates valid host trace context, and emits only privacy-safe diagnostics.

Parameters

transport

HTTP boundary used to call public Checkout.

telemetry

Optional host-owned diagnostic source.

Constructors

Link copied to clipboard
constructor(baseUrl: String = "https://api.inttegro.com", telemetry: PaymentSheetTelemetry? = null)

Creates a production Checkout adapter.

Functions

Link copied to clipboard

Submits the confirmation token for the current payment attempt.

Link copied to clipboard
open suspend override fun pay(configuration: PaymentSheetConfiguration, session: PaymentSheetSession, selection: PaymentSheetPaymentSelection): PaymentSheetPaymentOutcome

Starts or retries payment with a stable key for the exact selection.

Link copied to clipboard
open suspend override fun refreshPayment(configuration: PaymentSheetConfiguration, session: PaymentSheetSession): PaymentSheetPaymentOutcome

Retrieves the latest authoritative payment state from Checkout.

Link copied to clipboard

Requests a replacement confirmation code with replay protection.

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

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

Link copied to clipboard

Retrieves the client-safe range for a customer-selected amount.

Link copied to clipboard

Creates the finalized Order for a payer-selected amount.

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

Updates a payer-selected amount while the Checkout Order is still pristine.