Class EventNotificationHandlerEndpoint

java.lang.Object
com.stripe.examples.EventNotificationHandlerEndpoint

public class EventNotificationHandlerEndpoint extends Object
Receive and process event notifications (AKA thin events) like "v1.billing.meter.error_report_triggered" using EventNotificationHandler.

In this example, we:

  • write a fallback callback to handle unrecognized event notifications
  • create a StripeClient called client
  • Initialize an EventNotificationHandler with the client, webhook secret, and fallback callback
  • register a specific handler for the "v1.billing.meter.error_report_triggered" event notification type
  • use handler.handle() to process the received notification webhook body
  • Constructor Details

    • EventNotificationHandlerEndpoint

      public EventNotificationHandlerEndpoint()
  • Method Details