CreateMethod​Create​Method

Create a PaymentMethod in Stripe.

This task creates a PaymentMethod, typically with card details.

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') }}"
    expirationDate: "{{ secret('CREDIT_CARD_EXPIRATION') }}"
    cvc: "123"
Properties

Stripe API Key

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

The PaymentMethod type – e.g., card

Card number (required if type = card)

Card CVC

Card expiration month

Card expiration year

The created PaymentMethod ID

The raw PaymentMethod object