detach Payment Method With
suspend fun detachPaymentMethodWith(paymentMethodId: String): Pair<FrameObjects.PaymentMethod?, NetworkingError?>
Detaches a payment method from its associated customer or account.
Return
A pair of the updated payment method and a networking error.
Parameters
payment Method Id
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
payment Method Id
The unique identifier of the payment method to detach.
completion Handler
Called with the updated payment method on success, or a NetworkingError on failure.