StripeResource
Represents a Stripe CLI container resource for local webhook forwarding and testing.
type StripeResource interface { IComputeResource Resource ResourceWithArgs ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}Properties
WebhookSigningSecret *stringget · setWebhookSigningSecret() (*string, error)SetWebhookSigningSecret(value *string) StripeResourceMethods
WithApiKey(apiKey ParameterResource) StripeResourceParameters
apiKey ParameterResource The parameter containing the Stripe API key to use.Returns
StripeResource A reference to the I.
Returns a handle; failures surface later via Err().
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().
WithListenExternalService( forwardTo ExternalServiceResource, options ...*WithListenExternalServiceOptions,) StripeResourceParameters
forwardTo ExternalServiceResource The resource to forward webhooks to.options...*WithListenExternalServiceOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithListenExternalServiceOptions 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().