Type Aliases
Scopes use type aliases for customization closures:| Alias | Signature | Used by |
|---|---|---|
Component | () -> any View | splashScreen, loadingScreen, cardInputSection |
ContainerComponent | (@escaping () -> any View) -> any View | container |
ErrorComponent | (String) -> any View | errorScreen |
PaymentMethodItemComponent | (CheckoutPaymentMethod) -> any View | paymentMethodItem |
CountryItemComponent | (PrimerCountry, @escaping () -> Void) -> any View | countryItem |
CategoryHeaderComponent | (String) -> any View | categoryHeader |
CardFormScreenComponent | (any PrimerCardFormScope) -> any View | Card form screen |
PaymentMethodSelectionScreenComponent | (PrimerPaymentMethodSelectionScope) -> any View | Selection screen |
WebRedirectScreenComponent | (any PrimerWebRedirectScope) -> any View | Web redirect screen |
WebRedirectButtonComponent | (any PrimerWebRedirectScope) -> any View | Web redirect payButton |
FormRedirectScreenComponent | (any PrimerFormRedirectScope) -> any View | Form redirect screen |
FormRedirectButtonComponent | (any PrimerFormRedirectScope) -> any View | Form redirect submitButton |
FormRedirectFormSectionComponent | (any PrimerFormRedirectScope) -> any View | Form redirect formSection |
QRCodeScreenComponent | (any PrimerQRCodeScope) -> any View | QR code screen |
Base Protocol
All payment method scopes conform toPrimerPaymentMethodScope:
Related
- Scopes Overview — Full scope reference
- Design Tokens Explorer — Explore theme tokens
- Card Form Layout Builder — Build card form layouts