CreateIntent
Create a PaymentIntent in Stripe.
This task creates a PaymentIntent with amount, currency, and optional customer.
yaml
type: "io.kestra.plugin.stripe.payment.CreateIntent"Examples
Create a payment intent for $10 USD linked to a customer
yaml
id: create_payment_intent
namespace: company.team
tasks:
- id: create_payment_intent
type: io.kestra.plugin.stripe.payment.CreateIntent
apiKey: "{{ secret('STRIPE_API_KEY') }}"
amount: 1000
currency: "usd"
customer: "{{ outputs.create_customer.customerId }}"
Properties
amount *Requiredintegerstring
Amount intended to be collected by this PaymentIntent (in the smallest currency unit)
apiKey *Requiredstring
Stripe API Key
Secret key for authenticating with Stripe. Starts with 'sk_' for live/test keys.
currency *Requiredstring
Three-letter ISO currency code, in lowercase (e.g. usd, inr)
customer *Requiredstring
Existing customer ID to associate with this PaymentIntent
Outputs
paymentIntentId string
The created PaymentIntent ID
rawResponse object
The raw PaymentIntent object
status string
The PaymentIntent status