get Payment Method With
suspend fun getPaymentMethodWith(paymentMethodId: String): Pair<FrameObjects.PaymentMethod?, NetworkingError?>
Fetches a single payment method by its unique identifier.
Return
A pair of the matching payment method and a networking error.
Parameters
payment Method Id
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
payment Method Id
The unique identifier of the payment method to retrieve.
completion Handler
Called with the matching payment method on success, or a NetworkingError on failure.