detachPaymentMethodWith

Detaches a payment method from its associated customer or account.

Return

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

Parameters

paymentMethodId

The unique identifier of the payment method to detach.


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

Detaches a payment method from its associated customer or account and delivers the result to a callback.

Parameters

paymentMethodId

The unique identifier of the payment method to detach.

completionHandler

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