|
All checks were successful
build-and-release / build (push) Successful in 1m41s
Adds an optional coupon code field (uppercase, with Apply button and confirmation tick) to the checkout modal, visible only for AI credit package purchases. The code is passed as coupon_code to POST /api/ai-credits/order; the backend applies the discount and the discounted amount flows through to PayU. CheckoutState gains couponCode + couponApplied fields. All open/close reset paths clear them. Retry from error preserves the entered code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| data | ||
| hooks | ||
| lib | ||
| routes | ||
| stories | ||
| test | ||
| app.css | ||
| app.tsx | ||
| entry-client.tsx | ||
| entry-server.tsx | ||
| global.d.ts | ||
| middleware.ts | ||