Commit graph

1 commit

Author SHA1 Message Date
Anthony Ettinger
a5db866624 fix(coinpay): settle paid Hire Us checkouts from the signed webhook
The CoinPay webhook only logged. It now verifies X-CoinPay-Signature
(t=,v1= over t.rawBody), reads the nested payload (data.payment_id, not
the top-level event id), and records a confirmed/forwarded Hire Us
payment once in hire_us_payments (payment_id primary key), mapped to the
buyer via metadata.account_id/email. Unknown or pending payments are a
200 no-op. Hire Us checkout now sends property, account_id (CoinPay
session) and email in metadata.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 12:02:00 +00:00