#ohmamamind_webhooks

1 messages ¡ Page 1 of 1 (latest)

turbid glacierBOT
#

👋 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/1297784802287816734

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

drowsy ivy
lunar bay
#

Looks like you used the wrong webhook secret in your endpoint. Did you get the right secert from your Dashboard?

drowsy ivy
#

it is Signing secret right?

lunar bay
#

Yes

drowsy ivy
#

Signing secret is correct

lunar bay
#

Did you get the signing secret from Dashboard or Stripe CLI?

drowsy ivy
#

I receive and use it from the dashboard, but I also have it from the CLI.

lunar bay
#

You should use the webhook secert from Dashboard. Can you double check?

drowsy ivy
#

yes i check it already

lunar bay
#

Can you add some logs in your code to confirm?

drowsy ivy
#

i can't see log in devtool on web

#

Now that the webhook shows "success," does that mean it's completed successfully?

lunar bay
#

Yes, and you can also check your server log to verify

drowsy ivy
#

when i check log in my server i don't see any log but i create console.log in my route.js

lunar bay
#

Did you write any code to print logs upon receiving webhook events?

turbid glacierBOT
drowsy ivy
#

yes i write code to print log like this
case "customer.subscription.trial_will_end":
subscription = event.data.object;
status = subscription.status;
console.log(Subscription status is ${status}.);
break;

misty scarab
drowsy ivy
#

My website sells subscriptions on a monthly and yearly basis. Is it necessary to have this event?

misty scarab
#

Webhooks help you execute your business logic. None of them are required, but some of them might be helpful depending on your use case.

misty scarab
drowsy ivy
#

oh i see i'm sorry i have event payment_intent.succeeded in webhook and it fail but in my code is not have and i show this event customer.subscription.trial_will_end instead because i want to show log to example

misty scarab
#

Coming back to your initial question:

"I triggered an payment.intent.success in Stripe, and it returned a status of 200, but when it tried to deliver the event to the webhook, it returned a status of 500."
What is the difference here between "triggered" and "tried to deliver" exactly?

drowsy ivy
#

At first it came up like this.

#

but now is not happen status 500

misty scarab
#

What's the exact error message that's returned?