PaymentResult
Returned on successful payment viaPrimerCheckoutState.success:
| Property | Type | Description |
|---|---|---|
payment | Payment? | Payment details including ID and status |
paymentMethodData | PrimerPaymentMethodTokenData? | Token data (available in manual mode) |
PrimerError
Payment and configuration error details:| Property | Type | Description |
|---|---|---|
errorId | String | Unique error identifier for support requests |
errorDescription | String? | Human-readable error message |
diagnosticsId | String? | Diagnostic ID for Primer support |
PrimerSettings
PrimerPaymentHandling
PrimerCheckoutState
PresentationContext
DismissalMechanism
CheckoutPaymentMethod
FieldError
CardFormConfiguration
FormData
FieldValidationStates
Tracks validation state for individual card form fields. Used withupdateValidationState(_:isValid:) on DefaultCardFormScope when providing custom field components.
false and become true when validation passes. Use KeyPaths to reference fields:
FormFieldState
Used byPrimerFormRedirectScope for form-based redirect payment methods.
Type aliases
Component closures used for UI customization:| Alias | Signature |
|---|---|
Component | () -> any View |
ContainerComponent | (@escaping () -> any View) -> any View |
ErrorComponent | (String) -> any View |
PaymentMethodItemComponent | (CheckoutPaymentMethod) -> any View |
CountryItemComponent | (PrimerCountry, @escaping () -> Void) -> any View |
CategoryHeaderComponent | (String) -> any View |
PaymentMethodSelectionScreenComponent | (PrimerPaymentMethodSelectionScope) -> any View |
CardFormScreenComponent | (any PrimerCardFormScope) -> any View |
KlarnaScreenComponent | (any PrimerKlarnaScope) -> any View |
KlarnaButtonComponent | (any PrimerKlarnaScope) -> any View |
PayPalScreenComponent | (any PrimerPayPalScope) -> any View |
PayPalButtonComponent | (any PrimerPayPalScope) -> any View |
AchScreenComponent | (any PrimerAchScope) -> any View |
AchButtonComponent | (any PrimerAchScope) -> any View |
WebRedirectScreenComponent | (any PrimerWebRedirectScope) -> any View |
WebRedirectButtonComponent | (any PrimerWebRedirectScope) -> any View |
FormRedirectScreenComponent | (any PrimerFormRedirectScope) -> any View |
FormRedirectButtonComponent | (any PrimerFormRedirectScope) -> any View |
FormRedirectFormSectionComponent | (any PrimerFormRedirectScope) -> any View |
QRCodeScreenComponent | (any PrimerQRCodeScope) -> any View |
PrimerCheckoutPresenter (UIKit)
PrimerCheckoutPresenterDelegate
See also
Settings
Configure SDK behavior
UIKit integration
Using PrimerCheckoutPresenter