Show HN: use-stripe-subscription – easily add Stripe Billing to your React app

by colinclerkon 6/13/2022, 7:12 PMwith 3 comments

by colinclerkon 6/13/2022, 7:35 PM

Hey HN - in addition to the linked codebase, we wrote a blog about the general challenges involved with "refactoring" a backend-facing REST API to also provide a frontend-facing React API (of hooks and components): https://clerk.dev/blog/refactoring-stripes-api-for-frontend-...

by codingdaveon 6/13/2022, 7:48 PM

What is the use case for your billing being directly tied to your front-end, and not the back-end? I'd think that opens up a much larger surface area for security problems?