provider POST /v1/payment_methods/{payment_method}/detach
@utdk/stripe /v1/payment_methods/{payment_method}/detach
Detach a PaymentMethod from a Customer
<p>Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.</p>
payment_method path required
string

Try it

Authentication
Configure credentials for Stripe API
postpaymentmethodspaymentmethoddetach
POST/v1/payment_methods/{payment_method}/detach
<p>Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.</p>

Parameters

required

Input

Specifies which fields in the response should be expanded.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stripe from '@utdk/stripe';

await stripe.postpaymentmethodspaymentmethoddetach()