get Payment Methods With Account
suspend fun getPaymentMethodsWithAccount(accountId: String): Pair<List<FrameObjects.PaymentMethod>?, NetworkingError?>
Fetches all payment methods associated with a specific merchant account.
Return
A pair of the list of payment methods and a networking error.
Parameters
account Id
The unique identifier of the account whose payment methods to retrieve.
fun getPaymentMethodsWithAccount(accountId: String, completionHandler: (List<FrameObjects.PaymentMethod>?, NetworkingError?) -> Unit)
Fetches all payment methods for a merchant account and delivers the result to a callback.
Parameters
account Id
The unique identifier of the account whose payment methods to retrieve.
completion Handler
Called with the list of payment methods on success, or a NetworkingError on failure.