CreateMethod
Create a PaymentMethod in Stripe.
This task creates a PaymentMethod, typically with card details.
yaml
type: "io.kestra.plugin.stripe.payment.CreateMethod"Examples
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
apiKey *Requiredstring
Stripe API Key
Secret key for authenticating with Stripe. Starts with 'sk_' for live/test keys.
paymentMethodType *Requiredstring
The PaymentMethod type – e.g., card
cardNumber string
Card number (required if type = card)
cvc string
Card CVC
expMonth integerstring
Card expiration month
expYear integerstring
Card expiration year
Outputs
paymentMethodId string
The created PaymentMethod ID
rawResponse object
The raw PaymentMethod object