CLASS
AnsaSdk
¶
Properties¶
shared
¶
static public var shared: AnsaClient = {
guard let sharedInstance = sharedClient else {
preconditionFailure("You must call AnsaSdk.initialize before accessing the shared instance.")
}
return sharedInstance
}()
Methods¶
initialize(publishableKey:clientSecretProvider:logging:)
¶
static public func initialize(
publishableKey: String,
clientSecretProvider: ClientSecretProvider,
logging: Logging = Logging()
)
Required initialization call to setup an AnsaClient
- Parameters:
- publishableKey: Merchant publishable key received during onboarding
- clientSecretProvider: interface to provide Ansa with a short-lived token for access to customer specific endpoints.
- logging: Optional
Logging
interface
Parameters¶
Name | Description |
---|---|
publishableKey | Merchant publishable key received during onboarding |
clientSecretProvider | interface to provide Ansa with a short-lived token for access to customer specific endpoints. |
logging | Optional Logging interface |