Package com.stripe.examples
Class ThinEventWebhookHandler
java.lang.Object
com.stripe.examples.ThinEventWebhookHandler
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
ThinEventWebhookHandler
public ThinEventWebhookHandler()
-
-
Method Details
-
main
- Throws:
IOException
-