Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

StripeResource.WithListenExternalService

Method
📦 CommunityToolkit.Aspire.Hosting.Stripe v13.6.1
type StripeResource interface {
// ... omitted for brevity
WithListenExternalService(
forwardTo ExternalServiceResource,
options ...*WithListenExternalServiceOptions,
) StripeResource
}

Signature

methodWithListenExternalServicebuilder
Configures the Stripe CLI to listen for webhooks and forward them to the specified URL expression.
WithListenExternalService(
forwardTo ExternalServiceResource,
options ...*WithListenExternalServiceOptions,
) StripeResource
forwardToExternalServiceResourceThe resource to forward webhooks to.
options...*WithListenExternalServiceOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithListenExternalServiceOptions argument.

WebhookPath*stringThe path to the webhook endpoint.
Events[]stringOptional collection of specific webhook events to listen for (e.g., ["payment_intent.created", "charge.succeeded"]). If not specified, all events are forwarded.
StripeResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: