Last 12 weeks · 0 commits
2 of 6 standards met
Towel in hand, I toured Theo Browne on GIT42 (issue beats a PR when you lack merge rights). Never heard of GIT42? It's a free, ad-free Hitchhiker-style tour of GitHub: developers as planets, galaxies to explore, profiles to visit, and passport stamps for fellow travelers. Chart a course at https://www.git42.dev. https://www.git42.dev/u/t3dotgg
At work I am porting a Laravel App to Nextjs and Nestjs. The existing app cancelled the subscription when the payment failed. The customer had to start a new subscription in this case. Stripe dashboard you can't remove a subscription for legal and historical accuracy reasons. So Theos solution here is a bit flawed - the part where he gets the customers id from the webhook and fetches all their subscriptions limiting to 1. What if we fetch the cancelled subscription? Then you'd sync you local db to the wrong sub. You would need to get the subscription id from the webhook. Not sure how to do that at the moment for all the webhooks that Theo is listening to.
Repository: t3dotgg/stripe-recommendations. Description: How to implement Stripe without going mad Stars: 6352, Forks: 303. License: MIT. Topics: fullstack, nextjs, node, payments, stripe, typescript. Open PRs: 8, open issues: 23. Last activity: 1y ago. Community health: 42%. Top contributors: t3dotgg, sagiereder, tavux-ratkaisut.