Skip to main content

Overview

The card enrollment and spending authorization flows render a verification modal (passkey prompt) to the user. You can customize the look and feel of this modal using the appearance prop, which both verification components accept.
  • PaymentMethodAgenticEnrollmentVerification: One-time card enrollment step. Shown when an enrollment’s status is "pending" and needs passkey verification.
  • OrderIntentVerification: Spending authorization step. Shown when an order intent’s phase is "requires-verification".

How to customize the appearance

The appearance object has two top-level keys: variables (global design tokens) and rules (per-element overrides).
Global design tokens that apply across the entire modal.
The SDK auto-infers missing color tokens from the ones you provide. For example, setting only backgroundPrimary will derive textPrimary, textSecondary, backgroundSecondary, and border automatically.

Example

You do not need to specify everything. The SDK infers missing colors:
This alone will auto-derive textPrimary, textSecondary, backgroundSecondary, and border from the dark background, and use the accent color for buttons, focus rings, and radio selections.