caelum0x a67af8af3c fix(mint): don't drop Google Play purchases on a transient Developer API lookup failure
verify_webhook's RTDN re-confirmation call mapped EVERY lookup() failure
(network error, Google-side 5xx/429, a bad OAuth2 exchange -- all surfaced as
RampError::ProviderUnavailable) into WebhookError::Ignored. mint-server's
webhook dispatch acknowledges Ignored with 200, so Pub/Sub never redelivers:
a real paid purchase hitting a transient Play Developer API hiccup during
re-confirmation was silently and permanently dropped, never minted.

Distinguish ProviderUnavailable (transient, retryable) from the other
RampError variants (DepositNotFound/NotConfirmed -- a definitive non-paid
answer, correctly Ignored) by mapping it to WebhookError::Malformed instead,
which the same dispatch answers 503 so Pub/Sub retries until the lookup
succeeds. TDD: added transient_lookup_failure_is_retried_not_dropped (red on
the old mapping, green after), full mint-payments + mint workspace suites
(all 100+ tests, 20 crates) still pass with zero regressions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-21 18:32:04 +03:00
..