Skip to content

Add decorator for stripe package services#1121

Open
KabinKhandThakuri wants to merge 2 commits into
feat/stripe-packagefrom
feat/decorate-stripe
Open

Add decorator for stripe package services#1121
KabinKhandThakuri wants to merge 2 commits into
feat/stripe-packagefrom
feat/decorate-stripe

Conversation

@KabinKhandThakuri

@KabinKhandThakuri KabinKhandThakuri commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
  • packages/stripe/src/index.ts — Added declare module fastify augmentation adding stripe: StripeClient to FastifyInstance for end-to-end type safety on fastify.stripe.
  • packages/stripe/src/plugin.ts — Imports StripeClient , adds a duplicate-registration guard ( if (fastify.stripe) throw... ) consistent with fastify-mailer , and decorates fastify.stripe with a StripeClient instance after config resolution

@KabinKhandThakuri KabinKhandThakuri changed the base branch from main to feat/stripe-package June 19, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant