APIContext
public struct APIContext : AnyAPIContext
Struct that defines API context for retrieving internal resources.
-
The query parameters.
Declaration
Swift
public var queryParameters: [URLQueryItem] { get }
-
The HTTP headers.
Declaration
Swift
public let headers: [String : String]
-
Environment to retrieve internal resources from.
Declaration
Swift
public let environment: AnyAPIEnvironment
-
The client key that corresponds to the web service user you will use for initiating the payment. See https://docs.adyen.com/user-management/client-side-authentication for more information.
Declaration
Swift
public let clientKey: String
-
Initializes the APIContext
Declaration
Swift
public init(environment: AnyAPIEnvironment, clientKey: String)
Parameters
environment
The environment to retrieve internal resources from.
clientKey
The client key that corresponds to the web service user you will use for initiating the payment.