#pooja_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/1311502843085328444
đ 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.
- pooja_api, 6 days ago, 43 messages
Hi there, so basically you want to trigger a customer.created event with a name set for the customer in the event object?
yes, and it should create new customer in my applications database when there is new customer created in stripe or payment made in stripe
Sure, you can use the --add flag when calling the trigger command https://docs.stripe.com/cli/trigger
For example stripe trigger customer.created --add customer:name=John
so my custom application have a webhook api where it accepts the request and add the data to database. What I am trying to achieve is when ever new client / payment is made in stripe it should send that data by calling my application's api
Stripe can send payment related webhook events to your webhook endpoint.
yes, but how can I test it on my local?
I am trying to do it using Stripe CLI but when I fire a trigger customer.created why the new customer shows on dashboard?
That's because Stripe CLI created a new customer.
To clarify, is your question about how to set up a local webhook endpoint so you can test your application?
ok, I have a local webhook endpoint eg. http://localhost:4444/api/client I wanted to test and send request data to this endpoint for this I am using CLI
Got it, sure you can use stripe listen command https://docs.stripe.com/cli/listen
https://docs.stripe.com/webhooks/quickstart you can also use this doc to learn about how to set up a local webhook endpoint
ok thanks for the doc, currently I am doing it the same way, it shows on CLI that trigger is succeeded but why it is creating a new customer on dashboard as well?
This is expected. As I explained earlier, Calling stripe trigger customer.created will create a new customer on your account
ok, where can I see what request data is stripe sending to my custom webhook?