
CreateMethod
Create a PaymentMethod in Stripe.
Create a PaymentMethod in Stripe.
Create a PaymentMethod in Stripe.
This task creates a PaymentMethod, typically with card details.
type: "io.kestra.plugin.stripe.payment.CreateMethod"Examples
Create a card PaymentMethod
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
cardNumberstring
Card number (required if type = card)
cvcstring
Card CVC
expMonthintegerstring
Card expiration month
expYearintegerstring
Card expiration year
Outputs
paymentMethodIdstring
The created PaymentMethod ID
rawResponseobject
The raw PaymentMethod object