Skip to main content
Use stripe.attachPaymentMethod to attach an existing method to a customer. For future use, Stripe recommends first optimizing it with a SetupIntent or PaymentIntent.
automations/stripe-attach-payment-method.automation.ts

Inputs

customer and paymentMethodId are required. idempotencyKey is optional.

Output

Returns the attached PaymentMethod.