#aligtor89_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1247242677053948096
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
๐
I need the promo code as well to be able to create a refer a friend type functionality based on the usage of promo codes
You could just listen to the checkout.session.completed event and make a subsequent API request in your handler to get all that info
but the checkout.session.completed doesn't have the promo code
my webhook id so far - we_1PNewOEYHkLwnZ5Hh1vYB9OG
Yeah, that's why you would make subsequent API calls to get the stuff you need. You could retrieve the Customer object, Payment Intent, Invoice, etc.
If you google stripe retrieve <insert object here> you'll find the API endpoint you need to GET to