#ohmamamind_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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.
- ohmamamind_code, 3 days ago, 9 messages
Looks like you used the wrong webhook secret in your endpoint. Did you get the right secert from your Dashboard?
it is Signing secret right?
Yes
Signing secret is correct
Did you get the signing secret from Dashboard or Stripe CLI?
I receive and use it from the dashboard, but I also have it from the CLI.
You should use the webhook secert from Dashboard. Can you double check?
yes i check it already
Can you add some logs in your code to confirm?
i can't see log in devtool on web
Now that the webhook shows "success," does that mean it's completed successfully?
Yes, and you can also check your server log to verify
when i check log in my server i don't see any log but i create console.log in my route.js
Did you write any code to print logs upon receiving webhook events?
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;
This is not for payment_intent.succeeded event type
My website sells subscriptions on a monthly and yearly basis. Is it necessary to have this event?
Webhooks help you execute your business logic. None of them are required, but some of them might be helpful depending on your use case.
I am saying this since initially you asked about an event of type payment_intent.succeeded. But the code snippet you shared is for customer.subscription.trial_will_end. So I was wondering what are you trying to achieve here exactly.
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
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?
What's the exact error message that's returned?