Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Route ¶
func Route(router router.Router, args ...gin.HandlerFunc)
Route registers Mercury webhook endpoint.
func Webhook ¶
Webhook handles Mercury bank webhook POSTs.
POST /api/v1/mercury/webhook
On transaction.created with direction="credit":
- Verify HMAC signature via Mercury-Signature header
- Parse reference from externalMemo or note (format: "orgName:orderId")
- Look up the order in the org namespace
- Mark order as paid if it is pending
Returns 200 OK to Mercury regardless of processing outcome.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.