Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withListenExternalService

Method
📦 CommunityToolkit.Aspire.Hosting.Stripe v13.5.0
interface StripeResource {
// ... omitted for brevity
withListenExternalService(
forwardTo: ExternalServiceResource,
webhookPath?: string,
events?: string[]): StripeResource;
}

Signature

methodwithListenExternalServicebuilder
Configures the Stripe CLI to listen for webhooks and forward them to the specified URL expression.
withListenExternalService(
forwardTo: ExternalServiceResource,
webhookPath?: string,
events?: string[]): StripeResource
forwardToExternalServiceResource
webhookPathstringoptional= /webhooks/stripe
eventsstring[]optional
StripeResource

Applies to

This method applies to the following types: