withListen
Method
interface StripeResource { // ... omitted for brevity withListen( forwardTo: IResourceWithEndpoints, webhookPath?: string, events?: string[]): StripeResource;}Signature
method
withListenbuilderConfigures the Stripe CLI to listen for webhooks and forward them to the specified URL expression.
withListen( forwardTo: IResourceWithEndpoints, webhookPath?: string, events?: string[]): StripeResourceParameters
forwardToIResourceWithEndpointswebhookPathstringoptional= /webhooks/stripeeventsstring[]optionalReturns
StripeResourceApplies to
This method applies to the following types: