Structures

The following structures are available globally.

Default Implementations

Main Appearance Protocol and Default Implementation

  • The default, standard appearance configuration for the SDK. It uses the default light and dark colors and standard text field styles.

    See more

    Declaration

    Swift

    public struct CustomizableComponentsStandard : CustomizableComponents
  • PaygateUnprocessableEntity represents an error response for a 422 Unprocessable Entity status code.

    This struct conforms to the Decodable and Equatable protocols, 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.

    See more

    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 more

    Declaration

    Swift

    public struct PaygateBadRequestError : Decodable, Equatable
  • PaygateInternalError represents an error response for a HTTP 500 error

    This struct conforms to the Decodable and Equatable protocols, 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.
    See more

    Declaration

    Swift

    public struct PaygateInternalError : Decodable, Equatable
  • Undocumented

    See more

    Declaration

    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 PKPaymentRequest internally within the SDK, such as the country code, currency, total amount, and a label describing the payment.

    Usage Example:

        let orderData = ApplePayOrderData(
        merchantId: "merchant.com.example.mystore",
        countryCode: "US",
        currency: "USD",
        total: 120.50, // Represents $120.50 directly
        label: "My Merchant Store"
    )
    
    See more

    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.
    See more

    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 a UIViewController? to present the hosted payment UI.
    See more

    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 a UIViewController? to present the hosted payment UI.

    Declaration

    Swift

    public struct KlarnaRequestPayload : AuthorizingPayload

MerchantPreferences