CreateIntent​Create​Intent

Create a PaymentIntent in Stripe.

This task creates a PaymentIntent with amount, currency, and optional customer.

yaml
type: "io.kestra.plugin.stripe.payment.CreateIntent"

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 intended to be collected by this PaymentIntent (in the smallest currency unit)

Stripe API Key

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

Three-letter ISO currency code, in lowercase (e.g. usd, inr)

Existing customer ID to associate with this PaymentIntent

The created PaymentIntent ID

The raw PaymentIntent object

The PaymentIntent status