Promo Code System & Cloudflare Turnstile CAPTCHA for a Next.js E-commerce Site
Worldwide
Built two features into an existing Next.js e-commerce platform: an admin-managed discount code system and site-wide spam protection. The promo code system lets the store owner create and manage discount codes from the admin panel — percentage or fixed-amount discounts, minimum-spend thresholds, maximum-discount caps, expiry dates, and usage limits, with live redemption tracking. At checkout, customers enter a code and the discount is applied instantly with the total updating in real time. Every code is re-validated on the server before an order is placed, and card payments (via Stripe) are automatically charged the correct discounted amount, so totals can't be tampered with from the browser. For spam protection, Cloudflare Turnstile was integrated across every public form on the site — contact, quote requests, chatbot, homepage popup, product enquiries, registration, and the cart — with server-side token verification on all form-handling endpoints. It was implemented with a safe, phased rollout: verification runs in monitor mode first and only starts blocking once enforced, so no legitimate form is ever broken during activation. The existing hCaptcha setup on the homepage form was migrated over to keep everything on one system. Delivered clean, type-safe, production-ready code that matches the existing architecture, with no changes to the current UI or functionality beyond the new features.
$150.00
Fixed-price- ExpertExperience Level
- Remote Job
- One-time projectProject Type
Skills and Expertise
Activity on this job
- Proposals:20 to 50
- Last viewed by client:4 hours ago
- Hires:1
- Interviewing:0
- Invites sent:0
- Unanswered invites:0
About the client
- AUSPaddington4:01 PM
- $660 total spent3 hires, 1 active
Explore similar jobs on Upwork
How it works
Create your free profileHighlight your skills and experience, show your portfolio, and set your ideal pay rate.
Work the way you wantApply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
Get paid securelyFrom contract to payment, we help you work safely and get paid securely.
About Upwork
- 4.9/5(Average rating of clients by professionals)
- G2 2021#1 freelance platform
- 49,000+Signed contract every week
- $2.3BFreelancers earned on Upwork in 2020
Find the best freelance jobs
Growing your career is as easy as creating a free profile and finding work like this that fits your skills.
Trusted by