Payment Gateways
Set Gateway Webhook Secret
Store the webhook signing secret on the workspace’s active gateway connection without changing its id or per-connection webhook URL.
PUT
Set the webhook signing secret on the active connection
This is the second half of a two-step connect: Connect a Gateway
with the API keys, create the webhook endpoint in the gateway console using
the per-connection URL, then paste the secret it issues here.
A bare status object, not a
provider
accepts stripe, razorpay, or gocardless — the same set as
Connect a Gateway, even though the
playground’s provider list shows only the first two. The connection
id — and therefore its webhook URL — is unchanged. The secret is sealed at
rest and never returned; List Gateway Connections
only reports whether one is set. webhook_secret is not checked for
presence: an empty string is accepted and clears the stored secret.
Response
{data} envelope.
Errors
Errors use the standard envelope — see Errors.