RapidfolioRapidfolio
Triggers

Stripe Trigger

Trigger procedures from Stripe payment and customer events.

Overview

The Stripe trigger fires your procedure when a Stripe event occurs in your account — for example when a payment succeeds, a customer is created, or a charge is refunded.

Setup

  1. Go to Connections in the Rapidfolio dashboard and connect your Stripe account.
  2. Open the procedure you want to trigger and add a Stripe trigger.
  3. Select the event types you want to listen for, then save the trigger.
  4. Copy the generated webhook URL and register it in your Stripe Dashboard under Developers → Webhooks → Add endpoint.

Webhook URL

https://run.rapidfolio.com/triggers/:triggerId/stripe

Replace :triggerId with the trigger ID shown in the Rapidfolio dashboard.

Signature Verification

Rapidfolio verifies the Stripe-Signature header on every inbound request using your Stripe webhook signing secret. Requests with an invalid or missing signature are rejected with a 400 response.

You do not need to configure this yourself — Rapidfolio handles it automatically when you connect your Stripe account.

Configuration

FieldDescription
ConnectionThe Stripe connection to listen on
Event typesOne or more Stripe event types to subscribe to (see below)

Supported Event Types

Event typeDescription
payment_intent.succeededA PaymentIntent was successfully completed
payment_intent.payment_failedA PaymentIntent failed
payment_intent.createdA PaymentIntent was created
payment_intent.canceledA PaymentIntent was canceled
customer.createdA new customer was created
customer.updatedAn existing customer was updated
customer.deletedA customer was deleted
charge.succeededA charge succeeded
charge.failedA charge failed
charge.refundedA charge was fully or partially refunded
charge.dispute.createdA dispute was opened on a charge
invoice.paidAn invoice was paid
invoice.payment_failedAn invoice payment attempt failed
subscription.createdA subscription was created
subscription.updatedA subscription was updated
subscription.deletedA subscription was canceled

Any valid Stripe event type can be entered if it is not listed above.

Payload

The trigger payload is the raw Stripe event object. Access it in your procedure via the trigger input.

{
  "id": "evt_3OqXYZ2eZvKYlo2C1234abcd",
  "object": "event",
  "type": "payment_intent.succeeded",
  "created": 1710000000,
  "livemode": false,
  "data": {
    "object": {
      "id": "pi_3OqXYZ2eZvKYlo2C1234abcd",
      "object": "payment_intent",
      "amount": 5000,
      "currency": "gbp",
      "status": "succeeded",
      "customer": "cus_PqRsT1234567890",
      "metadata": {
        "order_id": "ord_001"
      }
    }
  }
}

The data.object field contains the Stripe resource that the event relates to (a PaymentIntent, Customer, Charge, etc.).

Example Use Cases

  • Automatically onboard a customer in your internal system when customer.created fires.
  • Trigger a KYC verification workflow when a first payment_intent.succeeded is received.
  • Send an internal alert and open a case when charge.dispute.created fires.
  • Reconcile ledger entries whenever invoice.paid occurs.

On this page