createWith

abstract suspend fun createWith(paymentInterfaceType: PaymentInterfaceTypeT): Result<PaymentInterfaceT>

Creates the instance of a PaymentInterface. Some types or specific instances might not be available or have an error during initialization, for that reason you can verify the Result for more information on either success of failure during creation.

Return

A Result indicating if the creation of the PaymentInterface was successful or not.