WithListen
Method
func (StripeResource) WithListen( forwardTo ResourceWithEndpoints, options ...*WithListenOptions,) StripeResourceSignature
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().
Applies to
This method applies to the following types: