ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

Stripe Webhook

Stripe webhooks facilitate real-time notifications of Stripe account activities. These events trigger actions in ME, keeping you updated on customer payments, disputes, subscription changes, and more.

Feature

Stripe events alert you when significant actions occur within your account. These events, encapsulated as Event objects, are generated to highlight specific occurrences. For instance, a successful charge triggers a charge.succeeded event, while a failed invoice payment prompts an invoice.payment_failed event. In Stripe, retrieving an individual event or a list of events from the API is possible. 

Learn more: refer to the official documentation to gain a deeper understanding of handling Stripe webhooks.

Known behavior:

  • Retry Attempts: Stripe attempts delivery of an event to your webhook endpoint for up to 3 days.
  • Order of Events: Stripe doesn’t guarantee delivery of events in the order they’re generated. 

Meiro Events accepts the following types of events from Stripe:

  • Payment Success:
    • payment_intent.succeeded
    • charge.succeeded
  • Payment Failure:
    • payment_intent.payment_failed
    • charge.failed
  • Dispute Management:
    • payment_intent.dispute.created
    • payment_intent.dispute.updated
    • payment_intent.dispute.closed

Full list of events, check here.

Example data

Here's an example of the JSON structure for a created Setup Intent:

{
  "id": "evt_1OIUMh2eZvKYlo2CmYF6M2Sy",
  "object": "event",
  "api_version": "2019-02-19",
  "created": 1701428075,
  "data": {
    "object": {
      "id": "seti_1OIUMg2eZvKYlo2CMOSvpqIq",
      "object": "setup_intent",
      "application": null,
      "automatic_payment_methods": null,
      "cancellation_reason": null,
      "client_secret": "seti_1OIUMg2eZvKYlo2CMOSvpqIq_secret_P6hmgSsb7SIilhqOBOmeoPKrO0buoi7",
      "created": 1701428074,
      "customer": null,
      "description": null,
      "flow_directions": null,
      "last_setup_error": null,
      "latest_attempt": null,
      "livemode": false,
      "mandate": null,
      "metadata": {},
      "next_action": null,
      "on_behalf_of": null,
      "payment_method": "pm_1OIUMg2eZvKYlo2CCOGPHnvY",
      "payment_method_configuration_details": null,
      "payment_method_options": {
        "acss_debit": {
          "currency": "cad",
          "mandate_options": {
            "interval_description": "First day of every month",
            "payment_schedule": "interval",
            "transaction_type": "personal"
          },
          "verification_method": "automatic"
        }
      },
      "payment_method_types": [
        "acss_debit"
      ],
      "single_use_mandate": null,
      "status": "requires_confirmation",
      "usage": "off_session"
    }
  },
  "livemode": false,
  "pending_webhooks": 0,
  "request": {
    "id": null,
    "idempotency_key": null
  },
  "type": "setup_intent.created"
}

Use cases

Here are some practical use cases for setting up a Stripe webhook with Meiro Events:

  • Receive instant notifications about successful payments for immediate actions like order fulfillment or updating customer profiles.
  • Monitor subscription-related events to track changes in subscription statuses, facilitating timely customer support or upgrades.
  • Act swiftly upon receiving dispute-related events, triggering automated processes for dispute resolution or customer engagement.