
Stripe CreateMethod
CertifiedCreate a Stripe PaymentMethod
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.CreateMethodExamples
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
apiKey *Requiredstring
Stripe API Key
Secret key for authenticating with Stripe. Starts with 'sk_' for live/test keys.
paymentMethodType *Requiredstring
PaymentMethod type
Type enum such as card; controls required fields
cardNumber string
Card number
Required when type is card
cvc string
Card CVC
Optional but recommended when type is card
expMonth integerstring
Expiration month
Required when type is card
expYear integerstring
Expiration year
Required when type is card
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
paymentMethodId string
Created PaymentMethod ID
rawResponse object
Raw PaymentMethod payload
Full PaymentMethod object converted to a map