Class EventNotificationWebhookHandler

java.lang.Object
com.stripe.examples.EventNotificationWebhookHandler

public class EventNotificationWebhookHandler extends Object
Receive and process EventNotifications like the v1.billing.meter.error_report_triggered event.

In this example, we:

  • use parseEventNotification to parse the received event notification webhook body
  • call StripeClient.v2.core.events.retrieve to retrieve the full event object
  • if it is a V1BillingMeterErrorReportTriggeredEvent event type, call fetchRelatedObject to retrieve the Billing Meter object associated with the event.
  • Constructor Details

    • EventNotificationWebhookHandler

      public EventNotificationWebhookHandler()
  • Method Details