Structures
The following structures are available globally.
-
The default light color scheme for the Card Form.
See moreDeclaration
Swift
public struct LightCardFormColors : CardFormColors -
The default dark color scheme for the Card Form.
See moreDeclaration
Swift
public struct DarkCardFormColors : CardFormColors
-
The default implementation for a single text field’s styling.
See moreDeclaration
Swift
public struct TextFieldStandard : TextFieldStyling -
The default implementation that provides styling for all text field categories.
See moreDeclaration
Swift
public struct TextFieldCategoriesStandard : TextFieldCategories -
The default implementation for layout properties.
See moreDeclaration
Swift
public struct LayoutCategoriesStandard : LayoutCategories -
Undocumented
See moreDeclaration
Swift
public struct TextLabelStylingStandard : TextLabelStyling -
The default implementation for layout properties.
See moreDeclaration
Swift
public struct TextLabelCategoriesStandard : TextLabelCategories -
Undocumented
See moreDeclaration
Swift
public struct CardLogoBannerStandard : CardLogoBannerApperance
-
The default, standard appearance configuration for the SDK. It uses the default light and dark colors and standard text field styles.
See moreDeclaration
Swift
public struct CustomizableComponentsStandard : CustomizableComponents -
PaygateUnprocessableEntityrepresents an error response for a 422 Unprocessable Entity status code.This struct conforms to the
See moreDecodableandEquatableprotocols, allowing it to be decoded from JSON and compared to other instances. The error indicates that the request was well-formed but could not be processed.Declaration
Swift
public struct PaygateUnprocessableEntity : Decodable, Equatable -
Represents a single validation error for a specific field from the API. The error indicates that the request contained invalid parameters.
See moreDeclaration
Swift
public struct PaygateBadRequestError : Decodable, Equatable -
PaygateInternalErrorrepresents an error response for a HTTP 500 errorThis struct conforms to the
DecodableandEquatableprotocols, allowing it to be decoded from JSON and compared to other instances. The error indicates that the request was well-formed but could not be processed.- Properties:
responseDescription: A description of the error that occurred.responseCode: A specific error code provided by the Computop API.
Declaration
Swift
public struct PaygateInternalError : Decodable, Equatable - Properties:
-
Undocumented
See moreDeclaration
Swift
public struct PaymentAPIResponse : Decodable, Equatable -
A data structure representing the order details required for an Apple Pay transaction.
This struct encapsulates the essential information needed to construct a
PKPaymentRequestinternally within the SDK, such as the country code, currency, total amount, and a label describing the payment.Usage Example:
See morelet orderData = ApplePayOrderData( merchantId: "merchant.com.example.mystore", countryCode: "US", currency: "USD", total: 120.50, // Represents $120.50 directly label: "My Merchant Store" )Declaration
Swift
public struct ApplePayOrderData -
A payload structure for handling payment requests.
accessToken: The authorization access token used to authenticate the payment request.paymentIntentId: The unique identifier for the payment intent.orderInfo: The order details including country code, currency, total amount, and label.
Declaration
Swift
public struct ApplePayRequestPayload : AuthorizingPayload -
A payload structure for handling payment requests.
accessToken: The authorization access token used to authenticate the payment request.hostedPaymentPresenterVC: A closure that returns aUIViewController?to present the hosted payment UI.
Declaration
Swift
public struct BaseRequestPayload : AuthorizingPayload -
A payload structure for handling payment requests.
accessToken: The authorization access token used to authenticate the payment request.hostedPaymentPresenterVC: A closure that returns aUIViewController?to present the hosted payment UI.
Declaration
Swift
public struct KlarnaRequestPayload : AuthorizingPayload
-
See moreMerchantstruct represents the preferences for a merchant. It conforms toCardMerchantPreferencesprotocol.Declaration
Swift
public struct Merchant : CardMerchantPreferences
Structures Reference