init

fun init(config: AnsaConfig): AnsaClient

Required initialization call to setup an AnsaClient

Parameters

config

Configuration for this AnsaClient


fun init(logging: Logging = Logging(), publishableKey: <Error class: unknown class>, clientSecretProvider: <Error class: unknown class>): AnsaClient

Required initialization call to setup an AnsaClient

Parameters

logging

Optional Logging interface

publishableKey

Merchant publishable key received during onboarding

clientSecretProvider

interface to provide Ansa with a short-lived token for access to customer specific endpoints.