createFactor

Creates a Factor from a FactorPayload

Parameters

error
Block to be called when the operation fails with the cause of failure
factorPayload
Describes Information needed to create a Factor
success
Block to be called when the operation succeeds, returns the created Factor
abstract fun createFactor(factorPayload: FactorPayload, success: (Factor) -> Unit, error: (TwilioVerifyException) -> Unit)