refactor(billing): consume dunite-stripe-core (DEV-514) #491
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/DEV-514-consume-stripe-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
First consumer of the shared
dunite-stripe-corecrate (DEV-514, under the DEV-495 epic). Replaces mokosh's local Stripe primitives with the shared, framework-agnostic crate so a8n-tools, bunyip, and mokosh stop maintaining three copies.Changes
dunite-stripe-core(pinned by git rev to psa-systems/dunite; see the companion dunite PR #27). Add.cargo/config.tomlwithgit-fetch-with-cliso CI authenticates against the private repo (mirrors bunyip).provider/stripe.rs: drop the localverify_stripe_signature+hex_encode,to_minor_units/from_minor_units, and the manual event-envelope parse; call the crate'sverify_webhook_signature(constant-time),to/from_minor_units, andparse_event_envelopeinstead. mokosh keeps its owndata.object -> PaymentEventmapping.idfield Stripe always sends.Testing
just checkclean (clippy-D warnings, fmt, gates).pms711_stripe_pay_nowintegration suite (paid + idempotent redelivery, partial refund, abandoned no-op, bad-signature 401) all pass in-container against the real webhook route - confirming the swapped constant-time verifier behaves identically.Merge order
Depends on dunite PR #27. Once dunite lands, re-pin the rev to the merged commit before merging this. bunyip and a8n-tools adoption follow under DEV-514 (a8n's adoption fixes its non-constant-time verifier).
🤖 Generated with Claude Code
https://claude.ai/code/session_01QLd9c7niucrqx68v4AxVss