vnwalletui / com.venuenext.vnwalletui.view / QRViewModel / getPaymentMethod

getPaymentMethod

suspend fun getPaymentMethod(forceRefresh: Boolean): PaymentMethod?

Gets the primary payment method

Parameters

forceRefresh - If true, fetches from the server before storing in the cache.

Return
The payment method, or null if it couldn't be found or there was an error