Class ThinEventWebhookHandler

java.lang.Object
com.stripe.examples.ThinEventWebhookHandler

public class ThinEventWebhookHandler extends Object
Receive and process thin events like the v1.billing.meter.error_report_triggered event.

In this example, we:

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

    • ThinEventWebhookHandler

      public ThinEventWebhookHandler()
  • Method Details