#stefy_webhooks

1 messages ¡ Page 1 of 1 (latest)

graceful marshBOT
#

👋 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.

jolly frost
#

Hi

#

Could you please share more details ?

stone vortex
#

hi

#

use 'constructEvent' and trigger 12 events.

#

using stripe CLI shows all evnts triggered

#

docker is using

jolly frost
#

Sorry, I'm not understanding the issue you are facing or what you want to achieve exactly

stone vortex
#

i need only trigger needful events at a time.but all events triggred when checkout

jolly frost
#

No you can't deside what event to trigger. You need to do the filter on your integration

stone vortex
#

how to filter

jolly frost
#

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}.`);
  }
stone vortex
#

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.

digital spear
#

hi! I'm taking over this thread.