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)
| 510 | // without a billing service. The same internal_api_secret is reused |
| 511 | // for the signature. |
| 512 | func (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. |
no outgoing calls