@suluk/stripe 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/webhook.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suluk/stripe",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "First-class Stripe via a swappable PaymentProvider: usage-based billing (Billing Meters + meter events), customers, metered prices, subscriptions, webhooks — and a bridge from @suluk/cost to Stripe usage. Other processors follow Stripe. CANDIDATE tooling.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
package/src/webhook.ts
CHANGED
|
@@ -41,9 +41,12 @@ export function webhookRouter(handlers: Record<string, WebhookHandler> = {}): We
|
|
|
41
41
|
|
|
42
42
|
/** The common Stripe checkout/billing event types (for discoverability + typo-safe registration). */
|
|
43
43
|
export const STRIPE_EVENTS = {
|
|
44
|
+
checkoutCompleted: "checkout.session.completed",
|
|
45
|
+
checkoutExpired: "checkout.session.expired",
|
|
44
46
|
paymentSucceeded: "payment_intent.succeeded",
|
|
45
47
|
paymentFailed: "payment_intent.payment_failed",
|
|
46
48
|
chargeRefunded: "charge.refunded",
|
|
49
|
+
disputeClosed: "charge.dispute.closed",
|
|
47
50
|
setupSucceeded: "setup_intent.succeeded",
|
|
48
51
|
subscriptionUpdated: "customer.subscription.updated",
|
|
49
52
|
subscriptionDeleted: "customer.subscription.deleted",
|