getPaymentMethodWith

Fetches a single payment method by its unique identifier.

Return

A pair of the matching payment method and a networking error.

Parameters

paymentMethodId

The unique identifier of the payment method to retrieve.


fun getPaymentMethodWith(paymentMethodId: String, completionHandler: (FrameObjects.PaymentMethod?, NetworkingError?) -> Unit)

Fetches a single payment method by its unique identifier and delivers the result to a callback.

Parameters

paymentMethodId

The unique identifier of the payment method to retrieve.

completionHandler

Called with the matching payment method on success, or a NetworkingError on failure.