Tutorial

Stripe Payment Automation: Intents, Customers, Refunds, and Webhooks

Stripe powers millions of online payments — e‑commerce stores, SaaS platforms, mobile apps, subscription systems, and automated billing workflows. The Stripe Connector makes it incredibly easy to integrate payments, customers, refunds, and webhook events directly into your automation pipelines.

With the Stripe Connector, you can create payment intents, manage customers, issue refunds, and react instantly to webhook events — all using secure API calls.

Step 1: Connect to Stripe

Stripe uses API keys for authentication. Simply drag a Create Payment Intent, Create Customer, Refund Payment, or Parse Webhook node onto the canvas and configure:

  • Secret Key — sk_test_… or sk_live_…
  • Host — Stripe API endpoint (handled automatically)
  • Timeout — request timeout

The connector handles authentication, form‑encoded requests, and response parsing automatically.

Step 2: Create a Payment Intent

Use the Create Payment Intent node to start a payment flow. You can specify:

  • amount — smallest currency unit (e.g., 1999 = $19.99)
  • currency — USD, EUR, GBP, RON
  • customerId — optional Stripe customer
  • description — optional text
  • metadataJson — custom fields

The node returns:

  • id — PaymentIntent ID (pi_…)
  • clientSecret — used by the front‑end to confirm the payment
  • amount — final amount
  • currency — currency used
  • status — payment status

This is ideal for checkout flows, mobile payments, or automated billing.

Step 3: Create a Customer

Use the Create Customer node to store customer information in Stripe. You can specify:

  • email
  • name
  • phone
  • description
  • metadataJson

The node returns:

  • id — Customer ID (cus_…)
  • email
  • name

This is perfect for subscription systems, CRM syncing, or customer onboarding.

Step 4: Refund a Payment

If you need to issue a refund — full or partial — use the Refund Payment node.

You can specify:

  • paymentIntentId — pi_…
  • amount — optional partial refund
  • reason — duplicate, fraudulent, or requested_by_customer

The node returns:

  • id — Refund ID (re_…)
  • amount
  • status
  • paymentIntentId

This is ideal for automated support flows, dispute handling, or refund policies.

Step 5: Parse Stripe Webhooks

Stripe sends webhook events for payments, customers, subscriptions, and more. Use the Parse Webhook node to validate the signature and extract event data.

You can specify:

  • webhookSigningSecret — whsec_…
  • rawBody — exact request body
  • stripeSignature — header value
  • toleranceSeconds — timestamp tolerance

The node returns:

  • valid — signature validity
  • eventType
  • eventId
  • eventData
  • liveMode
  • receivedAt

This is perfect for reacting to successful payments, failed charges, subscription updates, or customer events.

What's Next?

Experiment with multi-step payment workflows, combine Stripe events with conditional logic, or build dashboards showing payment activity. The Stripe Connector gives you the tools to automate any payment-driven process.

Nodlyn Assistant
Ask me anything about Nodlyn
Hi! 👋 I'm the Nodlyn assistant. Ask me about the product, workflow components, connectors, agent runtime, agent capabilities, deployment, and more. If I don't know an answer, I'll point you to our contact form.
Nodlyn Assistant
Ask me anything about Nodlyn
Hi! 👋 I'm the Nodlyn assistant. Ask me about the product, workflow components, connectors, agent runtime, agent capabilities, deployment, and more. If I don't know an answer, I'll point you to our contact form.