Types reference
TypeScript type definitions exported by the @revolut/checkout package.
Common types
Shared type definitions used across multiple SDK methods:
- Locale - Language codes for widget localisation (22 supported languages)
- Address - Customer billing and shipping address structure with country codes
- CountryCode - ISO 3166-1 alpha-2 country codes (documented within Address)
- CustomerDetails - Complete customer information including name, email, phone, and addresses
Error types
- RevolutCheckoutError - Payment processing errors with error codes and types
- ValidationError - Client-side form field validation errors (card field only)
Importing types
All types are exported from the @revolut/checkout package and can be imported using TypeScript's import type syntax:
import type {
// Common types
Locale,
Address,
CountryCode,
CustomerDetails,
// Error types
RevolutCheckoutError,
ValidationError
} from '@revolut/checkout'