withStripeReference
Method
interface ContainerResource { // ... omitted for brevity withStripeReference( source: StripeResource, webhookSigningSecretEnvVarName?: string): IResourceWithEnvironment;}Signature
method
withStripeReference builderAdds a reference to a Stripe CLI resource for accessing its webhook signing secret.
withStripeReference( source: StripeResource, webhookSigningSecretEnvVarName?: string): IResourceWithEnvironmentParameters
sourceStripeResource The Stripe CLI resource to reference.webhookSigningSecretEnvVarName stringoptional= STRIPE_WEBHOOK_SECRETOptional environment variable name to use for the webhook signing secret. Defaults to "STRIPE_WEBHOOK_SECRET".Returns
IResourceWithEnvironment Applies to
This method applies to the following types: