#aligtor89_webhooks

1 messages ยท Page 1 of 1 (latest)

magic badgerBOT
#

๐Ÿ‘‹ 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.

vapid crown
#

๐Ÿ‘

#

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

frozen coral
#

You could just listen to the checkout.session.completed event and make a subsequent API request in your handler to get all that info

vapid crown
#

but the checkout.session.completed doesn't have the promo code

#

my webhook id so far - we_1PNewOEYHkLwnZ5Hh1vYB9OG

frozen coral
#

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.

vapid crown
#

is there an example online somewhere

#

api or webhok?

frozen coral
#

If you google stripe retrieve <insert object here> you'll find the API endpoint you need to GET to