All checks were successful
Build and Push Docker Images / docker (push) Successful in 51s
The backend was using a hardcoded PORTFOLIO_PRICING map that only had prices for portfolios 1, 2, 3 (defaulting to $18/ton for others). When Wren API returns Portfolio ID 37 at $237/ton, the backend was calculating with $18/ton instead, causing massive pricing discrepancies. Changes: - Frontend now passes pricePerTon (from Wren API) in checkout request - Backend uses the received pricePerTon instead of lookup table - Removed dependency on hardcoded PORTFOLIO_PRICING map - Added validation for pricePerTon parameter Example fix: - Before: 0.03 tons × $18/ton = $0.54 (wrong!) - After: 0.03 tons × $237/ton = $7.11 (correct!) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>