I really hope this video covers the things I need to know, because the stripe documentation is a nightmare, makes little sense in the grand scheme and i don't want to find this stuff in there.
@@brettwestwooddeveloper Totally did, it didnt quite answer all my questions but gave me the knowledge to figure the parts out that you did not cover. I was dealing with some decently advanced stuff tho. This was for a coding contest, I ended up taking 2nd in so pretty happy with the results =)
apiVersion: '2024-06-20', it looks like stripe has set their current type definition so that an improper API version throws a type error that actually shows the current API version freakin clever stripe I like it.
Great tutorial! I'm all set for when a checkout is complete for a subscription, but struggling a bit with the invoice.paid event when the subscription auto renews. Do you know if there will be a session.subscription property in the same way that it's there for checkout.session.complete event? I'm using the current_period_end timestamp to set the expiration date on checkout complete, want to do the same thing when invoice.paid fires. Any help would be appreciated 🙏
will i have to create different webhooks for each different services like for payment a different webhook and for a subscription model a different webhook or can we use one webhook for multiple services
Thanks for watching! And no you will create one route.ts file and you will define all the event types in one file. So, its the same webhook, only create one webhook
i have one question is how can i access the stripe without open the cmd and go to stripe path . no i want when i open cmd be able to access stripe from anywhere how ??