Partner-managed Programs only:This page applies to Partner-managed Programs.
Registering an authorization webhook
To gain real-time control over transaction approvals, register an authorization webhook in your developer dashboard. When a user initiates a transaction, Rain sends atransaction.requested webhook containing:
- User details
- Card information
- Merchant details
- Transaction amount and currency
2xx status approves the authorization, and any other status declines it, optionally with a rejectionCode in the body.
Timeouts and defaults
Rain sends the webhook once, with no retry, and waits 1.5 seconds for your response โ the card networks bound the whole authorization round trip, so respond from a fast path, not a queue. What happens without a timely decision:- Timeout: Rain declines the authorization with reason
webhook_timeoutby default. Rain can configure your program to approve on timeout instead; ask your Rain contact if you prefer fail-open. - Any other webhook failure (no webhook registered, unreachable URL, malformed response): Rain declines the authorization.