StripeResource.WithListen
Method
type StripeResource interface { // ... omitted for brevity WithListen( forwardTo ResourceWithEndpoints, options ...*WithListenOptions, ) StripeResource}Signature
method
WithListen builderConfigures the Stripe CLI to listen for webhooks and forward them to the specified URL expression.
WithListen( forwardTo ResourceWithEndpoints, options ...*WithListenOptions,) StripeResourceParameters
forwardTo ResourceWithEndpoints The resource to forward webhooks to.options...*WithListenOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithListenOptions argument.
WebhookPath *stringThe path to the webhook endpoint.Events[]string Optional collection of specific webhook events to listen for (e.g., ["payment_intent.created", "charge.succeeded"]). If not specified, all events are forwarded.Returns
StripeResource A reference to the I.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: