getPaymentMethodsWithAccount

suspend fun getPaymentMethodsWithAccount(accountId: String, auth: FrameAuthMode = FrameAuthMode.Secret): 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

accountId

The unique identifier of the account whose payment methods to retrieve.

auth

Credential for the request. Defaults to the secret key. Checkout passes a chk_sess_ token here.


Fetches all payment methods for a merchant account and delivers the result to a callback.

Parameters

accountId

The unique identifier of the account whose payment methods to retrieve.

completionHandler

Called with the list of payment methods on success, or a NetworkingError on failure.