detachPaymentMethod

Detaches a PaymentMethod from a customer.

Parameters

paymentMethodId

the ID of the payment method to be detached

listener

a PaymentMethodRetrievalListener called when the API call completes with the detached PaymentMethod.