detachPaymentMethod

abstract suspend fun detachPaymentMethod(paymentMethodId: String): CustomerAdapter.Result<PaymentMethod>

Detaches the given payment method from a customer

Return

the modified PaymentMethod.

Parameters

paymentMethodId

, the payment method to detach from the customer