stripe.createPaymentMethod for server-side payment-method types supported by Stripe. Prefer Stripe.js for raw card details so they do not pass through your automation.
automations/stripe-create-payment-method.automation.ts
Inputs
Supply the payment-methodtype and its matching detail object. billingDetails, metadata, and idempotencyKey are optional.