#somebodysysop_api

1 messages ¡ Page 1 of 1 (latest)

eternal cometBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1225324415005229127

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

trim turretBOT
novel quail
#

Can you share what you are trying to achieve? Are you looking for the successful invoice payment of the recurring cycle?

hazy bane
#

I have a webhook that receives the Stripe events. I have a Drupal website, and what I want to do is create/update account info on my site when successful subscription payment comes in. To do this, I need cust email address, cust id (stripe), product id (stripe) and amount paid. On initial subscription, I get all the events at the same time where I can get this info. On recurring subscriptions, the customer.subscription.updated event arrives immediately, followed by the payment_intend.succeeded and customer.updated events an hour later. My question really boils down to: how can I retrieve the cust email address and invoice amt paid when I only have the customer.subscription.updated event?

#

payment_intent.succeeded has the information I need, but it is arriving an hour after customer.subscription.updated.

novel quail
hazy bane
#

Perfect. But that event is not sent on my recurring subscription payments.

novel quail
#

Your webhook endpoint didn't subscribe to invoice.paid event

hazy bane
#

got it. How do I add invoice.paid to that endpoint?

novel quail
#

On the top right corner of the Webhook endpoint page, there is a three dots (...). Click on it and > Choose "Update details" > Then add invoice.paid event to "Events to send" list

hazy bane
#

OK, done. This recurring transaction is processed daily, so hopefully I'll see invoice.paid on tomorrow's run. Thank you so very much!

novel quail