Intent-Code Divergence
Medium
- Confidence
- 92% confidence
- Finding
- The documentation says credits can be derived from Stripe product metadata or line items, but the webhook implementation only trusts session metadata and never retrieves line items. This mismatch can cause purchases to complete without credits being granted or can incentivize unsafe future patches where developers parse unverified fields inconsistently, leading to billing/entitlement integrity issues.
