Primer Checkout Android SDK is currently in beta (v3.0.0-beta.4).
The API is subject to change before the stable release.
Central interface for managing a checkout session. Create with rememberPrimerCheckoutController().
Creation
Interface
Property
Methods
Idempotency key
Set the X-Idempotency-Key header from the beforePaymentCreate gate on
PrimerCheckoutSheet
or PrimerCheckoutHost.
The gate runs once per attempt — just before the SDK creates the payment — and
the value you pass to continuePaymentCreation(idempotencyKey) is sent on
POST /payments and every subsequent POST /payments/{id}/resume for that
attempt. A retry after failure runs the gate again, producing a fresh key.
Extension function
Formats an amount in minor units (cents) into a locale-aware currency string based on the current session (e.g., "$10.00", "10,00 EUR").