Promo Code System & Cloudflare Turnstile CAPTCHA for a Next.js E-commerce Site

Posted 5 hours ago

Worldwide

Summary

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
  • Expert
    Experience Level
  • Remote Job
  • One-time project
    Project Type
Skills and Expertise
Mandatory skills
Next.js
Node.js
Redux
Tailwind CSS
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
Member since Jun 4, 2026
  • AUS
    Paddington4:01 PM
  • $660 total spent
    3 hires, 1 active

Explore similar jobs on Upwork

Marketplace B2BHourly‐ Posted 3 weeks ago
Web Development
SQL
NoSQL Database
Node.js
NestJS
TypeScript
JavaScript
PostgreSQL
MongoDB
Tailwind CSS
Docker
DevOps
ExpressJS
Next.js
HTML5
CSS 3
Engineering & Architecture
Automation
n8n
Artificial Intelligence
Telegram API
Telegram
JavaScript
API
Android
Smartphone
iOS
PHP

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers 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

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo