vnpayment / com.venuenext.vnpayment.viewmodel / BraintreeViewModel

BraintreeViewModel

class BraintreeViewModel : AndroidViewModel, BaseCoroutineScope

Constructors

<init>

BraintreeViewModel(application: Application)

Functions

getToken

suspend fun getToken(): Nothing

getTokenAsync

fun getTokenAsync(success: (clientToken: String) -> Unit, error: (Exception) -> Unit): Deferred<Unit>