# StripeResource

- Module: [CommunityToolkit.Aspire.Hosting.Stripe](/reference/api/go/communitytoolkit.aspire.hosting.stripe.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Represents a Stripe CLI container resource for local webhook forwarding and testing.

## Definition

```go
type StripeResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `WebhookSigningSecret`: `*string` `get/set` -- Gets the webhook signing secret retrieved from the Stripe CLI.

## Methods

- [WithApiKey](/reference/api/go/communitytoolkit.aspire.hosting.stripe/striperesource/withapikey.md) -- `method` -- Configures the Stripe CLI to use a specific API key from a parameter.
  ```go
  WithApiKey(apiKey ParameterResource) StripeResource
  ```
- [WithListen](/reference/api/go/communitytoolkit.aspire.hosting.stripe/striperesource/withlisten.md) -- `method` -- Configures the Stripe CLI to listen for webhooks and forward them to the specified URL expression.
  ```go
  WithListen(forwardTo ResourceWithEndpoints, options ...*WithListenOptions) StripeResource
  ```
- [WithListenExternalService](/reference/api/go/communitytoolkit.aspire.hosting.stripe/striperesource/withlistenexternalservice.md) -- `method` -- Configures the Stripe CLI to listen for webhooks and forward them to the specified URL expression.
  ```go
  WithListenExternalService(forwardTo ExternalServiceResource, options ...*WithListenExternalServiceOptions) StripeResource
  ```
