Stripe CreateMethod

Stripe CreateMethod

Certified

Create a Stripe PaymentMethod

Creates a PaymentMethod of the given type (e.g., card). For cards, number, expiry, and CVC must be provided.

yaml
type: io.kestra.plugin.stripe.payment.CreateMethod

Create a card PaymentMethod

yaml
id: create_payment_method
namespace: company.team

tasks:
  - id: create_payment_method
    type: io.kestra.plugin.stripe.payment.CreateMethod
    apiKey: "{{ secret('STRIPE_API_KEY') }}"
    type: "card"
    cardNumber: "{{ secret('CREDIT_CARD_NUMBER') }}"
    expMonth: 12
    expYear: 2030
    cvc: "123"
Properties

Stripe API Key

Secret key for authenticating with Stripe. Starts with 'sk_' for live/test keys.

PaymentMethod type

Type enum such as card; controls required fields

Card number

Required when type is card

Card CVC

Optional but recommended when type is card

Expiration month

Required when type is card

Expiration year

Required when type is card

Reference (ref) of the pluginDefaults to apply to this task.

Created PaymentMethod ID

Raw PaymentMethod payload

Full PaymentMethod object converted to a map