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