Stripe
import { Hibiki } from "@hibiki-js/core"
import { stripe } from "@hibiki-js/stripe"
const app = new Hibiki().use(stripe({
secret: process.env.STRIPE_WEBHOOK_SECRET!,
tolerance: 300,
}))Signature verification uses Web Crypto HMAC-SHA256 and does not depend on the Stripe SDK. Other Stripe events return 200 by default (or 400 with strictEvents: true).
This provider supports snapshot events with data.object, not thin events. Types are curated subsets, not full SDK types or runtime business validation. Common Checkout Session fields (amounts, payment status, metadata, customer) and PaymentIntent/Customer fields are typed and optional for older payloads/minimal fixtures. Additional fields remain unknown; validate business requirements explicitly. There is no pinned upstream Stripe API version. The event's api_version determines its payload version.
stripeEvents exports the readonly native event list for the installed package. Provider coverage also includes package versions and formats.
Supported events
Checkout
checkout.session.completedcheckout.session.expiredcheckout.session.async_payment_succeededcheckout.session.async_payment_failed
PaymentIntent
payment_intent.succeededpayment_intent.payment_failedpayment_intent.canceledpayment_intent.requires_actionpayment_intent.processingpayment_intent.partially_funded
Invoice
invoice.paidinvoice.payment_failedinvoice.payment_action_requiredinvoice.finalizedinvoice.upcominginvoice.created
Customer / Subscription
customer.createdcustomer.updatedcustomer.deletedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedcustomer.subscription.pausedcustomer.subscription.resumedcustomer.subscription.trial_will_end
Charge / Dispute / Refund / PaymentMethod
charge.succeededcharge.failedcharge.refundedcharge.dispute.createdcharge.dispute.updatedcharge.dispute.closedrefund.createdrefund.updatedrefund.failedpayment_method.attachedpayment_method.detached
SetupIntent
setup_intent.succeeded
Handlers are registered with the stripe. prefix:
app.on("stripe.payment_intent.succeeded", async ({ event }) => {
console.log(event.data.object.id)
})See the API reference for options and exported types.
