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