createToken

open suspend override fun createToken(tokenParams: TokenParams, options: ApiRequest.Options): Result<Token>

Create a Token using the input token parameters.

Analytics event: PaymentAnalyticsEvent.TokenCreate

Return

a Result containing the generated Token or the encountered Exception

Parameters

tokenParams

a TokenParams representing the object for which this token is being created

options

a ApiRequest.Options object that contains connection data like the api key, api version, etc