#stefy_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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/1249689283627843614
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hi
use 'constructEvent' and trigger 12 events.
using stripe CLI shows all evnts triggered
docker is using
Sorry, I'm not understanding the issue you are facing or what you want to achieve exactly
i need only trigger needful events at a time.but all events triggred when checkout
No you can't deside what event to trigger. You need to do the filter on your integration
how to filter
Depending on your prog language
For example using NodeJs:
// Handle the event
switch (event.type) {
case 'payment_intent.succeeded':
const paymentIntent = event.data.object;
console.log(`PaymentIntent for ${paymentIntent.amount} was successful!`);
// Then define and call a method to handle the successful payment intent.
// handlePaymentIntentSucceeded(paymentIntent);
break;
case 'payment_method.attached':
const paymentMethod = event.data.object;
// Then define and call a method to handle the successful attachment of a PaymentMethod.
// handlePaymentMethodAttached(paymentMethod);
break;
default:
// Unexpected event type
console.log(`Unhandled event type ${event.type}.`);
}
when the checkout stripe i need to send mail in subscription.create event and when update (downgrade or upgrade ) also send emial.currently got 2 emails at time.
hi! I'm taking over this thread.