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
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

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.

Enter a gateway URL above to enable sending.

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

TypeScript

import stripe from '@utdk/stripe';

await stripe.postpaymentmethodspaymentmethoddetach()