Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithStripeReference

Method
📦 CommunityToolkit.Aspire.Hosting.Stripe v13.6.1
func (ResourceWithEnvironment) WithStripeReference(
source StripeResource,
options ...*WithStripeReferenceOptions,
) ResourceWithEnvironment

Signature

methodWithStripeReferencebuilder
Adds a reference to a Stripe CLI resource for accessing its webhook signing secret.
WithStripeReference(
source StripeResource,
options ...*WithStripeReferenceOptions,
) ResourceWithEnvironment
sourceStripeResourceThe Stripe CLI resource to reference.
options...*WithStripeReferenceOptionsOptional settings, described under Options.

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

WebhookSigningSecretEnvVarName*stringOptional environment variable name to use for the webhook signing secret. Defaults to "STRIPE_WEBHOOK_SECRET".
ResourceWithEnvironment

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types:

typeCSharpAppResource
typeContainerResource
typeDotnetToolResource
typeExecutableResource
typeProjectResource
typeStripeResource