Skip to main content
Use stripe.detachPaymentMethod when a customer removes a saved payment method. Detachment is permanent; Stripe does not allow reattaching the same object.
automations/stripe-detach-payment-method.automation.ts

Inputs

paymentMethodId is required. idempotencyKey is optional.

Output

Returns the detached PaymentMethod.