MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / SetBillingHookURL

Method SetBillingHookURL

internal/agent/api.go:512–512  ·  view source on GitHub ↗

SetBillingHookURL wires in the URL of an external billing service's user-event endpoint. When the user deletes their account, the API HMAC-signs a JSON payload and POSTs it there so the billing service can cancel the corresponding Stripe subscription. When empty (the self-host default), no hook fire

(s string)

Source from the content-addressed store, hash-verified

510// without a billing service. The same internal_api_secret is reused
511// for the signature.
512func (a *API) SetBillingHookURL(s string) { a.billingHookURL = s }
513
514// SetDomainTeardownHook wires the per-domain SES deprovision enqueue run in the
515// account-delete transaction (decision 4 / Slice 4). Optional.

Callers 2

mainFunction · 0.95

Calls

no outgoing calls

Tested by 1