<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Allen Jones</title>
    <description>The latest articles on DEV Community by Allen Jones (@allenarduino).</description>
    <link>https://dev.to/allenarduino</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F679555%2F89b03aae-198c-48b1-acb5-9637c4f5ef61.jpeg</url>
      <title>DEV Community: Allen Jones</title>
      <link>https://dev.to/allenarduino</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/allenarduino"/>
    <language>en</language>
    <item>
      <title>Introducing Shoprivet: An E-commerce Platform for Developers and Businesses</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 27 Nov 2026 22:52:00 +0000</pubDate>
      <link>https://dev.to/allenarduino/introducing-shoprivet-an-e-commerce-platform-for-developers-and-businesses-3m68</link>
      <guid>https://dev.to/allenarduino/introducing-shoprivet-an-e-commerce-platform-for-developers-and-businesses-3m68</guid>
      <description>&lt;p&gt;I'm excited to introduce &lt;a href="https://shoprivet.io/" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt;, a managed e-commerce platform that makes it easier for businesses and developers to sell online without being restricted by how they build their websites.&lt;/p&gt;

&lt;p&gt;As a software engineer, I've always been interested in building tools that simplify development and remove unnecessary technical complexity.&lt;/p&gt;

&lt;p&gt;One problem I've noticed with e-commerce is that adding shopping functionality to a website can quickly become more complicated than building the website itself.&lt;/p&gt;

&lt;p&gt;You need to manage products, shopping carts, inventory, checkout, payments, orders, and much more.&lt;/p&gt;

&lt;p&gt;For businesses that already have a website, the process can sometimes mean migrating to an entirely different platform or rebuilding parts of their existing website.&lt;/p&gt;

&lt;p&gt;I wanted to create a more flexible solution.&lt;/p&gt;

&lt;p&gt;That's why I built &lt;strong&gt;Shoprivet&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" alt="Shoprivet ecommerce platform" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Shoprivet Exists
&lt;/h2&gt;

&lt;p&gt;Imagine you've spent weeks building a beautiful website for a business.&lt;/p&gt;

&lt;p&gt;The design is complete, the website is live, and everything works perfectly.&lt;/p&gt;

&lt;p&gt;Then the business decides it wants to start selling products online.&lt;/p&gt;

&lt;p&gt;Suddenly, you need to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build a product management system&lt;/li&gt;
&lt;li&gt;Implement a shopping cart&lt;/li&gt;
&lt;li&gt;Manage product inventory&lt;/li&gt;
&lt;li&gt;Integrate payment gateways&lt;/li&gt;
&lt;li&gt;Build a checkout experience&lt;/li&gt;
&lt;li&gt;Handle payment confirmations&lt;/li&gt;
&lt;li&gt;Manage customer orders&lt;/li&gt;
&lt;li&gt;Maintain the underlying backend infrastructure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Alternatively, you might have to migrate the website to another e-commerce platform.&lt;/p&gt;

&lt;p&gt;But why should adding ecommerce functionality require rebuilding an entire website?&lt;/p&gt;

&lt;p&gt;I believe developers should have the freedom to use their preferred technologies, and businesses should be able to keep the websites they've already invested in.&lt;/p&gt;

&lt;p&gt;Shoprivet was built around that idea.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Shoprivet?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt; is a managed ecommerce platform that allows businesses, developers, and web design agencies to build online stores, embed shopping carts and checkout into existing websites, and create custom ecommerce applications using a REST API.&lt;/p&gt;

&lt;p&gt;Shoprivet manages the underlying commerce infrastructure while giving you control over your storefront and customer experience.&lt;/p&gt;

&lt;p&gt;Instead of forcing everyone to follow the same approach, Shoprivet provides three different ways to sell online.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three Ways to Sell. One Commerce Backend.
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Build a Complete Online Store
&lt;/h3&gt;

&lt;p&gt;If you're starting a business or don't already have a website, Shoprivet includes a visual storefront builder.&lt;/p&gt;

&lt;p&gt;You can choose from customizable templates, arrange page sections, add product collections, customize your design, and publish your online store without writing code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi27l6omfhqb8ae2od4wg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi27l6omfhqb8ae2od4wg.png" alt="Shoprivet storefront templates" width="799" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sqix7iduv0vswtsodxc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sqix7iduv0vswtsodxc.png" alt="Shoprivet visual storefront builder" width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your storefront is connected to your product catalog, shopping cart, checkout, inventory, and order management dashboard.&lt;/p&gt;

&lt;p&gt;You can publish your store on a Shoprivet subdomain or connect your own domain on supported paid plans.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/online-store-builder" rel="noopener noreferrer"&gt;Explore the online store builder&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Add Ecommerce to Your Existing Website
&lt;/h3&gt;

&lt;p&gt;Already have a website? You don't need to rebuild it.&lt;/p&gt;

&lt;p&gt;Shoprivet provides embeddable product catalogs, shopping carts, and checkout that can be integrated into your existing website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz7c8vrj1fkkokaa0h71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz7c8vrj1fkkokaa0h71.png" alt="Shoprivet embedded ecommerce experience" width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Simply create your store, add your products, customize your widget, and copy the generated embed code.&lt;/p&gt;

&lt;p&gt;A basic integration looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;data-shoprivet&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"your-store-slug"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt;
  &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://api.shoprivet.io/widget.js"&lt;/span&gt;
  &lt;span class="na"&gt;async&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the actual embed code generated from your Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;You can also customize the appearance of your product catalog and shopping cart to match your existing website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrxn93c4hszvkfrlzy1a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrxn93c4hszvkfrlzy1a.png" alt="Shoprivet widget customization" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This approach works with websites that support custom HTML and JavaScript, including Webflow, Framer, WordPress, static HTML websites, React, Next.js, and websites built using AI website builders such as Lovable and Bolt.&lt;/p&gt;

&lt;p&gt;Some website builders may require a paid plan to insert custom code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/embedded-ecommerce" rel="noopener noreferrer"&gt;Explore embedded ecommerce&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Build Custom Storefronts With a REST API
&lt;/h3&gt;

&lt;p&gt;As a developer, this is one of the parts of Shoprivet I'm particularly excited about.&lt;/p&gt;

&lt;p&gt;Sometimes you want complete control over the frontend without having to build and maintain an entire ecommerce backend.&lt;/p&gt;

&lt;p&gt;Shoprivet provides public storefront endpoints and authenticated store management APIs that allow you to build your own ecommerce applications.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu84pww8iugjglsqytosb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu84pww8iugjglsqytosb.png" alt="Shoprivet developer dashboard" width="800" height="518"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, retrieving products from a published store is as simple as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.shoprivet.io/public/stores/your-store-slug/products"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Failed to fetch products"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Developers can use the API to build custom product catalogs, shopping carts, checkout experiences, and ecommerce applications using their preferred frontend technologies.&lt;/p&gt;

&lt;p&gt;Authenticated management endpoints also allow developers to manage stores, products, categories, orders, and other commerce resources programmatically.&lt;/p&gt;

&lt;p&gt;Merchant API keys must be kept securely on the server.&lt;/p&gt;

&lt;p&gt;Whether you're building with React, Next.js, Vue, Astro, or another technology, Shoprivet can handle the underlying commerce infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/docs" rel="noopener noreferrer"&gt;Read the developer documentation&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Shoprivet Offers
&lt;/h2&gt;

&lt;p&gt;Here are some of the capabilities available in Shoprivet:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Visual Storefront Builder:&lt;/strong&gt; Create and publish complete online stores using customizable templates and visual page sections.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Embeddable Product Catalogs:&lt;/strong&gt; Display products directly on your existing website.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Shopping Cart and Checkout:&lt;/strong&gt; Allow customers to add products to their carts and complete purchases.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Ecommerce REST API:&lt;/strong&gt; Build custom storefronts and manage commerce resources programmatically.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Product Management:&lt;/strong&gt; Manage product images, descriptions, prices, categories, and variants.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Inventory Management:&lt;/strong&gt; Track stock quantities and manage product availability.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Physical and Digital Products:&lt;/strong&gt; Sell physical goods or downloadable digital products.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Payment Integrations:&lt;/strong&gt; Connect supported payment providers and accept customer payments.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Order Management:&lt;/strong&gt; View customer orders, payment information, and order statuses from a centralized dashboard.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Discounts and Promotions:&lt;/strong&gt; Create discount codes and promotional offers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multi-Store Management:&lt;/strong&gt; Manage multiple online stores from one account on supported plans.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Team Collaboration:&lt;/strong&gt; Invite team members and collaborate on stores using supported plans.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Custom Domains:&lt;/strong&gt; Connect your own domain to your hosted storefront on supported paid plans.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" alt="Shoprivet product management dashboard" width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The goal is to give businesses and developers the essential tools they need to sell online without having to assemble and maintain multiple separate systems.&lt;/p&gt;




&lt;h2&gt;
  
  
  Accept Payments With Your Preferred Payment Provider
&lt;/h2&gt;

&lt;p&gt;Different businesses operate in different countries and have different payment requirements.&lt;/p&gt;

&lt;p&gt;I wanted Shoprivet to provide flexibility when it comes to accepting payments.&lt;/p&gt;

&lt;p&gt;Shoprivet currently supports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stripe&lt;/li&gt;
&lt;li&gt;PayPal&lt;/li&gt;
&lt;li&gt;Paystack&lt;/li&gt;
&lt;li&gt;Flutterwave&lt;/li&gt;
&lt;li&gt;Razorpay&lt;/li&gt;
&lt;li&gt;Cash on delivery&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" alt="Shoprivet payment integrations" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Businesses connect their own payment provider accounts, and online payments are processed through those providers.&lt;/p&gt;

&lt;p&gt;Payment provider availability depends on your country, currency, account eligibility, and subscription plan.&lt;/p&gt;

&lt;p&gt;Shoprivet does not hold shopper funds.&lt;/p&gt;




&lt;h2&gt;
  
  
  Zero Platform Transaction Fees
&lt;/h2&gt;

&lt;p&gt;Another important decision I made when building Shoprivet was to avoid charging a percentage of every sale.&lt;/p&gt;

&lt;p&gt;Shoprivet charges &lt;strong&gt;0% platform transaction fees&lt;/strong&gt; across all subscription plans.&lt;/p&gt;

&lt;p&gt;Standard processing fees from your connected payment provider still apply.&lt;/p&gt;

&lt;p&gt;I wanted businesses to have predictable platform costs as they grow, rather than paying an additional percentage of their revenue to Shoprivet.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who Is Shoprivet For?
&lt;/h2&gt;

&lt;p&gt;I built Shoprivet with several types of users in mind.&lt;/p&gt;

&lt;h3&gt;
  
  
  Business Owners
&lt;/h3&gt;

&lt;p&gt;Launch an online store or add ecommerce functionality to your existing business website without building your own backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Developers
&lt;/h3&gt;

&lt;p&gt;Build custom ecommerce applications using your preferred frontend framework while Shoprivet manages products, carts, checkout, inventory, and orders.&lt;/p&gt;

&lt;h3&gt;
  
  
  Web Design Agencies
&lt;/h3&gt;

&lt;p&gt;Add ecommerce functionality to client websites without being restricted to a particular website builder or frontend technology.&lt;/p&gt;

&lt;h3&gt;
  
  
  Digital Product Creators
&lt;/h3&gt;

&lt;p&gt;Sell ebooks, templates, design assets, and other downloadable products without developing your own digital delivery infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI Website Builder Users
&lt;/h3&gt;

&lt;p&gt;Build your website using tools such as Lovable or Bolt and connect it to managed ecommerce infrastructure instead of implementing every commerce feature from scratch.&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started With Shoprivet
&lt;/h2&gt;

&lt;p&gt;Getting started is simple.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Create a Free Account
&lt;/h3&gt;

&lt;p&gt;Visit &lt;a href="https://shoprivet.io/" rel="noopener noreferrer"&gt;shoprivet.io&lt;/a&gt; and sign up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" alt="Shoprivet registration page" width="800" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Create Your Store
&lt;/h3&gt;

&lt;p&gt;Enter your store information, select your store type, and choose your preferred currency.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" alt="Creating a store in Shoprivet" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Add Your Products
&lt;/h3&gt;

&lt;p&gt;Upload product images, enter descriptions, configure prices, and publish your products.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Configure Your Payment Methods
&lt;/h3&gt;

&lt;p&gt;Connect a supported payment provider or configure an available offline payment method.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Choose How You Want to Sell
&lt;/h3&gt;

&lt;p&gt;Build a hosted storefront, embed ecommerce into your existing website, or create a custom application using the REST API.&lt;/p&gt;

&lt;p&gt;Test your shopping experience before accepting customer orders.&lt;/p&gt;

&lt;p&gt;That's it. You can manage your products, inventory, and orders directly from your Shoprivet dashboard.&lt;/p&gt;




&lt;h2&gt;
  
  
  Start Selling for Free
&lt;/h2&gt;

&lt;p&gt;I wanted Shoprivet to be accessible to businesses and developers who are just getting started.&lt;/p&gt;

&lt;p&gt;The free plan includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1 online store&lt;/li&gt;
&lt;li&gt;Up to 25 products&lt;/li&gt;
&lt;li&gt;50 orders per month&lt;/li&gt;
&lt;li&gt;1 connected payment gateway&lt;/li&gt;
&lt;li&gt;0% platform transaction fees&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For businesses that need more resources and advanced capabilities, Shoprivet also offers Premium and Business plans.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Monthly price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Premium&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Business&lt;/td&gt;
&lt;td&gt;$39&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Standard payment processing fees still apply.&lt;/p&gt;

&lt;p&gt;You can find the complete plan details on the &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;Shoprivet pricing page&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next for Shoprivet?
&lt;/h2&gt;

&lt;p&gt;This is just the beginning.&lt;/p&gt;

&lt;p&gt;My goal is to continue improving Shoprivet based on the needs of real businesses, developers, and agencies.&lt;/p&gt;

&lt;p&gt;I'm particularly interested in making ecommerce integrations easier, improving the developer experience, expanding storefront customization, and helping businesses manage their online stores more efficiently.&lt;/p&gt;

&lt;p&gt;I'd love to hear from developers who have experienced the challenges of adding ecommerce to existing websites, as well as business owners looking for a more flexible way to sell online.&lt;/p&gt;

&lt;p&gt;Your feedback, suggestions, and feature requests are welcome.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try Shoprivet Today
&lt;/h2&gt;

&lt;p&gt;If you're building an online store, adding ecommerce to an existing website, or developing a custom ecommerce application, I'd love for you to give Shoprivet a try.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Official website:&lt;/strong&gt; &lt;a href="https://shoprivet.io/" rel="noopener noreferrer"&gt;shoprivet.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Developer documentation:&lt;/strong&gt; &lt;a href="https://shoprivet.io/docs" rel="noopener noreferrer"&gt;shoprivet.io/docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storefront templates:&lt;/strong&gt; &lt;a href="https://shoprivet.io/templates" rel="noopener noreferrer"&gt;shoprivet.io/templates&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pricing:&lt;/strong&gt; &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;shoprivet.io/pricing&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;Create your free Shoprivet account&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Building an online store shouldn't mean giving up control over your website or spending weeks developing ecommerce infrastructure.&lt;/p&gt;

&lt;p&gt;With Shoprivet, you can build a complete online store, add shopping carts and checkout to an existing website, or create a custom storefront using your preferred technologies.&lt;/p&gt;

&lt;p&gt;One ecommerce platform. Three ways to sell.&lt;/p&gt;

&lt;p&gt;I'm excited to see what businesses and developers build with Shoprivet.&lt;/p&gt;

&lt;p&gt;Thank you for being part of the journey.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Allen Jones&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Founder, &lt;a href="https://shoprivet.io/" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ecommerce</category>
      <category>shoppingcart</category>
      <category>cartapi</category>
    </item>
    <item>
      <title>7 Best Ecwid Alternatives in 2026 (Free and Paid Options)</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 27 Nov 2026 12:32:09 +0000</pubDate>
      <link>https://dev.to/allenarduino/7-best-ecwid-alternatives-in-2026-free-and-paid-options-4b0n</link>
      <guid>https://dev.to/allenarduino/7-best-ecwid-alternatives-in-2026-free-and-paid-options-4b0n</guid>
      <description>&lt;p&gt;Ecwid has been a popular ecommerce solution for businesses that want to sell products online without rebuilding their existing websites.&lt;/p&gt;

&lt;p&gt;Instead of moving your entire website to a traditional ecommerce platform, you can add a product catalog, shopping cart, and checkout to the website you already have.&lt;/p&gt;

&lt;p&gt;But Ecwid isn't the only platform that offers this flexibility.&lt;/p&gt;

&lt;p&gt;With changes in subscription pricing, evolving business requirements, and the growing popularity of custom-built and AI-generated websites, you might be looking for an alternative that better fits your needs.&lt;/p&gt;

&lt;p&gt;Maybe you want to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start selling products without paying a monthly subscription.&lt;/li&gt;
&lt;li&gt;Add a shopping cart to an existing website.&lt;/li&gt;
&lt;li&gt;Build a standalone online store.&lt;/li&gt;
&lt;li&gt;Accept payments through your preferred payment gateway.&lt;/li&gt;
&lt;li&gt;Create a custom ecommerce application using a REST API.&lt;/li&gt;
&lt;li&gt;Manage multiple client stores from one account.&lt;/li&gt;
&lt;li&gt;Avoid additional platform transaction fees.&lt;/li&gt;
&lt;li&gt;Have more control over your storefront design.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this article, we'll compare seven Ecwid alternatives, including their pricing, ecommerce capabilities, developer tools, and limitations.&lt;/p&gt;

&lt;p&gt;Whether you're a small business owner, software developer, content creator, or web design agency, there's an option worth exploring.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Look for an Ecwid Alternative in 2026?
&lt;/h2&gt;

&lt;p&gt;Ecwid remains a capable ecommerce platform. It provides website integrations, a hosted online store, inventory management, payment integrations, and multichannel selling.&lt;/p&gt;

&lt;p&gt;However, there are several reasons why businesses might consider other options.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Changes to Ecwid's Pricing
&lt;/h3&gt;

&lt;p&gt;Ecwid introduced updated pricing for its Venture, Business, and Unlimited plans effective March 2, 2026.&lt;/p&gt;

&lt;p&gt;The updated USD pricing is:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Monthly billing&lt;/th&gt;
&lt;th&gt;Monthly equivalent when billed annually&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Venture&lt;/td&gt;
&lt;td&gt;$35&lt;/td&gt;
&lt;td&gt;$29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Business&lt;/td&gt;
&lt;td&gt;$65&lt;/td&gt;
&lt;td&gt;$49&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;td&gt;$149&lt;/td&gt;
&lt;td&gt;$119&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Ecwid also offers a paid Starter plan for businesses selling up to 10 products. Its pricing was not changed by this particular update.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://support.ecwid.com/hc/en-us/articles/25122701806108-Changes-to-the-Ecwid-plan-pricing-after-March-2-2026" rel="noopener noreferrer"&gt;Ecwid's official 2026 pricing announcement&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For an established ecommerce business, these subscription costs may be reasonable.&lt;/p&gt;

&lt;p&gt;But for a small business that only sells a handful of products every month, paying $35 or $65 before processing a single transaction can be a significant consideration.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. You Want a Free Plan That Allows Real Sales
&lt;/h3&gt;

&lt;p&gt;Ecwid currently offers four paid subscription tiers for new customers.&lt;/p&gt;

&lt;p&gt;If you're experimenting with a business idea, launching your first product, or adding ecommerce functionality to a client's website, you may prefer a platform that lets you start selling before committing to a paid subscription.&lt;/p&gt;

&lt;p&gt;There is an important distinction between:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A permanent free plan that supports live sales.&lt;/li&gt;
&lt;li&gt;A free trial that expires.&lt;/li&gt;
&lt;li&gt;A free development environment that cannot accept live payments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Not every ecommerce platform advertising a free signup offers a permanent free selling plan.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. You Need More Flexibility as a Developer
&lt;/h3&gt;

&lt;p&gt;Modern websites are built using many different technologies.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next.js.&lt;/li&gt;
&lt;li&gt;React.&lt;/li&gt;
&lt;li&gt;Vue.&lt;/li&gt;
&lt;li&gt;Astro.&lt;/li&gt;
&lt;li&gt;Static HTML and JavaScript.&lt;/li&gt;
&lt;li&gt;Webflow.&lt;/li&gt;
&lt;li&gt;Framer.&lt;/li&gt;
&lt;li&gt;WordPress.&lt;/li&gt;
&lt;li&gt;AI website builders such as Lovable and Bolt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sometimes, you don't want the commerce platform to determine how your frontend looks or behaves.&lt;/p&gt;

&lt;p&gt;You simply need a backend that handles product data, inventory, shopping carts, checkout, payments, and orders.&lt;/p&gt;

&lt;p&gt;Ecwid provides developer APIs, including REST API access on Venture and higher plans.&lt;/p&gt;

&lt;p&gt;However, it is worth comparing other platforms based on their API architecture, documentation, authentication requirements, and pricing.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. You Want to Keep Your Existing Website
&lt;/h3&gt;

&lt;p&gt;Suppose you've already invested time and money into building a professional website for your business.&lt;/p&gt;

&lt;p&gt;The design is exactly how you want it. Your pages are indexed by search engines. Your customers recognize your brand.&lt;/p&gt;

&lt;p&gt;Now you want to start selling products.&lt;/p&gt;

&lt;p&gt;Rebuilding the entire website just to introduce ecommerce functionality may not be necessary.&lt;/p&gt;

&lt;p&gt;Platforms providing embeddable product catalogs and shopping carts allow you to retain your existing website while connecting it to a separate commerce system.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. You Need Specific Payment Gateway Integrations
&lt;/h3&gt;

&lt;p&gt;Payment availability varies between countries and businesses.&lt;/p&gt;

&lt;p&gt;Some merchants prefer Stripe or PayPal.&lt;/p&gt;

&lt;p&gt;Others may need Paystack, Flutterwave, Razorpay, or another regional payment provider.&lt;/p&gt;

&lt;p&gt;Before choosing an ecommerce platform, verify that it supports your preferred payment gateway, business location, settlement currency, and merchant account requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 7 Best Ecwid Alternatives at a Glance
&lt;/h2&gt;

&lt;p&gt;Here's a quick comparison before we explore each platform in more detail.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;th&gt;Free selling plan&lt;/th&gt;
&lt;th&gt;Starting paid price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Shoprivet&lt;/td&gt;
&lt;td&gt;Embedded ecommerce, hosted stores, and custom API integrations&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;$15/month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shoprocket&lt;/td&gt;
&lt;td&gt;Adding ecommerce to existing websites&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;$29/month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Snipcart&lt;/td&gt;
&lt;td&gt;Developers building custom websites&lt;/td&gt;
&lt;td&gt;No, free testing only&lt;/td&gt;
&lt;td&gt;$20/month minimum model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shopify&lt;/td&gt;
&lt;td&gt;Full-scale ecommerce businesses&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;$29/month, billed annually for Basic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Foxy&lt;/td&gt;
&lt;td&gt;Custom checkout and subscription-based businesses&lt;/td&gt;
&lt;td&gt;No, free development trial&lt;/td&gt;
&lt;td&gt;$30/month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WooCommerce&lt;/td&gt;
&lt;td&gt;WordPress websites and self-hosted stores&lt;/td&gt;
&lt;td&gt;Free core software&lt;/td&gt;
&lt;td&gt;Hosting and extensions vary&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sellfy&lt;/td&gt;
&lt;td&gt;Creators, digital products, and merchandise&lt;/td&gt;
&lt;td&gt;No, free trial&lt;/td&gt;
&lt;td&gt;$29/month&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Pricing is in USD and reflects the information available in November 2026. Promotional offers, taxes, regional prices, and payment processing fees may vary.&lt;/p&gt;

&lt;p&gt;A free software download, such as WooCommerce, does not necessarily mean that operating the complete store is free.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Shoprivet: Best for Embedded Ecommerce, Hosted Stores, and Custom Development
&lt;/h2&gt;

&lt;p&gt;Website: &lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;shoprivet.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" alt="Shoprivet ecommerce platform homepage" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shoprivet is an ecommerce platform that allows businesses and developers to sell products through an existing website, a hosted online store, or a completely custom application.&lt;/p&gt;

&lt;p&gt;Disclosure: I'm the developer behind Shoprivet. I've included it in this comparison because its approach is directly relevant to businesses looking for alternatives to Ecwid.&lt;/p&gt;

&lt;p&gt;Rather than requiring every merchant to use the same storefront architecture, Shoprivet provides three different ways to build a shopping experience.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 1: Add Ecommerce to Your Existing Website
&lt;/h3&gt;

&lt;p&gt;If you already have a website, you can create a product catalog widget and embed it into your existing pages.&lt;/p&gt;

&lt;p&gt;This is particularly useful for websites built with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Webflow.&lt;/li&gt;
&lt;li&gt;Framer.&lt;/li&gt;
&lt;li&gt;WordPress.&lt;/li&gt;
&lt;li&gt;Squarespace.&lt;/li&gt;
&lt;li&gt;HTML and JavaScript.&lt;/li&gt;
&lt;li&gt;React.&lt;/li&gt;
&lt;li&gt;Next.js.&lt;/li&gt;
&lt;li&gt;Astro.&lt;/li&gt;
&lt;li&gt;Vue.&lt;/li&gt;
&lt;li&gt;AI website builders.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The website must support the custom HTML and JavaScript required by the widget.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz7c8vrj1fkkokaa0h71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz7c8vrj1fkkokaa0h71.png" alt="An example of a Shoprivet product catalog embedded into an existing website" width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The catalog provides a customer-facing interface for browsing products and making purchases.&lt;/p&gt;

&lt;p&gt;Meanwhile, the merchant manages product information, pricing, inventory, payment configuration, and orders through Shoprivet.&lt;/p&gt;

&lt;p&gt;You don't need to move your existing website to another hosting provider.&lt;/p&gt;

&lt;p&gt;You also don't need to build a separate shopping cart backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Customize the Embedded Product Catalog
&lt;/h3&gt;

&lt;p&gt;Shoprivet includes a visual catalog editor that allows you to configure the shopping experience before embedding it into your website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrxn93c4hszvkfrlzy1a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrxn93c4hszvkfrlzy1a.png" alt="Visual product catalog editor in Shoprivet" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can configure available options for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product layouts.&lt;/li&gt;
&lt;li&gt;Product columns.&lt;/li&gt;
&lt;li&gt;Product selection.&lt;/li&gt;
&lt;li&gt;Product filters.&lt;/li&gt;
&lt;li&gt;Button appearance.&lt;/li&gt;
&lt;li&gt;Shopping cart design.&lt;/li&gt;
&lt;li&gt;Mobile presentation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a minimalist fashion website may need a different catalog appearance from a furniture store or a digital template marketplace.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qk1648i36fulvsflwo0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qk1648i36fulvsflwo0.png" alt="Configuring the product catalog design" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also configure which products appear in each catalog widget.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fir11iapam5eb4qnow3z4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fir11iapam5eb4qnow3z4.png" alt="Selecting products for a Shoprivet catalog" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is useful when you want to display different product collections across different pages of your website.&lt;/p&gt;

&lt;p&gt;For instance:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Website page&lt;/th&gt;
&lt;th&gt;Product selection&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Homepage&lt;/td&gt;
&lt;td&gt;Featured products&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shop page&lt;/td&gt;
&lt;td&gt;Entire catalog&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New arrivals&lt;/td&gt;
&lt;td&gt;Selected new products&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Accessories page&lt;/td&gt;
&lt;td&gt;Accessories collection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Promotional landing page&lt;/td&gt;
&lt;td&gt;Selected promotional products&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All these catalog widgets can use the same underlying store.&lt;/p&gt;

&lt;p&gt;The merchant doesn't need to maintain a separate product database for each page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Built-In Shopping Cart and Checkout
&lt;/h3&gt;

&lt;p&gt;Customers can add products to their cart, adjust quantities, remove items, and proceed to checkout.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkzck9qpww0eu0by4ymef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkzck9qpww0eu0by4ymef.png" alt="Shopping cart displayed on an existing website" width="800" height="593"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shoprivet also provides settings for customizing the available shopping cart appearance options.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffih7flj9nt8dem5o6g8h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffih7flj9nt8dem5o6g8h.png" alt="Shopping cart design customization in Shoprivet" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once customers are ready to purchase, they can use the checkout interface.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkww519o1f58ggqatzox3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkww519o1f58ggqatzox3.png" alt="Shoprivet customer checkout experience" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The resulting orders are managed through a dedicated commerce dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/product-catalog-widget" rel="noopener noreferrer"&gt;Explore the Shoprivet embeddable product catalog&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 2: Build a Complete Online Store Without Coding
&lt;/h3&gt;

&lt;p&gt;Not every business already has a website.&lt;/p&gt;

&lt;p&gt;Some merchants simply need a professional online store where customers can browse products and place orders.&lt;/p&gt;

&lt;p&gt;Shoprivet also provides a hosted storefront builder with customizable ecommerce templates.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi27l6omfhqb8ae2od4wg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi27l6omfhqb8ae2od4wg.png" alt="Shoprivet storefront template gallery" width="799" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Businesses can start with an available template and customize the storefront through a visual editing interface.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sqix7iduv0vswtsodxc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sqix7iduv0vswtsodxc.png" alt="Visual storefront customization in Shoprivet" width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This approach is useful for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fashion brands.&lt;/li&gt;
&lt;li&gt;Beauty and skincare businesses.&lt;/li&gt;
&lt;li&gt;Home accessories stores.&lt;/li&gt;
&lt;li&gt;Independent retailers.&lt;/li&gt;
&lt;li&gt;Small businesses launching their first ecommerce website.&lt;/li&gt;
&lt;li&gt;Creators selling downloadable products.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can configure your store's appearance, add products, connect payment methods, and publish your storefront without developing the entire website from scratch.&lt;/p&gt;

&lt;p&gt;Eligible plans also support connecting a custom domain.&lt;/p&gt;

&lt;p&gt;You don't have to configure a separate ecommerce database or server.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/templates" rel="noopener noreferrer"&gt;Explore Shoprivet storefront templates&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 3: Build a Custom Online Store Using the Developer API
&lt;/h3&gt;

&lt;p&gt;This is especially useful if you're a software engineer who wants complete control over the customer-facing application.&lt;/p&gt;

&lt;p&gt;Instead of using the visual storefront builder or prebuilt catalog widget, you can interact with Shoprivet through its REST API.&lt;/p&gt;

&lt;p&gt;For example, you could build:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Next.js fashion storefront.&lt;/li&gt;
&lt;li&gt;A React ecommerce website.&lt;/li&gt;
&lt;li&gt;A Vue product marketplace frontend.&lt;/li&gt;
&lt;li&gt;A React Native shopping application.&lt;/li&gt;
&lt;li&gt;An internal inventory management application.&lt;/li&gt;
&lt;li&gt;A custom merchant dashboard.&lt;/li&gt;
&lt;li&gt;A product synchronization service.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shoprivet handles the underlying commerce operations while you develop your own user interface.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu84pww8iugjglsqytosb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu84pww8iugjglsqytosb.png" alt="Shoprivet Developers dashboard with API key management, rate limiting, and API documentation" width="800" height="518"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Developers section provides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;API key generation and management.&lt;/li&gt;
&lt;li&gt;Configurable request rate limits.&lt;/li&gt;
&lt;li&gt;JavaScript and cURL examples.&lt;/li&gt;
&lt;li&gt;Management API documentation.&lt;/li&gt;
&lt;li&gt;Public storefront API documentation.&lt;/li&gt;
&lt;li&gt;Shopping cart and checkout examples.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shoprivet separates administrative operations from customer-facing commerce operations.&lt;/p&gt;

&lt;h4&gt;
  
  
  Authenticated Management API
&lt;/h4&gt;

&lt;p&gt;The management API provides endpoints for working with stores, products, categories, and orders.&lt;/p&gt;

&lt;p&gt;For example, retrieving a store's products from a server-side application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="sb"&gt;`https://api.shoprivet.io/v1/stores/${process.env.SHOPRIVET_STORE_ID}/products`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.SHOPRIVET_API_KEY}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nc"&gt;Accept&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Unable to retrieve products"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The merchant API key must remain in a trusted server environment.&lt;/p&gt;

&lt;p&gt;Never expose it inside browser-side JavaScript or a mobile application.&lt;/p&gt;

&lt;h4&gt;
  
  
  Public Storefront API
&lt;/h4&gt;

&lt;p&gt;For frontend applications, Shoprivet also provides public endpoints for customer-facing operations.&lt;/p&gt;

&lt;p&gt;For example, retrieving published products:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s2"&gt;"https://api.shoprivet.io/public/stores/YOUR_STORE_SLUG/products"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Unable to retrieve products"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The public storefront API also supports workflows involving:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Guest shopping carts.&lt;/li&gt;
&lt;li&gt;Adding and removing cart items.&lt;/li&gt;
&lt;li&gt;Updating quantities.&lt;/li&gt;
&lt;li&gt;Retrieving available payment methods.&lt;/li&gt;
&lt;li&gt;Initiating checkout.&lt;/li&gt;
&lt;li&gt;Authorized order retrieval.&lt;/li&gt;
&lt;li&gt;Payment confirmation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Protected cart and order operations use their own scoped credentials instead of exposing the merchant API key.&lt;/p&gt;

&lt;p&gt;This means developers can create a completely custom shopping experience while using Shoprivet as their commerce backend.&lt;/p&gt;

&lt;p&gt;For implementation details, visit the &lt;a href="https://shoprivet.io/app/dashboard/developers" rel="noopener noreferrer"&gt;Developers dashboard&lt;/a&gt; after signing in.&lt;/p&gt;

&lt;h3&gt;
  
  
  Product and Inventory Management
&lt;/h3&gt;

&lt;p&gt;Regardless of whether you use widgets, hosted storefronts, or the REST API, your products are managed through the same store dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" alt="Product management dashboard in Shoprivet" width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Businesses can manage product information such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Names and descriptions.&lt;/li&gt;
&lt;li&gt;Product photography.&lt;/li&gt;
&lt;li&gt;Selling prices.&lt;/li&gt;
&lt;li&gt;Discounted prices.&lt;/li&gt;
&lt;li&gt;Categories.&lt;/li&gt;
&lt;li&gt;Inventory quantities.&lt;/li&gt;
&lt;li&gt;Product publishing status.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fygbdip6w7ehkeoga277p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fygbdip6w7ehkeoga277p.png" alt="Product editor with inventory and pricing settings" width="799" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Product options and variants are also available on eligible paid plans.&lt;/p&gt;

&lt;p&gt;For example, a clothing business could organize products by size and color, with different prices, images, SKUs, and stock quantities for individual variants.&lt;/p&gt;

&lt;h3&gt;
  
  
  Physical and Digital Products
&lt;/h3&gt;

&lt;p&gt;Shoprivet supports stores selling physical or digital products.&lt;/p&gt;

&lt;p&gt;Physical products could include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clothing.&lt;/li&gt;
&lt;li&gt;Skincare products.&lt;/li&gt;
&lt;li&gt;Furniture.&lt;/li&gt;
&lt;li&gt;Accessories.&lt;/li&gt;
&lt;li&gt;Electronics.&lt;/li&gt;
&lt;li&gt;Handmade products.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Digital products could include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ebooks.&lt;/li&gt;
&lt;li&gt;Website templates.&lt;/li&gt;
&lt;li&gt;Design resources.&lt;/li&gt;
&lt;li&gt;Downloadable software.&lt;/li&gt;
&lt;li&gt;Educational materials.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgn5juhqzecpqpk1vp9a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgn5juhqzecpqpk1vp9a.png" alt="Selecting a product type when creating a Shoprivet store" width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Digital products can use protected file delivery rather than requiring merchants to manually email download links after every verified purchase.&lt;/p&gt;

&lt;h3&gt;
  
  
  Payment Gateway Integrations
&lt;/h3&gt;

&lt;p&gt;Shoprivet supports payment methods including:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Payment provider&lt;/th&gt;
&lt;th&gt;Suitable use case&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Stripe&lt;/td&gt;
&lt;td&gt;Eligible businesses accepting online payments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PayPal&lt;/td&gt;
&lt;td&gt;Businesses offering PayPal-supported payments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paystack&lt;/td&gt;
&lt;td&gt;Merchants in supported African markets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Flutterwave&lt;/td&gt;
&lt;td&gt;Businesses in supported regional and international markets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Razorpay&lt;/td&gt;
&lt;td&gt;Eligible merchants using Razorpay&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cash on delivery&lt;/td&gt;
&lt;td&gt;Businesses collecting payment upon delivery&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Actual availability depends on merchant eligibility, location, currency, product type, and store configuration.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" alt="Configuring payment gateways in Shoprivet" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shoprivet does not charge an additional percentage-based platform commission on customer purchases.&lt;/p&gt;

&lt;p&gt;Your connected payment provider may still apply its own processing fees.&lt;/p&gt;

&lt;p&gt;This distinction is important when comparing the actual cost of running an ecommerce store.&lt;/p&gt;

&lt;h3&gt;
  
  
  Order Management
&lt;/h3&gt;

&lt;p&gt;When customers purchase products, merchants can review their orders from the Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qsorx00roqx7lxbo4gp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qsorx00roqx7lxbo4gp.png" alt="Shoprivet order management dashboard" width="799" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Individual orders can be opened to review purchase details and manage fulfillment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisw7oozr1j4q96twu6fv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisw7oozr1j4q96twu6fv.png" alt="Viewing individual customer order details" width="800" height="489"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Order notifications can also inform merchants when customers place purchases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbjx2o3aoecauva5hn5w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbjx2o3aoecauva5hn5w.png" alt="Example of a Shoprivet order notification email" width="799" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is particularly useful for developers and agencies because clients can manage daily ecommerce operations without editing their website's source code.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shoprivet Pricing
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Free&lt;/th&gt;
&lt;th&gt;Premium&lt;/th&gt;
&lt;th&gt;Business&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Monthly price&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;$39&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stores&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Products&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monthly order allowance&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;10,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connected payment gateways&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Percentage-based platform sales commission&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Advanced features and API entitlements may depend on the selected plan.&lt;/p&gt;

&lt;p&gt;The free plan is useful for testing a business idea or launching a small catalog before upgrading.&lt;/p&gt;

&lt;p&gt;Premium is suited to growing businesses and developers who need more products, stores, and order capacity.&lt;/p&gt;

&lt;p&gt;Business is worth considering for agencies and businesses managing several ecommerce projects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;View Shoprivet pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shoprivet Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Permanent free plan.&lt;/li&gt;
&lt;li&gt;Embeddable product catalogs and shopping carts.&lt;/li&gt;
&lt;li&gt;Hosted storefront builder with customizable templates.&lt;/li&gt;
&lt;li&gt;Management and public storefront APIs.&lt;/li&gt;
&lt;li&gt;Support for physical and digital products.&lt;/li&gt;
&lt;li&gt;Regional and international payment integrations.&lt;/li&gt;
&lt;li&gt;No percentage-based platform sales commission.&lt;/li&gt;
&lt;li&gt;Multiple stores on paid plans.&lt;/li&gt;
&lt;li&gt;Centralized product, inventory, and order management.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Shoprivet Limitations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Smaller ecosystem of third-party integrations than established platforms such as Shopify.&lt;/li&gt;
&lt;li&gt;Monthly order allowances depend on the selected plan.&lt;/li&gt;
&lt;li&gt;Advanced features such as product variants require eligible paid plans.&lt;/li&gt;
&lt;li&gt;Custom API-based storefronts require development and integration testing.&lt;/li&gt;
&lt;li&gt;Businesses with specialized tax, shipping, marketplace, or POS requirements should verify feature availability before migrating.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Who Should Choose Shoprivet?
&lt;/h3&gt;

&lt;p&gt;Shoprivet is worth considering if you want to add ecommerce to an existing website, launch a hosted online store, or develop a custom storefront without maintaining your own commerce backend.&lt;/p&gt;

&lt;p&gt;It is particularly relevant to developers, freelancers, small businesses, and web design agencies that value flexibility in how their storefronts are built.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;Create a free Shoprivet account&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Shoprocket: Best for Adding Ecommerce to Existing Websites
&lt;/h2&gt;

&lt;p&gt;Website: &lt;a href="https://shoprocket.io" rel="noopener noreferrer"&gt;shoprocket.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shoprocket is one of the more direct alternatives to Ecwid because it focuses on allowing merchants to sell products through websites they already own.&lt;/p&gt;

&lt;p&gt;If you've built your website using HTML, Webflow, Framer, Squarespace, or another compatible platform, Shoprocket can provide an embedded commerce experience.&lt;/p&gt;

&lt;p&gt;It also provides hosted storefronts for businesses that don't already have a website.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shoprocket Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Embedded ecommerce widgets.&lt;/li&gt;
&lt;li&gt;Hosted online stores.&lt;/li&gt;
&lt;li&gt;Physical and digital product selling.&lt;/li&gt;
&lt;li&gt;Stock management.&lt;/li&gt;
&lt;li&gt;Product variations.&lt;/li&gt;
&lt;li&gt;REST API and developer integrations.&lt;/li&gt;
&lt;li&gt;Marketing and sales tools.&lt;/li&gt;
&lt;li&gt;Payment gateway integrations.&lt;/li&gt;
&lt;li&gt;Shipping and tax functionality.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some features, including subscriptions, wholesale functionality, marketing automation, and advanced localization, depend on the plan.&lt;/p&gt;

&lt;h3&gt;
  
  
  Developer Experience
&lt;/h3&gt;

&lt;p&gt;Shoprocket provides developer documentation covering API integrations, webhooks, SDKs, and storefront widgets.&lt;/p&gt;

&lt;p&gt;This makes it relevant to developers who need more than a simple buy button.&lt;/p&gt;

&lt;p&gt;Review its API capabilities and plan entitlements if you're planning to build a custom headless ecommerce application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developers.shoprocket.io" rel="noopener noreferrer"&gt;Shoprocket developer documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shoprocket Pricing
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Monthly billing&lt;/th&gt;
&lt;th&gt;Monthly equivalent when billed annually&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Starter&lt;/td&gt;
&lt;td&gt;$29&lt;/td&gt;
&lt;td&gt;$24.17&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Growth&lt;/td&gt;
&lt;td&gt;$49&lt;/td&gt;
&lt;td&gt;$40.83&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Business&lt;/td&gt;
&lt;td&gt;$79&lt;/td&gt;
&lt;td&gt;$65.83&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plus&lt;/td&gt;
&lt;td&gt;$199&lt;/td&gt;
&lt;td&gt;$165.83&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The free plan supports up to 10 physical products and includes an embedded selling experience and hosted storefront.&lt;/p&gt;

&lt;p&gt;Paid plans support unlimited products.&lt;/p&gt;

&lt;p&gt;Shoprocket states that its plans have no platform transaction fees or sales-volume caps. Payment processing fees remain separate.&lt;/p&gt;

&lt;p&gt;Features such as digital downloads, inventory tracking, and custom domains require a paid plan.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://shoprocket.io/pricing" rel="noopener noreferrer"&gt;Shoprocket pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shoprocket Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Free plan available for small physical-product catalogs.&lt;/li&gt;
&lt;li&gt;Commerce functionality can be integrated into an existing website.&lt;/li&gt;
&lt;li&gt;Hosted storefront option.&lt;/li&gt;
&lt;li&gt;Developer tools and API integrations.&lt;/li&gt;
&lt;li&gt;No percentage-based platform transaction fee.&lt;/li&gt;
&lt;li&gt;No monthly sales or order cap advertised on its plans.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Shoprocket Limitations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Free plan is limited to 10 physical products.&lt;/li&gt;
&lt;li&gt;Advanced marketing and commerce features may require higher subscription tiers.&lt;/li&gt;
&lt;li&gt;Businesses requiring digital products or inventory tracking need to evaluate paid plans.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Who Should Choose Shoprocket?
&lt;/h3&gt;

&lt;p&gt;Shoprocket is a strong option for merchants looking to introduce ecommerce functionality into an existing website, especially when unlimited sales volume is important.&lt;/p&gt;

&lt;p&gt;It is also one of the closest alternatives to consider if you're already familiar with Ecwid's embedded ecommerce approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Snipcart: Best for Developers and Custom-Built Websites
&lt;/h2&gt;

&lt;p&gt;Website: &lt;a href="https://snipcart.com" rel="noopener noreferrer"&gt;snipcart.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Snipcart takes a developer-oriented approach to ecommerce.&lt;/p&gt;

&lt;p&gt;Instead of providing a traditional hosted website builder, it allows developers to integrate shopping cart functionality into their own websites.&lt;/p&gt;

&lt;p&gt;This is especially useful when you've already designed your product pages and want to make them purchasable.&lt;/p&gt;

&lt;p&gt;For example, a developer might create a product page using HTML or a frontend framework and then integrate Snipcart's shopping cart.&lt;/p&gt;

&lt;h3&gt;
  
  
  Snipcart Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Customizable shopping cart.&lt;/li&gt;
&lt;li&gt;Physical and digital product support.&lt;/li&gt;
&lt;li&gt;Product variants.&lt;/li&gt;
&lt;li&gt;Inventory management.&lt;/li&gt;
&lt;li&gt;Payment integrations.&lt;/li&gt;
&lt;li&gt;Merchant and customer dashboards.&lt;/li&gt;
&lt;li&gt;APIs and webhooks.&lt;/li&gt;
&lt;li&gt;Shipping and tax tools.&lt;/li&gt;
&lt;li&gt;Abandoned cart recovery.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Developer Experience
&lt;/h3&gt;

&lt;p&gt;Snipcart is particularly appealing to developers building static websites or applications with custom frontend architectures.&lt;/p&gt;

&lt;p&gt;It provides documentation for integrating its cart, configuring product information, customizing checkout, and interacting with its APIs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.snipcart.com" rel="noopener noreferrer"&gt;Snipcart developer documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Unlike platforms that provide a visual hosted storefront builder, Snipcart generally expects you to bring your own website and product presentation.&lt;/p&gt;

&lt;p&gt;This can be an advantage if you need frontend freedom, but it also means you are responsible for more of the implementation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Snipcart Pricing
&lt;/h3&gt;

&lt;p&gt;Snipcart uses a revenue-based pricing model.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For stores generating under $1,000 in monthly sales, a $20 monthly fee applies.&lt;/li&gt;
&lt;li&gt;At higher sales volumes, the standard platform fee is 2% of transactions.&lt;/li&gt;
&lt;li&gt;Payment gateway fees are charged separately.&lt;/li&gt;
&lt;li&gt;Development and testing are free.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's how that pricing model works at different monthly sales volumes.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Monthly sales&lt;/th&gt;
&lt;th&gt;Snipcart platform cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;$500&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$1,000&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$2,000&lt;/td&gt;
&lt;td&gt;$40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$5,000&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$10,000&lt;/td&gt;
&lt;td&gt;$200&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These figures exclude payment processing fees.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://snipcart.com/pricing" rel="noopener noreferrer"&gt;Snipcart pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Snipcart Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Well suited to custom frontend development.&lt;/li&gt;
&lt;li&gt;Flexible shopping cart integration.&lt;/li&gt;
&lt;li&gt;Unlimited products under its published pricing model.&lt;/li&gt;
&lt;li&gt;APIs and webhook support.&lt;/li&gt;
&lt;li&gt;Supports static websites.&lt;/li&gt;
&lt;li&gt;Free development environment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Snipcart Limitations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;No permanent free plan for live selling.&lt;/li&gt;
&lt;li&gt;Percentage-based charges increase as sales revenue grows.&lt;/li&gt;
&lt;li&gt;Requires an existing website or a separately developed storefront.&lt;/li&gt;
&lt;li&gt;Less suitable for merchants who want to design and publish a complete website without coding.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Who Should Choose Snipcart?
&lt;/h3&gt;

&lt;p&gt;Snipcart is worth considering if you're a developer building a custom website and want a flexible cart integration rather than a full website building platform.&lt;/p&gt;

&lt;p&gt;However, merchants who prefer fixed subscription pricing should calculate how its fees would change as their sales increase.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Shopify: Best for Established and Growing Ecommerce Businesses
&lt;/h2&gt;

&lt;p&gt;Website: &lt;a href="https://www.shopify.com" rel="noopener noreferrer"&gt;shopify.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shopify is one of the most established ecommerce platforms available.&lt;/p&gt;

&lt;p&gt;It is designed for businesses that want a complete commerce ecosystem rather than simply adding a shopping cart to an existing website.&lt;/p&gt;

&lt;p&gt;Shopify provides tools for creating online stores, managing products, processing purchases, and operating across different sales channels.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shopify Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Hosted storefront builder and themes.&lt;/li&gt;
&lt;li&gt;Product management.&lt;/li&gt;
&lt;li&gt;Inventory and order management.&lt;/li&gt;
&lt;li&gt;Point-of-sale integrations.&lt;/li&gt;
&lt;li&gt;Multichannel selling.&lt;/li&gt;
&lt;li&gt;Payment processing.&lt;/li&gt;
&lt;li&gt;Marketing and analytics.&lt;/li&gt;
&lt;li&gt;Extensive third-party app marketplace.&lt;/li&gt;
&lt;li&gt;Headless commerce APIs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Can You Add Shopify to an Existing Website?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;Shopify provides integration options such as Buy Buttons that allow merchants to sell products outside their main Shopify storefront.&lt;/p&gt;

&lt;p&gt;This can be useful if you already use Shopify for commerce operations but want to sell products through another website or blog.&lt;/p&gt;

&lt;p&gt;However, some businesses may find that maintaining an entire Shopify setup is more than they need for a small embedded product catalog.&lt;/p&gt;

&lt;h3&gt;
  
  
  Developer Experience
&lt;/h3&gt;

&lt;p&gt;Shopify provides extensive developer tooling.&lt;/p&gt;

&lt;p&gt;Its Admin GraphQL API allows applications to interact with merchant operations.&lt;/p&gt;

&lt;p&gt;The Storefront API allows developers to create custom customer-facing experiences.&lt;/p&gt;

&lt;p&gt;Shopify also provides Hydrogen, its React-based framework for headless ecommerce storefronts.&lt;/p&gt;

&lt;p&gt;You can use Shopify's developer tools to create custom integrations and storefronts rather than relying entirely on its standard themes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shopify.dev" rel="noopener noreferrer"&gt;Shopify developer documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shopify Pricing
&lt;/h3&gt;

&lt;p&gt;Shopify's Basic plan is advertised from $29 per month when billed annually.&lt;/p&gt;

&lt;p&gt;Monthly billing, additional plans, promotional periods, and regional pricing may differ.&lt;/p&gt;

&lt;p&gt;Businesses should also account for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Payment processing charges.&lt;/li&gt;
&lt;li&gt;Potential third-party payment provider transaction fees.&lt;/li&gt;
&lt;li&gt;Paid applications.&lt;/li&gt;
&lt;li&gt;Premium themes.&lt;/li&gt;
&lt;li&gt;Additional development expenses.&lt;/li&gt;
&lt;li&gt;Specialized point-of-sale requirements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shopify does not offer a permanent free production store through its standard plans.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.shopify.com/pricing" rel="noopener noreferrer"&gt;Shopify pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shopify Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Extensive ecommerce ecosystem.&lt;/li&gt;
&lt;li&gt;Mature product and order management tools.&lt;/li&gt;
&lt;li&gt;Strong developer documentation.&lt;/li&gt;
&lt;li&gt;Large selection of themes and integrations.&lt;/li&gt;
&lt;li&gt;Suitable for businesses selling across multiple channels.&lt;/li&gt;
&lt;li&gt;Supports both traditional and headless storefronts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Shopify Limitations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Subscription costs can increase as businesses require more advanced features.&lt;/li&gt;
&lt;li&gt;Paid apps may increase total operating expenses.&lt;/li&gt;
&lt;li&gt;Additional fees may apply when using third-party payment providers.&lt;/li&gt;
&lt;li&gt;Can be more infrastructure than a business needs for a simple embedded store.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Who Should Choose Shopify?
&lt;/h3&gt;

&lt;p&gt;Shopify is a strong choice for businesses that need a comprehensive ecommerce platform with a mature ecosystem of applications, integrations, and sales channels.&lt;/p&gt;

&lt;p&gt;For a business that only wants to add a small product catalog to an existing website, a lighter embedded ecommerce solution may be more appropriate.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Foxy: Best for Custom Checkout and Recurring Payments
&lt;/h2&gt;

&lt;p&gt;Website: &lt;a href="https://www.foxy.io" rel="noopener noreferrer"&gt;foxy.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Foxy, formerly associated with the FoxyCart name, focuses on providing flexible cart and checkout functionality for different websites and applications.&lt;/p&gt;

&lt;p&gt;Instead of requiring businesses to migrate their entire website, Foxy can work with an existing frontend or content management system.&lt;/p&gt;

&lt;p&gt;It is particularly interesting for businesses with specialized purchase workflows.&lt;/p&gt;

&lt;h3&gt;
  
  
  Foxy Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Hosted shopping cart and checkout.&lt;/li&gt;
&lt;li&gt;Physical and digital product selling.&lt;/li&gt;
&lt;li&gt;Recurring subscriptions.&lt;/li&gt;
&lt;li&gt;Donations and service payments.&lt;/li&gt;
&lt;li&gt;Customer account functionality.&lt;/li&gt;
&lt;li&gt;Embeddable customer portal.&lt;/li&gt;
&lt;li&gt;Single sign-on.&lt;/li&gt;
&lt;li&gt;APIs and automation tools.&lt;/li&gt;
&lt;li&gt;Customizable checkout templates.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Developer Experience
&lt;/h3&gt;

&lt;p&gt;Foxy provides a hypermedia API for integrating commerce functionality into custom applications.&lt;/p&gt;

&lt;p&gt;Developers can use its documentation to interact with customer information, transactions, subscriptions, and other supported commerce resources.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://api.foxycart.com" rel="noopener noreferrer"&gt;Explore Foxy's API documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Foxy is especially useful when the website already handles how products are displayed and needs an external system for purchases and recurring billing.&lt;/p&gt;

&lt;p&gt;It is not primarily positioned as a general-purpose drag-and-drop website builder.&lt;/p&gt;

&lt;h3&gt;
  
  
  Foxy Pricing
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Monthly price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Starter&lt;/td&gt;
&lt;td&gt;$30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Growth&lt;/td&gt;
&lt;td&gt;$65&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Additional plans and usage charges are available.&lt;/p&gt;

&lt;p&gt;The Starter plan includes 100 monthly transactions.&lt;/p&gt;

&lt;p&gt;Beyond the included transaction allowance, Foxy charges 1% of the transaction value, subject to a minimum of $0.05 and a maximum of $0.35 per additional transaction.&lt;/p&gt;

&lt;p&gt;Other usage allowances, including customer portal users and automation runs, can also affect the total cost.&lt;/p&gt;

&lt;p&gt;Foxy offers an unlimited development trial before selecting a plan to accept real payments.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.foxy.io/pricing" rel="noopener noreferrer"&gt;Foxy pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Foxy Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Flexible checkout integration.&lt;/li&gt;
&lt;li&gt;Strong subscription functionality.&lt;/li&gt;
&lt;li&gt;Suitable for donations, services, and specialized selling workflows.&lt;/li&gt;
&lt;li&gt;Developer API.&lt;/li&gt;
&lt;li&gt;Can work with an existing website.&lt;/li&gt;
&lt;li&gt;Free development environment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Foxy Limitations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;No permanent free plan for accepting real payments.&lt;/li&gt;
&lt;li&gt;Subscription and additional usage charges need to be considered.&lt;/li&gt;
&lt;li&gt;Product presentation may need to be implemented separately.&lt;/li&gt;
&lt;li&gt;May require more integration work than a ready-made embedded product catalog.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Who Should Choose Foxy?
&lt;/h3&gt;

&lt;p&gt;Foxy is worth exploring if you need a flexible checkout solution that supports recurring subscriptions, donations, services, or complex purchasing requirements.&lt;/p&gt;

&lt;p&gt;It is particularly relevant when your existing application already manages how products and services are presented.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. WooCommerce: Best for WordPress and Self-Hosted Ecommerce
&lt;/h2&gt;

&lt;p&gt;Website: &lt;a href="https://woocommerce.com" rel="noopener noreferrer"&gt;woocommerce.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;WooCommerce takes a different approach from most of the platforms in this comparison.&lt;/p&gt;

&lt;p&gt;It is an open-source ecommerce solution built for WordPress.&lt;/p&gt;

&lt;p&gt;Instead of paying a subscription to a hosted commerce platform, businesses can install WooCommerce on their own WordPress website.&lt;/p&gt;

&lt;p&gt;This gives merchants considerable flexibility over their hosting, frontend, plugins, data, and application configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  WooCommerce Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Product and inventory management.&lt;/li&gt;
&lt;li&gt;Physical and digital product support.&lt;/li&gt;
&lt;li&gt;WordPress theme integration.&lt;/li&gt;
&lt;li&gt;Shopping cart and checkout.&lt;/li&gt;
&lt;li&gt;Order management.&lt;/li&gt;
&lt;li&gt;Payment gateway extensions.&lt;/li&gt;
&lt;li&gt;Shipping and tax extensions.&lt;/li&gt;
&lt;li&gt;REST APIs.&lt;/li&gt;
&lt;li&gt;Extensive plugin ecosystem.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Developer Experience
&lt;/h3&gt;

&lt;p&gt;WooCommerce provides a REST API for administrative operations and a Store API for customer-facing commerce functionality.&lt;/p&gt;

&lt;p&gt;Developers can also extend the platform through WordPress plugins, themes, hooks, and custom integrations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.woocommerce.com" rel="noopener noreferrer"&gt;WooCommerce developer documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This can be attractive to developers who want access to the underlying ecommerce application rather than relying entirely on a managed external backend.&lt;/p&gt;

&lt;p&gt;However, it also introduces responsibility for maintaining the WordPress installation and supporting infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  WooCommerce Pricing
&lt;/h3&gt;

&lt;p&gt;WooCommerce's core software is free.&lt;/p&gt;

&lt;p&gt;There is no mandatory WooCommerce platform subscription or percentage-based revenue share for using the core software.&lt;/p&gt;

&lt;p&gt;However, operating the store may involve additional costs.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Expense&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;WooCommerce core&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WordPress software&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosting&lt;/td&gt;
&lt;td&gt;Depends on the provider&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Domain name&lt;/td&gt;
&lt;td&gt;Depends on the registrar&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Premium themes&lt;/td&gt;
&lt;td&gt;Optional&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paid extensions&lt;/td&gt;
&lt;td&gt;Depends on the required functionality&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maintenance and security&lt;/td&gt;
&lt;td&gt;Depends on your implementation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payment processing&lt;/td&gt;
&lt;td&gt;Depends on your payment provider&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Managed hosting, commercial extensions, and professional development services can make the actual cost considerably higher than the initial software price.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://woocommerce.com/pricing/" rel="noopener noreferrer"&gt;WooCommerce pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  WooCommerce Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Free and open-source core.&lt;/li&gt;
&lt;li&gt;Extensive customization capabilities.&lt;/li&gt;
&lt;li&gt;Strong WordPress integration.&lt;/li&gt;
&lt;li&gt;Large ecosystem of plugins and extensions.&lt;/li&gt;
&lt;li&gt;Control over hosting and application data.&lt;/li&gt;
&lt;li&gt;Developer API support.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  WooCommerce Limitations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Requires a WordPress installation.&lt;/li&gt;
&lt;li&gt;Hosting and maintenance are additional responsibilities.&lt;/li&gt;
&lt;li&gt;Extensions may introduce recurring costs.&lt;/li&gt;
&lt;li&gt;Plugin compatibility and security updates require attention.&lt;/li&gt;
&lt;li&gt;Less straightforward if you want to add commerce to a non-WordPress website without maintaining a separate WordPress backend.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Who Should Choose WooCommerce?
&lt;/h3&gt;

&lt;p&gt;WooCommerce is an excellent option for businesses that already use WordPress and want greater control over their ecommerce infrastructure.&lt;/p&gt;

&lt;p&gt;If your website is built with Webflow, Framer, React, or static HTML, a managed embedded ecommerce platform may require less ongoing infrastructure maintenance.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Sellfy: Best for Digital Creators and Merchandise
&lt;/h2&gt;

&lt;p&gt;Website: &lt;a href="https://sellfy.com" rel="noopener noreferrer"&gt;sellfy.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sellfy focuses on helping creators sell products directly to their audiences.&lt;/p&gt;

&lt;p&gt;It is particularly relevant to musicians, designers, photographers, writers, educators, and content creators selling downloadable resources or merchandise.&lt;/p&gt;

&lt;p&gt;Sellfy provides a hosted storefront and embedding options for existing websites.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sellfy Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Hosted storefront builder.&lt;/li&gt;
&lt;li&gt;Digital product delivery.&lt;/li&gt;
&lt;li&gt;Physical products.&lt;/li&gt;
&lt;li&gt;Subscriptions.&lt;/li&gt;
&lt;li&gt;Print-on-demand merchandise.&lt;/li&gt;
&lt;li&gt;Embeddable buy buttons.&lt;/li&gt;
&lt;li&gt;Email marketing.&lt;/li&gt;
&lt;li&gt;Discount codes.&lt;/li&gt;
&lt;li&gt;File protection.&lt;/li&gt;
&lt;li&gt;Product upselling and abandoned cart recovery on eligible plans.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Developer Experience
&lt;/h3&gt;

&lt;p&gt;Sellfy is primarily designed around creator-friendly selling workflows rather than custom headless commerce development.&lt;/p&gt;

&lt;p&gt;It offers integrations and customizable storefront embedding.&lt;/p&gt;

&lt;p&gt;However, if building an entirely custom React or Next.js shopping application is a primary requirement, confirm its available API capabilities before choosing it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sellfy Pricing
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Monthly billing&lt;/th&gt;
&lt;th&gt;Monthly equivalent when billed annually&lt;/th&gt;
&lt;th&gt;Annual sales threshold&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Starter&lt;/td&gt;
&lt;td&gt;$29&lt;/td&gt;
&lt;td&gt;$22&lt;/td&gt;
&lt;td&gt;$10,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Business&lt;/td&gt;
&lt;td&gt;$79&lt;/td&gt;
&lt;td&gt;$59&lt;/td&gt;
&lt;td&gt;$50,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Premium&lt;/td&gt;
&lt;td&gt;$159&lt;/td&gt;
&lt;td&gt;$119&lt;/td&gt;
&lt;td&gt;$200,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sellfy offers a 14-day free trial rather than a permanent free selling plan.&lt;/p&gt;

&lt;p&gt;Within the applicable sales thresholds, Sellfy advertises no platform transaction fees.&lt;/p&gt;

&lt;p&gt;However, its pricing documentation states that a 2% charge may apply to sales exceeding the plan's annual sales limit until the merchant upgrades.&lt;/p&gt;

&lt;p&gt;Payment processing fees remain separate.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://sellfy.com/pricing/" rel="noopener noreferrer"&gt;Sellfy pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sellfy Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Designed around creator selling workflows.&lt;/li&gt;
&lt;li&gt;Supports digital downloads and merchandise.&lt;/li&gt;
&lt;li&gt;Hosted storefront builder.&lt;/li&gt;
&lt;li&gt;Embeddable selling options.&lt;/li&gt;
&lt;li&gt;Built-in marketing functionality.&lt;/li&gt;
&lt;li&gt;Supports subscriptions and print-on-demand products.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Sellfy Limitations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;No permanent free selling plan.&lt;/li&gt;
&lt;li&gt;Annual sales thresholds apply.&lt;/li&gt;
&lt;li&gt;Some marketing features require more expensive plans.&lt;/li&gt;
&lt;li&gt;May not be the ideal choice for developers requiring extensive headless commerce APIs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Who Should Choose Sellfy?
&lt;/h3&gt;

&lt;p&gt;Sellfy is worth considering if your primary business involves selling ebooks, music, templates, creative resources, subscriptions, or branded merchandise.&lt;/p&gt;

&lt;p&gt;It is particularly attractive if print-on-demand functionality is important to your business.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ecwid Alternatives: Detailed Feature Comparison
&lt;/h2&gt;

&lt;p&gt;Different ecommerce platforms solve different problems.&lt;/p&gt;

&lt;p&gt;Some provide complete hosted storefronts, while others focus on connecting checkout functionality to websites that already exist.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Shoprivet&lt;/th&gt;
&lt;th&gt;Shoprocket&lt;/th&gt;
&lt;th&gt;Snipcart&lt;/th&gt;
&lt;th&gt;Shopify&lt;/th&gt;
&lt;th&gt;Foxy&lt;/th&gt;
&lt;th&gt;WooCommerce&lt;/th&gt;
&lt;th&gt;Sellfy&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Permanent free selling plan&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Free core&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosted storefront builder&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Bring your own site&lt;/td&gt;
&lt;td&gt;Via WordPress&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Existing website integration&lt;/td&gt;
&lt;td&gt;Catalog widget&lt;/td&gt;
&lt;td&gt;Ecommerce widgets&lt;/td&gt;
&lt;td&gt;Cart integration&lt;/td&gt;
&lt;td&gt;Buy Buttons&lt;/td&gt;
&lt;td&gt;Cart integration&lt;/td&gt;
&lt;td&gt;WordPress/custom integration&lt;/td&gt;
&lt;td&gt;Embeds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Developer API&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Verify requirements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Physical products&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Digital products&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Paid plans&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Via integrations&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product variants&lt;/td&gt;
&lt;td&gt;Paid plans&lt;/td&gt;
&lt;td&gt;Paid plans&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Custom product options&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Supported options&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Managed hosting for commerce backend&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Self-managed or managed host&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Features may depend on plan entitlements, application configuration, and third-party integrations.&lt;/p&gt;

&lt;p&gt;An API being available does not automatically mean that every platform exposes the same cart, checkout, inventory, or product management operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which Ecwid Alternatives Have No Additional Platform Transaction Fees?
&lt;/h2&gt;

&lt;p&gt;Transaction fees can significantly affect the profitability of an ecommerce business.&lt;/p&gt;

&lt;p&gt;It's important to distinguish between the two main categories of ecommerce fees.&lt;/p&gt;

&lt;h3&gt;
  
  
  Payment Processing Fees
&lt;/h3&gt;

&lt;p&gt;These are charges from services such as Stripe, PayPal, Paystack, Flutterwave, or another payment processor.&lt;/p&gt;

&lt;p&gt;These fees generally remain applicable regardless of whether your ecommerce platform advertises zero transaction fees.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ecommerce Platform Fees
&lt;/h3&gt;

&lt;p&gt;These are additional charges imposed by the ecommerce software provider.&lt;/p&gt;

&lt;p&gt;They may include a monthly subscription, a percentage of sales, per-order charges, or additional usage fees.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform&lt;/th&gt;
&lt;th&gt;Platform sales and transaction fee model&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ecwid&lt;/td&gt;
&lt;td&gt;No platform transaction fees&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shoprivet&lt;/td&gt;
&lt;td&gt;No percentage-based platform sales commission; order allowances apply&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shoprocket&lt;/td&gt;
&lt;td&gt;No platform transaction fees&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Snipcart&lt;/td&gt;
&lt;td&gt;2% of sales or $20/month for lower sales volumes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shopify&lt;/td&gt;
&lt;td&gt;Additional fees may apply depending on plan and payment provider&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Foxy&lt;/td&gt;
&lt;td&gt;Included transaction allowance followed by additional transaction charges&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WooCommerce&lt;/td&gt;
&lt;td&gt;No revenue share from the core software&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sellfy&lt;/td&gt;
&lt;td&gt;No platform transaction fee within plan thresholds; excess-sales charges may apply&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  An Example: A Business Generating $5,000 a Month
&lt;/h3&gt;

&lt;p&gt;Let's imagine a business processes $5,000 in monthly sales across 100 orders.&lt;/p&gt;

&lt;p&gt;The following table compares selected platform subscription and transaction costs.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform and selected plan&lt;/th&gt;
&lt;th&gt;Illustrative monthly platform cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Shoprivet Premium&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shoprocket Starter&lt;/td&gt;
&lt;td&gt;$29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Foxy Starter&lt;/td&gt;
&lt;td&gt;$30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ecwid Venture&lt;/td&gt;
&lt;td&gt;$35&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Snipcart&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This example assumes the selected plan supports the merchant's required features.&lt;/p&gt;

&lt;p&gt;It excludes gateway processing fees, taxes, hosting, additional usage charges, and annual billing discounts.&lt;/p&gt;

&lt;p&gt;The platforms are not necessarily equivalent in their features.&lt;/p&gt;

&lt;p&gt;For example, a business that needs a particular tax engine, subscription billing system, or marketplace integration may require a more expensive plan even if a cheaper option can process the same number of orders.&lt;/p&gt;

&lt;p&gt;The purpose of this comparison is to demonstrate why subscription pricing and revenue-based pricing should both be considered.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best Ecwid Alternatives for Developers
&lt;/h2&gt;

&lt;p&gt;If you're a software engineer, your selection criteria may differ from those of a business owner looking for a no-code website builder.&lt;/p&gt;

&lt;p&gt;You probably care about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;API documentation.&lt;/li&gt;
&lt;li&gt;Authentication and authorization.&lt;/li&gt;
&lt;li&gt;Product and category endpoints.&lt;/li&gt;
&lt;li&gt;Shopping cart persistence.&lt;/li&gt;
&lt;li&gt;Server-side inventory validation.&lt;/li&gt;
&lt;li&gt;Checkout and payment workflows.&lt;/li&gt;
&lt;li&gt;Webhook integrations.&lt;/li&gt;
&lt;li&gt;Rate limits.&lt;/li&gt;
&lt;li&gt;Headless storefront support.&lt;/li&gt;
&lt;li&gt;Framework compatibility.&lt;/li&gt;
&lt;li&gt;Access to order information.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here are some options to investigate based on your preferred development approach.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Development requirement&lt;/th&gt;
&lt;th&gt;Platforms to consider&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Build a custom Next.js online store&lt;/td&gt;
&lt;td&gt;Shoprivet, Shopify, Snipcart, Shoprocket&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add a shopping cart to static HTML&lt;/td&gt;
&lt;td&gt;Shoprivet, Snipcart, Shoprocket, Foxy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build on WordPress&lt;/td&gt;
&lt;td&gt;WooCommerce&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Create a headless ecommerce application&lt;/td&gt;
&lt;td&gt;Shoprivet, Shopify, Shoprocket&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Implement recurring subscriptions&lt;/td&gt;
&lt;td&gt;Foxy, Shopify, Snipcart&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build a custom merchant dashboard&lt;/td&gt;
&lt;td&gt;Shoprivet, Shopify, WooCommerce&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  How a Headless Ecommerce Architecture Works
&lt;/h3&gt;

&lt;p&gt;Instead of allowing the ecommerce platform to control the entire website, developers can separate the frontend from the underlying commerce system.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CUSTOM FRONTEND

Next.js / React / Vue / Astro
        |
        | HTTPS requests
        v
COMMERCE API

Products
Categories
Inventory
Shopping carts
Checkout
Orders
        |
        v
PAYMENT PROVIDERS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This architecture allows developers to create a completely custom storefront without implementing every commerce operation from scratch.&lt;/p&gt;

&lt;p&gt;For instance, with Shoprivet, a developer can generate a merchant API key from the dashboard, retrieve product information securely from a server-side application, and use the public storefront API for customer-facing purchases.&lt;/p&gt;

&lt;p&gt;The merchant can continue managing products and orders through the existing Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;The developer is free to focus on the shopping experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best Ecwid Alternatives for Existing Websites
&lt;/h2&gt;

&lt;p&gt;If you already have a website and simply want to introduce ecommerce functionality, embedded commerce should be an important consideration.&lt;/p&gt;

&lt;p&gt;You shouldn't necessarily have to migrate your homepage, blog, landing pages, and other existing content to a new platform.&lt;/p&gt;

&lt;h3&gt;
  
  
  For Webflow and Framer
&lt;/h3&gt;

&lt;p&gt;Consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shoprivet.&lt;/li&gt;
&lt;li&gt;Shoprocket.&lt;/li&gt;
&lt;li&gt;Foxy.&lt;/li&gt;
&lt;li&gt;Snipcart.&lt;/li&gt;
&lt;li&gt;Shopify Buy Buttons.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check whether your website plan allows the required custom code or embedded integrations.&lt;/p&gt;

&lt;h3&gt;
  
  
  For Static HTML Websites
&lt;/h3&gt;

&lt;p&gt;Consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shoprivet.&lt;/li&gt;
&lt;li&gt;Snipcart.&lt;/li&gt;
&lt;li&gt;Shoprocket.&lt;/li&gt;
&lt;li&gt;Foxy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These platforms allow different approaches to connecting a separately hosted website to commerce functionality.&lt;/p&gt;

&lt;h3&gt;
  
  
  For WordPress Websites
&lt;/h3&gt;

&lt;p&gt;Consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;WooCommerce.&lt;/li&gt;
&lt;li&gt;Shoprivet.&lt;/li&gt;
&lt;li&gt;Shoprocket.&lt;/li&gt;
&lt;li&gt;Shopify Buy Buttons.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;WooCommerce is useful if you want commerce to be deeply integrated into WordPress.&lt;/p&gt;

&lt;p&gt;An embedded solution may be preferable if you want to keep ecommerce operations separate from your WordPress installation.&lt;/p&gt;

&lt;h3&gt;
  
  
  For AI-Generated Websites
&lt;/h3&gt;

&lt;p&gt;Modern AI website builders can generate impressive interfaces, including product pages and shopping cart designs.&lt;/p&gt;

&lt;p&gt;However, generating the visual interface is different from implementing a secure commerce backend.&lt;/p&gt;

&lt;p&gt;A real online store still needs reliable product information, inventory validation, checkout, payment verification, and order persistence.&lt;/p&gt;

&lt;p&gt;Platforms such as Shoprivet, Shoprocket, Snipcart, and Shopify can provide different approaches to introducing actual commerce functionality into these websites.&lt;/p&gt;

&lt;p&gt;The appropriate integration depends on the AI builder's custom code capabilities and the commerce platform's documented APIs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best Ecwid Alternatives for Web Design Agencies
&lt;/h2&gt;

&lt;p&gt;If you're a freelancer or agency building websites for several clients, consider whether the ecommerce solution can support a repeatable workflow.&lt;/p&gt;

&lt;p&gt;Imagine an agency has five clients.&lt;/p&gt;

&lt;p&gt;Each client needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Their own products.&lt;/li&gt;
&lt;li&gt;Their own inventory.&lt;/li&gt;
&lt;li&gt;Their own payment configuration.&lt;/li&gt;
&lt;li&gt;Their own customer orders.&lt;/li&gt;
&lt;li&gt;A unique website design.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Creating and maintaining a separate commerce backend for every client can become expensive and time-consuming.&lt;/p&gt;

&lt;p&gt;A multi-store commerce platform can help consolidate some of these operations.&lt;/p&gt;

&lt;p&gt;For example, Shoprivet's Premium plan supports three stores, while its Business plan supports unlimited stores subject to the plan's other usage allowances.&lt;/p&gt;

&lt;p&gt;Shoprocket also supports multiple stores on eligible paid plans.&lt;/p&gt;

&lt;p&gt;Before choosing any agency-oriented commerce solution, confirm:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How many independent stores you can manage.&lt;/li&gt;
&lt;li&gt;Whether order allowances are shared.&lt;/li&gt;
&lt;li&gt;Whether clients can access only their own store information.&lt;/li&gt;
&lt;li&gt;Which collaboration permissions are supported.&lt;/li&gt;
&lt;li&gt;Who owns each store.&lt;/li&gt;
&lt;li&gt;How billing and ownership transfers work.&lt;/li&gt;
&lt;li&gt;Whether each client can connect their own merchant account.&lt;/li&gt;
&lt;li&gt;How data and credentials are isolated.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A good agency workflow should make routine product and order management easier without creating security or ownership problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Switch From Ecwid to Another Ecommerce Platform
&lt;/h2&gt;

&lt;p&gt;Switching ecommerce providers requires more planning than simply copying your product names.&lt;/p&gt;

&lt;p&gt;Your existing store may contain important information about products, customers, inventory, orders, and integrations.&lt;/p&gt;

&lt;p&gt;Here's a practical migration approach.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Review Your Current Ecwid Store
&lt;/h3&gt;

&lt;p&gt;Before choosing a replacement, identify what you're actually using.&lt;/p&gt;

&lt;p&gt;Make a record of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Active products.&lt;/li&gt;
&lt;li&gt;Product variants.&lt;/li&gt;
&lt;li&gt;Inventory quantities.&lt;/li&gt;
&lt;li&gt;Product categories.&lt;/li&gt;
&lt;li&gt;Discounts and promotions.&lt;/li&gt;
&lt;li&gt;Payment methods.&lt;/li&gt;
&lt;li&gt;Customer accounts.&lt;/li&gt;
&lt;li&gt;Shipping configuration.&lt;/li&gt;
&lt;li&gt;Tax settings.&lt;/li&gt;
&lt;li&gt;Historical orders.&lt;/li&gt;
&lt;li&gt;Active subscriptions.&lt;/li&gt;
&lt;li&gt;Website integrations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This helps you avoid choosing a replacement that does not support a business-critical feature.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Export Your Existing Data
&lt;/h3&gt;

&lt;p&gt;Use the export functionality available on your Ecwid plan to back up relevant store information.&lt;/p&gt;

&lt;p&gt;Depending on your plan and configuration, this may include product, customer, and order data.&lt;/p&gt;

&lt;p&gt;Keep secure copies of these exports before making changes to your existing store.&lt;/p&gt;

&lt;p&gt;Check the new platform's supported import formats.&lt;/p&gt;

&lt;p&gt;Do not assume that an Ecwid export can be imported directly into every alternative without modification.&lt;/p&gt;

&lt;p&gt;Some migrations may require manual product creation or a custom API integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Create an Account on Your New Platform
&lt;/h3&gt;

&lt;p&gt;For example, if you choose Shoprivet, visit &lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;shoprivet.io&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Create an account through the &lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;signup page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" alt="Creating a Shoprivet account" width="800" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can use the free plan to explore the dashboard and test whether the platform meets your requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Create Your Store
&lt;/h3&gt;

&lt;p&gt;Provide your store information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" alt="Creating a new store in Shoprivet" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose the appropriate product type and currency.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftp98wtvsq33xfzs8146b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftp98wtvsq33xfzs8146b.png" alt="Selecting a store currency" width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Set up your products, categories, pricing, photography, and inventory information.&lt;/p&gt;

&lt;p&gt;For larger catalogs, investigate whether a supported product import workflow or API-based migration would be more efficient.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Connect Your Payment Gateway
&lt;/h3&gt;

&lt;p&gt;Navigate to your store's payment configuration settings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" alt="Configuring ecommerce payment methods" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Connect an appropriate supported merchant account and follow the provider's configuration instructions.&lt;/p&gt;

&lt;p&gt;Payment credentials, webhook configuration, stored customer payment methods, and existing subscriptions may require special migration procedures.&lt;/p&gt;

&lt;p&gt;Do not assume saved payment methods or subscriptions can automatically transfer between platforms.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Replace the Existing Ecommerce Integration
&lt;/h3&gt;

&lt;p&gt;If Ecwid is embedded into your existing website, you may be able to preserve most of your website's design.&lt;/p&gt;

&lt;p&gt;Instead of rebuilding the website, configure the new ecommerce catalog and replace the old embed.&lt;/p&gt;

&lt;p&gt;For example, in Shoprivet, navigate to &lt;strong&gt;Catalog widgets&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvhfdepkn2lr62s4s3j5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvhfdepkn2lr62s4s3j5.png" alt="Catalog widget management in Shoprivet" width="799" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Customize the new catalog, save it, and copy its generated embed code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm9yu58toyh5tzqrz8mps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm9yu58toyh5tzqrz8mps.png" alt="Generated ecommerce catalog embed code" width="800" height="599"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add the new code to a staging version of your website first.&lt;/p&gt;

&lt;p&gt;Remove the old Ecwid integration only when you're ready to switch.&lt;/p&gt;

&lt;p&gt;If you use Ecwid Instant Site as your entire business website, the migration may require recreating some pages using a new hosted storefront builder.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Test Checkout and Order Management
&lt;/h3&gt;

&lt;p&gt;Before redirecting customers to the new shopping experience, test:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Published products.&lt;/li&gt;
&lt;li&gt;Product variants.&lt;/li&gt;
&lt;li&gt;Product pricing.&lt;/li&gt;
&lt;li&gt;Inventory availability.&lt;/li&gt;
&lt;li&gt;Shopping cart functionality.&lt;/li&gt;
&lt;li&gt;Shipping and tax calculations, where required.&lt;/li&gt;
&lt;li&gt;Payment methods.&lt;/li&gt;
&lt;li&gt;Failed and cancelled transactions.&lt;/li&gt;
&lt;li&gt;Payment verification.&lt;/li&gt;
&lt;li&gt;Order notifications.&lt;/li&gt;
&lt;li&gt;Mobile checkout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fajk72xhav7mg8yotymxx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fajk72xhav7mg8yotymxx.png" alt="Example of an ecommerce checkout confirmation" width="800" height="618"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Confirm that the order has been recorded correctly and that the payment status matches the actual payment provider's records.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 8: Preserve Your Website's SEO
&lt;/h3&gt;

&lt;p&gt;Changing ecommerce platforms can affect product URLs and existing search engine rankings.&lt;/p&gt;

&lt;p&gt;Before launching the new store:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identify your existing indexed product pages.&lt;/li&gt;
&lt;li&gt;Preserve URLs wherever possible.&lt;/li&gt;
&lt;li&gt;Create appropriate redirects when URLs change.&lt;/li&gt;
&lt;li&gt;Update internal links.&lt;/li&gt;
&lt;li&gt;Review canonical URLs.&lt;/li&gt;
&lt;li&gt;Update your sitemap.&lt;/li&gt;
&lt;li&gt;Verify product structured data.&lt;/li&gt;
&lt;li&gt;Monitor indexing through Google Search Console.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you retain your existing website and replace only the ecommerce integration, some of these changes may be minimized.&lt;/p&gt;

&lt;p&gt;However, embedded product content and traditional server-rendered product pages can behave differently for search engine indexing.&lt;/p&gt;

&lt;p&gt;Test your new storefront rather than assuming its SEO behavior will be identical.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 9: Cancel Your Old Subscription Only When Ready
&lt;/h3&gt;

&lt;p&gt;Do not cancel your existing ecommerce account immediately after creating an account on another platform.&lt;/p&gt;

&lt;p&gt;Keep access until you've verified:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your important data has been backed up.&lt;/li&gt;
&lt;li&gt;Products and inventory are configured.&lt;/li&gt;
&lt;li&gt;Customer checkout works.&lt;/li&gt;
&lt;li&gt;Outstanding orders are handled.&lt;/li&gt;
&lt;li&gt;Refund and subscription obligations are addressed.&lt;/li&gt;
&lt;li&gt;Your new website is ready for production.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A successful migration should minimize disruption to existing customers.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Choose the Right Ecwid Alternative
&lt;/h2&gt;

&lt;p&gt;The cheapest platform is not automatically the best platform.&lt;/p&gt;

&lt;p&gt;Start by identifying the type of ecommerce experience you actually need.&lt;/p&gt;

&lt;h3&gt;
  
  
  If You Already Have a Website
&lt;/h3&gt;

&lt;p&gt;Consider Shoprivet or Shoprocket if you want a ready-made product catalog and shopping cart without rebuilding your website.&lt;/p&gt;

&lt;p&gt;Snipcart and Foxy are also worth exploring if you have more specialized frontend or checkout requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  If You Need a Complete Online Store
&lt;/h3&gt;

&lt;p&gt;Consider Shoprivet, Shoprocket, Shopify, or Sellfy.&lt;/p&gt;

&lt;p&gt;Each provides a hosted storefront option, although their design capabilities and commerce features differ.&lt;/p&gt;

&lt;h3&gt;
  
  
  If You're a Software Developer
&lt;/h3&gt;

&lt;p&gt;Consider Shoprivet, Snipcart, Shopify, or Shoprocket.&lt;/p&gt;

&lt;p&gt;Compare the available APIs, checkout functionality, documentation, authentication requirements, rate limits, and total operating costs.&lt;/p&gt;

&lt;h3&gt;
  
  
  If You're Already Using WordPress
&lt;/h3&gt;

&lt;p&gt;WooCommerce is a natural option because it integrates directly with the WordPress ecosystem.&lt;/p&gt;

&lt;p&gt;However, a managed external commerce platform may be preferable if you don't want your WordPress installation to handle the underlying ecommerce infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  If You Sell Digital Products
&lt;/h3&gt;

&lt;p&gt;Consider Shoprivet, Sellfy, Shoprocket, or Snipcart.&lt;/p&gt;

&lt;p&gt;Verify that the platform supports secure file delivery, appropriate download limits, payment verification, and the specific digital products you intend to sell.&lt;/p&gt;

&lt;h3&gt;
  
  
  If You Need Subscriptions
&lt;/h3&gt;

&lt;p&gt;Foxy, Snipcart, Shopify, Sellfy, and supported Shoprocket plans are worth investigating.&lt;/p&gt;

&lt;p&gt;Check recurring billing functionality carefully, including cancellation workflows, failed payment handling, and customer subscription management.&lt;/p&gt;

&lt;h3&gt;
  
  
  If You Want to Start Selling for Free
&lt;/h3&gt;

&lt;p&gt;Shoprivet and Shoprocket both provide permanent free hosted selling plans.&lt;/p&gt;

&lt;p&gt;WooCommerce provides free ecommerce software, although hosting and maintenance costs still apply.&lt;/p&gt;

&lt;p&gt;Compare the actual limitations of these free options before deciding.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Shoprivet Free&lt;/th&gt;
&lt;th&gt;Shoprocket Free&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Monthly subscription&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product allowance&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;10 physical products&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monthly order allowance&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embedded ecommerce&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosted storefront&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Platform sales commission&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Shoprivet provides a larger initial product allowance, while Shoprocket provides unlimited orders on its free plan.&lt;/p&gt;

&lt;p&gt;The better option depends on whether catalog size, order volume, payment integrations, inventory requirements, or other features matter most to your business.&lt;/p&gt;

&lt;h2&gt;
  
  
  When Should You Upgrade to a Paid Ecommerce Plan?
&lt;/h2&gt;

&lt;p&gt;Starting with a free plan can be useful, particularly when validating a new business idea.&lt;/p&gt;

&lt;p&gt;However, a paid subscription can become worthwhile when ecommerce is an established part of your business.&lt;/p&gt;

&lt;p&gt;You might consider upgrading when you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;More products.&lt;/li&gt;
&lt;li&gt;Additional monthly orders.&lt;/li&gt;
&lt;li&gt;More than one independent store.&lt;/li&gt;
&lt;li&gt;Advanced product options and variants.&lt;/li&gt;
&lt;li&gt;Additional payment gateways.&lt;/li&gt;
&lt;li&gt;A custom domain.&lt;/li&gt;
&lt;li&gt;Team collaboration.&lt;/li&gt;
&lt;li&gt;Advanced marketing functionality.&lt;/li&gt;
&lt;li&gt;More extensive integrations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, Shoprivet's Premium plan costs $15 per month and supports unlimited products, up to three stores, and 1,000 monthly orders.&lt;/p&gt;

&lt;p&gt;For a growing business, the subscription may be justified when these additional capabilities help support ongoing sales.&lt;/p&gt;

&lt;p&gt;For an agency, managing multiple independent storefronts may also make a paid plan worthwhile.&lt;/p&gt;

&lt;p&gt;Before upgrading any ecommerce platform, identify the specific feature or limitation that's affecting your business.&lt;/p&gt;

&lt;p&gt;You don't need to pay for advanced functionality simply because it exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is the best free alternative to Ecwid?
&lt;/h3&gt;

&lt;p&gt;Shoprivet and Shoprocket are worth considering if you want a free hosted ecommerce solution that supports real customer purchases.&lt;/p&gt;

&lt;p&gt;WooCommerce is another option if you want free, open-source ecommerce software and are comfortable managing WordPress hosting.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Ecwid still have a free plan in 2026?
&lt;/h3&gt;

&lt;p&gt;Ecwid's current plans for new customers are Starter, Venture, Business, and Unlimited.&lt;/p&gt;

&lt;p&gt;All four are paid plans.&lt;/p&gt;

&lt;p&gt;Existing customers may have different legacy arrangements.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the closest alternative to Ecwid?
&lt;/h3&gt;

&lt;p&gt;Shoprivet and Shoprocket are among the more direct alternatives because both support adding ecommerce functionality to an existing website and creating hosted online stores.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is there a cheaper alternative to Ecwid?
&lt;/h3&gt;

&lt;p&gt;Several platforms have lower starting subscription prices than Ecwid's Venture plan.&lt;/p&gt;

&lt;p&gt;For example, Shoprivet offers a free plan and a $15 monthly Premium plan.&lt;/p&gt;

&lt;p&gt;However, compare the features and usage allowances you need rather than relying entirely on the advertised entry price.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add ecommerce to my existing website without Ecwid?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;Platforms including Shoprivet, Shoprocket, Snipcart, Foxy, and Shopify provide different ways of adding ecommerce functionality to an existing website.&lt;/p&gt;

&lt;p&gt;Your website must support the relevant integration method.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add a shopping cart to an HTML website?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;You can use an embeddable ecommerce catalog or shopping cart integration rather than building all the commerce functionality yourself.&lt;/p&gt;

&lt;p&gt;Shoprivet, Shoprocket, Snipcart, and Foxy offer approaches that can work with compatible HTML websites.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which Ecwid alternative is best for Next.js?
&lt;/h3&gt;

&lt;p&gt;Shoprivet, Shopify, Snipcart, and Shoprocket are worth evaluating for custom Next.js ecommerce applications.&lt;/p&gt;

&lt;p&gt;Shoprivet provides a management REST API and a public storefront API, allowing developers to separate merchant operations from customer-facing shopping functionality.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Shoprivet without its storefront builder?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;You can embed a product catalog into an existing website or build a completely custom storefront using its commerce API.&lt;/p&gt;

&lt;p&gt;The visual storefront builder is optional.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do all Ecwid alternatives charge transaction fees?
&lt;/h3&gt;

&lt;p&gt;No.&lt;/p&gt;

&lt;p&gt;Ecwid, Shoprivet, and Shoprocket do not charge an additional percentage-based platform fee on sales.&lt;/p&gt;

&lt;p&gt;WooCommerce's core software also does not impose a revenue share.&lt;/p&gt;

&lt;p&gt;Other platforms may charge transaction fees, additional usage fees, or charges above certain sales thresholds.&lt;/p&gt;

&lt;p&gt;Payment gateway processing fees remain separate.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I accept payments through Paystack or Flutterwave?
&lt;/h3&gt;

&lt;p&gt;Shoprivet supports Paystack and Flutterwave integrations.&lt;/p&gt;

&lt;p&gt;Merchants must meet the respective payment providers' eligibility, country, and currency requirements.&lt;/p&gt;

&lt;p&gt;Other platforms may support these payment providers through native integrations, extensions, or custom configurations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I migrate my Ecwid products to another platform?
&lt;/h3&gt;

&lt;p&gt;Generally, yes, provided you can export the required data and the new platform offers a compatible import or API-based workflow.&lt;/p&gt;

&lt;p&gt;Product variants, customer accounts, historical orders, and subscriptions may require additional migration work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which Ecwid alternative is best for digital products?
&lt;/h3&gt;

&lt;p&gt;Shoprivet, Sellfy, Shoprocket, and Snipcart are worth considering.&lt;/p&gt;

&lt;p&gt;Sellfy is particularly focused on creators, while Shoprivet and Shoprocket also provide broader embedded and hosted ecommerce capabilities.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a backend to build a custom online store?
&lt;/h3&gt;

&lt;p&gt;You need commerce backend functionality, but you don't necessarily need to develop or host it yourself.&lt;/p&gt;

&lt;p&gt;A managed ecommerce API can provide product management, shopping carts, inventory, checkout, and order functionality while you build your own frontend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which Ecwid alternative is best for managing multiple stores?
&lt;/h3&gt;

&lt;p&gt;Shoprivet and Shoprocket support multiple stores on eligible paid plans.&lt;/p&gt;

&lt;p&gt;When evaluating multi-store functionality, consider store limits, team permissions, independent payment configurations, ownership arrangements, and usage allowances.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Shopify better than Ecwid?
&lt;/h3&gt;

&lt;p&gt;It depends on your requirements.&lt;/p&gt;

&lt;p&gt;Shopify is a comprehensive ecommerce ecosystem suited to businesses requiring extensive applications and sales channels.&lt;/p&gt;

&lt;p&gt;Ecwid is particularly relevant to businesses that want to introduce ecommerce functionality into an existing website.&lt;/p&gt;

&lt;p&gt;Neither is automatically the better choice for every merchant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Verdict: Which Ecwid Alternative Should You Choose?
&lt;/h2&gt;

&lt;p&gt;There is no single ecommerce platform that is perfect for every business.&lt;/p&gt;

&lt;p&gt;If you want a comprehensive commerce ecosystem with extensive integrations, Shopify is worth considering.&lt;/p&gt;

&lt;p&gt;If you already use WordPress and prefer greater control over your infrastructure, WooCommerce is a strong option.&lt;/p&gt;

&lt;p&gt;If you're building a custom website and primarily need shopping cart functionality, Snipcart or Foxy may suit your requirements.&lt;/p&gt;

&lt;p&gt;If you're a creator selling digital products or merchandise, Sellfy offers specialized functionality for those workflows.&lt;/p&gt;

&lt;p&gt;If you're looking for embedded ecommerce with a hosted storefront option and developer integrations, Shoprocket is also worth exploring.&lt;/p&gt;

&lt;p&gt;And if you want the flexibility to add ecommerce to your existing website, create a standalone online store, or develop your own shopping application using a REST API, take a look at Shoprivet.&lt;/p&gt;

&lt;p&gt;With Shoprivet, you can start with one approach and later explore another using the underlying product and order management infrastructure.&lt;/p&gt;

&lt;p&gt;You don't have to choose between a visual storefront builder and custom development before you've even launched your business.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your website can be built your way, while your commerce operations are managed separately.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can explore Shoprivet through the following links:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;Create a free Shoprivet account&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shoprivet.io/product-catalog-widget" rel="noopener noreferrer"&gt;Explore embeddable product catalogs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shoprivet.io/templates" rel="noopener noreferrer"&gt;Browse storefront templates&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;View Shoprivet pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shoprivet.io/app/dashboard/developers" rel="noopener noreferrer"&gt;Access the Developers dashboard&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start with the features your business needs today, and choose a platform that can support your requirements as your store grows.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;Pricing and feature information was researched in November 2026 using official platform documentation and pricing pages.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.ecwid.com/pricing" rel="noopener noreferrer"&gt;Ecwid pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://support.ecwid.com/hc/en-us/articles/207100729-Ecwid-plans-and-features" rel="noopener noreferrer"&gt;Ecwid plans and features&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://support.ecwid.com/hc/en-us/articles/25122701806108-Changes-to-the-Ecwid-plan-pricing-after-March-2-2026" rel="noopener noreferrer"&gt;Ecwid's March 2026 pricing changes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;Shoprivet pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shoprocket.io/pricing" rel="noopener noreferrer"&gt;Shoprocket pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://snipcart.com/pricing" rel="noopener noreferrer"&gt;Snipcart pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.shopify.com/pricing" rel="noopener noreferrer"&gt;Shopify pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.foxy.io/pricing" rel="noopener noreferrer"&gt;Foxy pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://woocommerce.com/pricing/" rel="noopener noreferrer"&gt;WooCommerce pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sellfy.com/pricing/" rel="noopener noreferrer"&gt;Sellfy pricing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm the founder and developer behind Shoprivet. The comparisons and recommendations in this article reflect different ecommerce use cases and publicly documented platform capabilities rather than independent hands-on benchmarking. Pricing and features may change, so always consult the relevant provider before making a purchasing decision.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Build an Online Store With Next.js Without Building a Backend</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 27 Nov 2026 11:56:21 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-to-build-an-online-store-with-nextjs-without-building-a-backend-4843</link>
      <guid>https://dev.to/allenarduino/how-to-build-an-online-store-with-nextjs-without-building-a-backend-4843</guid>
      <description>&lt;p&gt;Building the frontend of an e-commerce website is often the enjoyable part of the project.&lt;/p&gt;

&lt;p&gt;With Next.js, React, and Tailwind CSS, you can create beautiful product pages, responsive layouts, custom shopping carts, and personalized shopping experiences.&lt;/p&gt;

&lt;p&gt;But once you start implementing the actual commerce functionality, things become more complicated.&lt;/p&gt;

&lt;p&gt;You need to think about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Database schemas for products and categories.&lt;/li&gt;
&lt;li&gt;Inventory management.&lt;/li&gt;
&lt;li&gt;Product variants.&lt;/li&gt;
&lt;li&gt;Shopping cart persistence.&lt;/li&gt;
&lt;li&gt;Payment gateway integrations.&lt;/li&gt;
&lt;li&gt;Payment verification and webhooks.&lt;/li&gt;
&lt;li&gt;Order management.&lt;/li&gt;
&lt;li&gt;Customer notifications.&lt;/li&gt;
&lt;li&gt;Administrative dashboards.&lt;/li&gt;
&lt;li&gt;Security and API authentication.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Building and maintaining all these systems can become a separate project on its own.&lt;/p&gt;

&lt;p&gt;But what if you could build the entire customer-facing storefront in Next.js while connecting it to an existing ecommerce backend?&lt;/p&gt;

&lt;p&gt;That is exactly what we're going to do in this tutorial.&lt;/p&gt;

&lt;p&gt;We'll use &lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt; as our headless commerce backend and build a custom online fashion store using Next.js, TypeScript, and Tailwind CSS.&lt;/p&gt;

&lt;p&gt;No Shopify. No custom database. No Express or NestJS server. No visual storefront builder.&lt;/p&gt;

&lt;p&gt;Just your own React components connected to a managed e-commerce API.&lt;/p&gt;

&lt;h2&gt;
  
  
  What We're Going to Build
&lt;/h2&gt;

&lt;p&gt;We'll create a fashion storefront called &lt;strong&gt;Atelier Noir&lt;/strong&gt;, a minimalist clothing brand with a contemporary visual identity.&lt;/p&gt;

&lt;p&gt;Our application will include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A responsive navigation bar.&lt;/li&gt;
&lt;li&gt;An editorial-style hero section.&lt;/li&gt;
&lt;li&gt;A dynamic product catalog.&lt;/li&gt;
&lt;li&gt;Product photography and pricing.&lt;/li&gt;
&lt;li&gt;Product search.&lt;/li&gt;
&lt;li&gt;Add-to-cart functionality.&lt;/li&gt;
&lt;li&gt;A persistent guest shopping cart.&lt;/li&gt;
&lt;li&gt;Quantity management.&lt;/li&gt;
&lt;li&gt;Customer checkout.&lt;/li&gt;
&lt;li&gt;Available payment methods.&lt;/li&gt;
&lt;li&gt;Order confirmation.&lt;/li&gt;
&lt;li&gt;A separate merchant dashboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All the storefront components will be written in React.&lt;/p&gt;

&lt;p&gt;Products, inventory, carts, and orders will be managed through Shoprivet.&lt;/p&gt;

&lt;p&gt;By the end of this tutorial, you'll understand how to use an ecommerce REST API to build a custom online store without developing an entire commerce backend yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is Headless Ecommerce?
&lt;/h2&gt;

&lt;p&gt;Traditional ecommerce platforms often combine the storefront, administrative dashboard, product database, and checkout system into a single application.&lt;/p&gt;

&lt;p&gt;Headless ecommerce separates the customer-facing website from the underlying commerce infrastructure.&lt;/p&gt;

&lt;p&gt;The frontend can be built using any framework you prefer, while the commerce backend exposes functionality through APIs.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next.js handles the storefront.&lt;/li&gt;
&lt;li&gt;React handles customer interactions.&lt;/li&gt;
&lt;li&gt;Tailwind CSS handles the appearance.&lt;/li&gt;
&lt;li&gt;Shoprivet handles commerce data and operations.&lt;/li&gt;
&lt;li&gt;Connected payment providers process online payments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This allows developers to build shopping experiences without being restricted to a particular website builder or storefront template.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is Shoprivet?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt; is an ecommerce platform that provides several ways to build and operate online stores.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" alt="Shoprivet ecommerce platform homepage" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can use Shoprivet to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build a hosted online store.&lt;/li&gt;
&lt;li&gt;Embed a product catalog into an existing website.&lt;/li&gt;
&lt;li&gt;Build a completely custom storefront using its REST API.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For this tutorial, we're interested in the third option.&lt;/p&gt;

&lt;p&gt;We won't use the storefront builder or embed an existing catalog widget.&lt;/p&gt;

&lt;p&gt;Instead, we'll use Shoprivet as the commerce infrastructure behind our Next.js application.&lt;/p&gt;

&lt;p&gt;The platform provides a dashboard where merchants can manage products, stock, categories, discounts, payment configurations, and customer orders.&lt;/p&gt;

&lt;p&gt;Developers can interact with the underlying commerce functionality through documented API endpoints.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Our Next.js Ecommerce Architecture Works
&lt;/h2&gt;

&lt;p&gt;Our application will have two main layers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CUSTOM NEXT.JS STOREFRONT
│
├── Homepage
├── Product catalog
├── Product search
├── Shopping cart
├── Checkout
└── Order confirmation
        │
        │ HTTPS requests
        ▼
SHOPRIVET COMMERCE API
│
├── Products
├── Categories
├── Inventory
├── Guest carts
├── Checkout
├── Payment integrations
└── Orders
        │
        ▼
CONNECTED PAYMENT PROVIDERS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of creating our own database tables for products, inventory, carts, and orders, we'll use the functionality provided by Shoprivet.&lt;/p&gt;

&lt;p&gt;We will still use Next.js server-side rendering to securely retrieve product data using a merchant API key.&lt;/p&gt;

&lt;p&gt;However, we won't need a separate backend application, database server, ORM, or custom implementation of the core ecommerce operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding Shoprivet's Two APIs
&lt;/h2&gt;

&lt;p&gt;Before writing any code, it's important to understand the difference between Shoprivet's management API and public storefront API.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Management API
&lt;/h3&gt;

&lt;p&gt;The management API uses versioned endpoints under &lt;code&gt;/v1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It allows authorized developers to perform operations such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating and managing stores.&lt;/li&gt;
&lt;li&gt;Creating and updating products.&lt;/li&gt;
&lt;li&gt;Managing categories.&lt;/li&gt;
&lt;li&gt;Retrieving customer orders.&lt;/li&gt;
&lt;li&gt;Updating order statuses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An example request looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_ID&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;
&lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Bearer&lt;/span&gt; &lt;span class="no"&gt;YOUR_API_KEY&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These endpoints require a private merchant API key.&lt;/p&gt;

&lt;p&gt;The key must never be exposed to customers or included in your browser's JavaScript bundle.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Public Storefront API
&lt;/h3&gt;

&lt;p&gt;The public storefront API provides customer-facing commerce functionality.&lt;/p&gt;

&lt;p&gt;It can be used to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Retrieve public store information.&lt;/li&gt;
&lt;li&gt;Display available products.&lt;/li&gt;
&lt;li&gt;Retrieve available payment methods.&lt;/li&gt;
&lt;li&gt;Create guest shopping carts.&lt;/li&gt;
&lt;li&gt;Add and remove cart items.&lt;/li&gt;
&lt;li&gt;Initiate checkout.&lt;/li&gt;
&lt;li&gt;Retrieve authorized customer orders.&lt;/li&gt;
&lt;li&gt;Confirm online payments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_SLUG&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Public storefront endpoints do not require a merchant API key.&lt;/p&gt;

&lt;p&gt;Guest cart and protected order operations instead use their own scoped credentials.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Management API&lt;/th&gt;
&lt;th&gt;Public storefront API&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Authentication&lt;/td&gt;
&lt;td&gt;Merchant API key&lt;/td&gt;
&lt;td&gt;Guest cart or order credential where required&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product management&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public product browsing&lt;/td&gt;
&lt;td&gt;Possible through filtered server-side data&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Guest shopping carts&lt;/td&gt;
&lt;td&gt;Not its primary purpose&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Customer checkout&lt;/td&gt;
&lt;td&gt;Not its primary purpose&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Merchant order management&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Suitable for browser requests&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;We'll use both APIs throughout this tutorial.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create a Free Shoprivet Account
&lt;/h2&gt;

&lt;p&gt;Visit &lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;shoprivet.io&lt;/a&gt; to get started.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" alt="Shoprivet homepage" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click the signup button or navigate directly to the &lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;registration page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Create an account using your name, email address, and password, then complete the verification process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" alt="Creating a Shoprivet account" width="800" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you're signed in, you'll be able to create and manage your own commerce store.&lt;/p&gt;

&lt;p&gt;You can start with the free plan and explore the available functionality before deciding whether your business requires a paid subscription.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create Your Ecommerce Store
&lt;/h2&gt;

&lt;p&gt;From your Shoprivet dashboard, create a new blank store.&lt;/p&gt;

&lt;p&gt;We don't need to select a storefront template because we're going to build the frontend ourselves.&lt;/p&gt;

&lt;h3&gt;
  
  
  Enter Your Store Information
&lt;/h3&gt;

&lt;p&gt;For this tutorial, we'll use the following example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Store name: Atelier Noir&lt;/li&gt;
&lt;li&gt;Description: Contemporary essentials for everyday living.&lt;/li&gt;
&lt;li&gt;Product type: Physical products&lt;/li&gt;
&lt;li&gt;Currency: USD&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" alt="Entering store information in Shoprivet" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Select Your Product Type
&lt;/h3&gt;

&lt;p&gt;Shoprivet supports stores selling physical or digital products.&lt;/p&gt;

&lt;p&gt;Since we're building a clothing store, select physical products.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgn5juhqzecpqpk1vp9a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgn5juhqzecpqpk1vp9a.png" alt="Selecting a Shoprivet store product type" width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Choose Your Currency
&lt;/h3&gt;

&lt;p&gt;Select the currency in which your products will be priced.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftp98wtvsq33xfzs8146b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftp98wtvsq33xfzs8146b.png" alt="Selecting a store currency" width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Complete the store creation process.&lt;/p&gt;

&lt;p&gt;We now have a commerce dashboard that will serve as the administrative interface for our custom Next.js application.&lt;/p&gt;

&lt;p&gt;The screenshots throughout the setup process may show products or store names from existing demonstration stores.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Add Products to Your Store
&lt;/h2&gt;

&lt;p&gt;Before building our frontend, we need something to display.&lt;/p&gt;

&lt;p&gt;Navigate to &lt;strong&gt;Products&lt;/strong&gt; in the dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" alt="Shoprivet product management dashboard" width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create a few products for the fashion collection.&lt;/p&gt;

&lt;p&gt;Here are some example products you can use:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Product&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Essential Cotton Tee&lt;/td&gt;
&lt;td&gt;$35&lt;/td&gt;
&lt;td&gt;Essentials&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Relaxed Linen Shirt&lt;/td&gt;
&lt;td&gt;$69&lt;/td&gt;
&lt;td&gt;Shirts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Structured Blazer&lt;/td&gt;
&lt;td&gt;$129&lt;/td&gt;
&lt;td&gt;Outerwear&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everyday Trousers&lt;/td&gt;
&lt;td&gt;$79&lt;/td&gt;
&lt;td&gt;Trousers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minimalist Canvas Tote&lt;/td&gt;
&lt;td&gt;$29&lt;/td&gt;
&lt;td&gt;Accessories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Classic Knit Sweater&lt;/td&gt;
&lt;td&gt;$89&lt;/td&gt;
&lt;td&gt;Knitwear&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For each product, provide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A product name.&lt;/li&gt;
&lt;li&gt;A description.&lt;/li&gt;
&lt;li&gt;A selling price.&lt;/li&gt;
&lt;li&gt;Product photographs.&lt;/li&gt;
&lt;li&gt;Stock information, if applicable.&lt;/li&gt;
&lt;li&gt;A product category.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fygbdip6w7ehkeoga277p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fygbdip6w7ehkeoga277p.png" alt="Adding product information, pricing and inventory" width="799" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use high-quality images with consistent lighting and aspect ratios if you want your storefront to have a professional appearance.&lt;/p&gt;

&lt;p&gt;Once the products are ready, ensure they are published.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3exy5fh55nojes22hnvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3exy5fh55nojes22hnvi.png" alt="Publishing products in Shoprivet" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our first implementation will use products without variants.&lt;/p&gt;

&lt;p&gt;Shoprivet also supports product options and variants, including different sizes, colors, images, prices, stock quantities, and SKUs on eligible Premium and Business plans.&lt;/p&gt;

&lt;p&gt;We'll discuss extending the application to support variants later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Generate Your Shoprivet API Key
&lt;/h2&gt;

&lt;p&gt;This is where our tutorial becomes different from the typical visual ecommerce setup.&lt;/p&gt;

&lt;p&gt;Look at the left sidebar of your Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;Under the &lt;strong&gt;Manage&lt;/strong&gt; section, select &lt;strong&gt;Developers&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can also navigate to the &lt;a href="https://shoprivet.io/app/dashboard/developers" rel="noopener noreferrer"&gt;Developers dashboard&lt;/a&gt; after signing in.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu84pww8iugjglsqytosb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu84pww8iugjglsqytosb.png" alt="Shoprivet Developers dashboard showing API key generation, rate limiting and API documentation" width="800" height="518"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Developers page contains everything you need to start integrating Shoprivet into your own applications.&lt;/p&gt;

&lt;p&gt;You'll find:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;API key management.&lt;/li&gt;
&lt;li&gt;Configurable API rate limiting.&lt;/li&gt;
&lt;li&gt;JavaScript and cURL examples.&lt;/li&gt;
&lt;li&gt;Your store ID.&lt;/li&gt;
&lt;li&gt;Management API endpoints.&lt;/li&gt;
&lt;li&gt;Public storefront API endpoints.&lt;/li&gt;
&lt;li&gt;Example request bodies.&lt;/li&gt;
&lt;li&gt;Example API responses.&lt;/li&gt;
&lt;li&gt;Shopping cart and checkout documentation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Create an API Key
&lt;/h3&gt;

&lt;p&gt;In the API keys section:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enter a descriptive key name, such as &lt;code&gt;Atelier Noir Next.js Store&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Create API key&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated key immediately.&lt;/li&gt;
&lt;li&gt;Store it securely.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The full API key is displayed only once.&lt;/p&gt;

&lt;p&gt;If you lose it, generate a replacement through the dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Copy Your Store ID
&lt;/h3&gt;

&lt;p&gt;Scroll down to the &lt;strong&gt;Use the API&lt;/strong&gt; section.&lt;/p&gt;

&lt;p&gt;Locate the field labeled &lt;strong&gt;Your store ID&lt;/strong&gt; and click &lt;strong&gt;Copy ID&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We'll use this identifier when making requests to the authenticated management API.&lt;/p&gt;

&lt;p&gt;You'll also need your store slug for the public storefront API.&lt;/p&gt;

&lt;p&gt;The store slug appears in the public storefront examples in the Developers section.&lt;/p&gt;

&lt;p&gt;For this tutorial, our example slug is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;atelier-noir
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the actual slug assigned to your store.&lt;/p&gt;

&lt;h3&gt;
  
  
  Understand API Rate Limiting
&lt;/h3&gt;

&lt;p&gt;The Developers dashboard also allows you to configure the number of authenticated API requests permitted per minute.&lt;/p&gt;

&lt;p&gt;The documented default is 60 requests per minute, with a configurable range of 10 to 300.&lt;/p&gt;

&lt;p&gt;Each API key has its own rate-limit window.&lt;/p&gt;

&lt;p&gt;Requests exceeding the configured limit return HTTP status &lt;code&gt;429&lt;/code&gt;, together with rate-limit information.&lt;/p&gt;

&lt;p&gt;We'll cache our catalog requests in Next.js to avoid making unnecessary requests every time someone visits the website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Create Your Next.js Project
&lt;/h2&gt;

&lt;p&gt;Open your terminal and create a new Next.js application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-next-app@latest atelier-noir \
  --typescript \
  --tailwind \
  --eslint \
  --app \
  --src-dir \
  --use-npm \
  --import-alias &lt;span class="s2"&gt;"@/*"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Navigate into the application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; atelier-noir
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install a few additional dependencies.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install lucide-react server-only
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We'll use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next.js App Router for the application structure.&lt;/li&gt;
&lt;li&gt;TypeScript for type safety.&lt;/li&gt;
&lt;li&gt;Tailwind CSS for styling.&lt;/li&gt;
&lt;li&gt;Lucide React for interface icons.&lt;/li&gt;
&lt;li&gt;Server Components for secure data fetching.&lt;/li&gt;
&lt;li&gt;Client Components for shopping cart interactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start the development server.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see the default Next.js starter application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Configure Your Environment Variables
&lt;/h2&gt;

&lt;p&gt;Create a file named &lt;code&gt;.env.local&lt;/code&gt; in the root of your project.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SHOPRIVET_API_URL=https://api.shoprivet.io
SHOPRIVET_API_KEY=shoprivet_live_YOUR_KEY
SHOPRIVET_STORE_ID=YOUR_STORE_ID

NEXT_PUBLIC_SHOPRIVET_API_URL=https://api.shoprivet.io
NEXT_PUBLIC_SHOPRIVET_STORE_SLUG=atelier-noir
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the example API key, store ID, and store slug with your actual credentials.&lt;/p&gt;

&lt;p&gt;Restart the development server after changing environment variables.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Are Some Variables Public?
&lt;/h3&gt;

&lt;p&gt;Next.js treats variables prefixed with &lt;code&gt;NEXT_PUBLIC_&lt;/code&gt; as values that can be included in the browser bundle.&lt;/p&gt;

&lt;p&gt;Our storefront API URL and store slug aren't merchant secrets, so they can be public.&lt;/p&gt;

&lt;p&gt;The merchant API key is different.&lt;/p&gt;

&lt;p&gt;Never do this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NEXT_PUBLIC_SHOPRIVET_API_KEY=your-secret-key
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That would expose the merchant credential to users of your website.&lt;/p&gt;

&lt;p&gt;Anyone who obtains a sufficiently privileged merchant API key could potentially perform unauthorized store operations.&lt;/p&gt;

&lt;p&gt;Our private API key will remain on the Next.js server.&lt;/p&gt;

&lt;p&gt;Make sure &lt;code&gt;.env.local&lt;/code&gt; is excluded from Git.&lt;/p&gt;

&lt;p&gt;You can read more about this in the &lt;a href="https://nextjs.org/docs/app/guides/environment-variables" rel="noopener noreferrer"&gt;Next.js environment variables documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Organize the Project Structure
&lt;/h2&gt;

&lt;p&gt;We're going to use the following structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;atelier-noir/
├── .env.local
├── public/
│   └── images/
│       └── hero.jpg
└── src/
    ├── app/
    │   ├── globals.css
    │   ├── layout.tsx
    │   └── page.tsx
    ├── components/
    │   ├── storefront.tsx
    │   ├── product-card.tsx
    │   └── cart-panel.tsx
    ├── lib/
    │   ├── shoprivet-server.ts
    │   ├── shoprivet-public.ts
    │   └── currency.ts
    └── types/
        └── commerce.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This separates our server-side API integration, browser-facing commerce requests, reusable UI components, and TypeScript definitions.&lt;/p&gt;

&lt;p&gt;We don't need a Prisma schema, database migration, or separate REST API application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Define Our Commerce Types
&lt;/h2&gt;

&lt;p&gt;Create &lt;code&gt;src/types/commerce.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;These types represent the subset of Shoprivet's documented API responses that our storefront needs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;comparePrice&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;stock&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;trackStock&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;hasVariants&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;CartItem&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;productId&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;unitPrice&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;lineTotal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;Cart&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;CartItem&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;subtotal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;canCheckout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;PaymentMethod&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;withoutOnlinePayment&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;CheckoutResult&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;success&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;orderNumber&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;authorizationUrl&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;orderAccessToken&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;paymentMethod&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;payOnDelivery&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;orderNumber&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;paymentStatus&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are application-specific types rather than an exhaustive SDK.&lt;/p&gt;

&lt;p&gt;Check the current response examples in your Developers dashboard when extending the application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 9: Create a Secure Shoprivet API Client
&lt;/h2&gt;

&lt;p&gt;Create &lt;code&gt;src/lib/shoprivet-server.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This module will handle authenticated server-side requests.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s2"&gt;"server-only"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/types/commerce"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;API_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SHOPRIVET_API_URL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;ManagementProduct&lt;/span&gt;
  &lt;span class="k"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;Omit&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"hasVariants"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;ProductsResponse&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ManagementProduct&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;totalPages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getProducts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;apiKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SHOPRIVET_API_KEY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;storeId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SHOPRIVET_STORE_ID&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="no"&gt;API_URL&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;apiKey&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;storeId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Shoprivet credentials are missing."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`${API_URL}/v1/stores/${encodeURIComponent(storeId)}/products?page=1&amp;amp;limit=24`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${apiKey}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nc"&gt;Accept&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;revalidate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="sb"&gt;`Unable to retrieve products (${response.status}).`&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ProductsResponse&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"active"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;comparePrice&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;comparePrice&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;images&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;stock&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stock&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;trackStock&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;trackStock&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;hasVariants&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's understand what this code is doing.&lt;/p&gt;

&lt;p&gt;First, the request sends our private API key through the Bearer authentication header.&lt;/p&gt;

&lt;p&gt;Second, we retrieve products from the documented endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET /v1/stores/STORE_ID/products
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Third, we filter the results to published products and explicitly select the fields that can be passed to our customer-facing application.&lt;/p&gt;

&lt;p&gt;Management API responses may contain fields that aren't intended for public use.&lt;/p&gt;

&lt;p&gt;Avoid sending entire authenticated API responses to Client Components.&lt;/p&gt;

&lt;p&gt;Finally, we enable a 60-second revalidation period to reduce unnecessary calls to the API.&lt;/p&gt;

&lt;p&gt;The management API supports pagination using &lt;code&gt;page&lt;/code&gt; and &lt;code&gt;limit&lt;/code&gt;, with a documented maximum limit of 100.&lt;/p&gt;

&lt;p&gt;This example displays the first 24 products. Larger catalogs should implement pagination and account for drafts or inactive products when constructing the visible catalog.&lt;/p&gt;

&lt;p&gt;An alternative is to use the public product listing endpoint for the customer-facing catalog, which is preferable when you don't need authenticated access.&lt;/p&gt;

&lt;p&gt;We're demonstrating the management API here so you can understand how to make secure authenticated requests from Next.js.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 10: Create Our Public Storefront API Client
&lt;/h2&gt;

&lt;p&gt;Now we need a separate module for customer interactions.&lt;/p&gt;

&lt;p&gt;Create &lt;code&gt;src/lib/shoprivet-public.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Unlike our previous module, this one does not use the merchant API key.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;Cart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;CheckoutResult&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;PaymentMethod&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/types/commerce"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;API_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;NEXT_PUBLIC_SHOPRIVET_API_URL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;STORE_SLUG&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;NEXT_PUBLIC_SHOPRIVET_STORE_SLUG&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;BASE_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="sb"&gt;`${API_URL}/public/stores/${encodeURIComponent(STORE_SLUG ?? "")}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;CART_STORAGE_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="sb"&gt;`shoprivet:${STORE_SLUG}:cart`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;CHECKOUT_STORAGE_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="sb"&gt;`shoprivet:${STORE_SLUG}:checkout`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;CommerceError&lt;/span&gt; &lt;span class="k"&gt;extends&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;constructor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"CommerceError"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;request&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;T&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;RequestInit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;T&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Headers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Accept"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${credential}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${BASE_URL}${path}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"omit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;cache&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"no-store"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;204&lt;/span&gt;
      &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
      &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;CommerceError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt;
        &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;
        &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Commerce request failed (${response.status}).`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="no"&gt;T&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;createCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/carts"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Cart&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"/carts/current"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;credential&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;addCartItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;productId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"/carts/current/items"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;productId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;credential&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;getCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;updateCartItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;itemId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`/carts/current/items/${encodeURIComponent(itemId)}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PATCH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;credential&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;getCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;removeCartItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;itemId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`/carts/current/items/${encodeURIComponent(itemId)}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DELETE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;credential&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;getCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getPaymentMethods&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;methods&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;PaymentMethod&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/payment-methods"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;CheckoutInput&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;idempotencyKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;checkout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;CheckoutInput&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CheckoutResult&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"/carts/current/checkout"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;credential&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This module gives our React components reusable functions for interacting with Shoprivet.&lt;/p&gt;

&lt;p&gt;Notice that the Authorization header used here contains a guest cart credential, not the merchant API key.&lt;/p&gt;

&lt;p&gt;That distinction is essential.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding Server-Managed Guest Carts
&lt;/h2&gt;

&lt;p&gt;A common approach when building a React ecommerce website is to store the entire shopping cart in localStorage.&lt;/p&gt;

&lt;p&gt;That works for displaying items, but it introduces an important problem.&lt;/p&gt;

&lt;p&gt;The browser is not a trusted environment.&lt;/p&gt;

&lt;p&gt;A customer could modify local data, including prices, quantities, or product information.&lt;/p&gt;

&lt;p&gt;Shoprivet provides a server-managed guest cart API instead.&lt;/p&gt;

&lt;p&gt;When we create a cart:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_SLUG&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;carts&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The API returns a guest cart credential.&lt;/p&gt;

&lt;p&gt;We then send that credential when retrieving or modifying the cart.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Bearer&lt;/span&gt; &lt;span class="no"&gt;GUEST_CART_CREDENTIAL&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server is responsible for validating products, checking stock, calculating prices, and determining whether the cart can proceed to checkout.&lt;/p&gt;

&lt;p&gt;Our application only stores the credential needed to retrieve the customer's cart.&lt;/p&gt;

&lt;p&gt;We don't treat browser-calculated prices as authoritative.&lt;/p&gt;

&lt;p&gt;Guest credentials are scoped to their store and expire.&lt;/p&gt;

&lt;p&gt;If an existing credential returns &lt;code&gt;401&lt;/code&gt; or &lt;code&gt;410&lt;/code&gt;, the customer can start a new cart.&lt;/p&gt;

&lt;p&gt;Because browser storage is accessible to JavaScript, protecting your application against cross-site scripting is still important.&lt;/p&gt;

&lt;p&gt;Never store merchant API keys alongside guest cart credentials.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 11: Create a Currency Formatting Utility
&lt;/h2&gt;

&lt;p&gt;Create &lt;code&gt;src/lib/currency.ts&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;formatMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;currency&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"usd"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Intl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;NumberFormat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"en-US"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toUpperCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using &lt;code&gt;Intl.NumberFormat&lt;/code&gt; is preferable to manually adding a dollar sign to every product price.&lt;/p&gt;

&lt;p&gt;Our API returns currency information, which allows the storefront to format prices appropriately for different stores.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 12: Design the Product Card
&lt;/h2&gt;

&lt;p&gt;Now let's start building our storefront interface.&lt;/p&gt;

&lt;p&gt;Create &lt;code&gt;src/components/product-card.tsx&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Plus&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"lucide-react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/types/commerce"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;formatMoney&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/lib/currency"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;ProductCardProps&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;onAdd&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;productId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;ProductCard&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;onAdd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ProductCardProps&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;soldOut&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;trackStock&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stock&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stock&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;article&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"group"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"relative aspect-[3/4] overflow-hidden bg-stone-100"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="c1"&gt;// eslint-disable-next-line @next/next/no-img-element&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;
            &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;loading&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"lazy"&lt;/span&gt;
            &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105"&lt;/span&gt;
          &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex h-full items-center justify-center text-sm text-stone-400"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Image&lt;/span&gt; &lt;span class="n"&gt;unavailable&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;soldOut&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"absolute left-3 top-3 bg-white px-3 py-2 text-xs uppercase tracking-wide"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Sold&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;soldOut&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
          &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;comparePrice&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
          &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;comparePrice&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"absolute left-3 top-3 bg-black px-3 py-2 text-xs uppercase text-white"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Sale&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex items-start justify-between gap-3 py-4"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-sm font-medium"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-2 flex flex-wrap items-center gap-2 text-sm"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;formatMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;comparePrice&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
              &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;comparePrice&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-stone-400 line-through"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;formatMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                    &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;comparePrice&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currency&lt;/span&gt;
                  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
          &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"button"&lt;/span&gt;
          &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sb"&gt;`Add ${product.name} to cart`&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;disabled&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;soldOut&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hasVariants&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;onAdd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-stone-300 transition hover:border-black hover:bg-black hover:text-white disabled:cursor-not-allowed disabled:opacity-40"&lt;/span&gt;
        &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Plus&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hasVariants&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-xs text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="nc"&gt;Product&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt; &lt;span class="n"&gt;required&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;article&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We've designed the product card to have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Large product photography.&lt;/li&gt;
&lt;li&gt;Minimal typography.&lt;/li&gt;
&lt;li&gt;A circular add-to-cart button.&lt;/li&gt;
&lt;li&gt;Discount pricing.&lt;/li&gt;
&lt;li&gt;Sold-out indicators.&lt;/li&gt;
&lt;li&gt;Responsive dimensions.&lt;/li&gt;
&lt;li&gt;Hover animations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Products that require variant selection are intentionally disabled in this first implementation.&lt;/p&gt;

&lt;p&gt;We'll need a variant selection component before allowing purchases of those products.&lt;/p&gt;

&lt;p&gt;The browser's stock indicator is only a convenience. Shoprivet remains responsible for validating stock during cart operations and checkout.&lt;/p&gt;

&lt;p&gt;For simplicity, we're using a standard HTML image element. In a production application, you could use Next.js Image after configuring the appropriate trusted remote image hosts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 13: Build the Shopping Cart Interface
&lt;/h2&gt;

&lt;p&gt;Create &lt;code&gt;src/components/cart-panel.tsx&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Our shopping bag will display items, allow customers to update quantities, remove products, and proceed to checkout.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="s2"&gt;"use client"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;Minus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Plus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Trash2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="no"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;ShoppingBag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;ArrowRight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"lucide-react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;Cart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/types/commerce"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;formatMoney&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/lib/currency"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;CartPanelProps&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Cart&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;busy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;onClose&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;onQuantityChange&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;itemId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;onRemove&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;itemId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;onCheckout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;CartPanel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;busy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;onClose&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;onQuantityChange&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;onRemove&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;onCheckout&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;CartPanelProps&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;currency&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currency&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;"usd"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"fixed inset-0 z-50 flex justify-end"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
        &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"button"&lt;/span&gt;
        &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Close shopping bag"&lt;/span&gt;
        &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;onClose&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"absolute inset-0 bg-black/40"&lt;/span&gt;
      &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;

      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;aside&lt;/span&gt;
        &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"dialog"&lt;/span&gt;
        &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Shopping bag"&lt;/span&gt;
        &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"relative flex h-full w-full max-w-md flex-col bg-white shadow-2xl"&lt;/span&gt;
      &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;header&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex items-center justify-between border-b border-stone-200 px-6 py-5"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font-serif text-2xl"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Shopping&lt;/span&gt; &lt;span class="n"&gt;bag&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
            &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"button"&lt;/span&gt;
            &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;onClose&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Close shopping bag"&lt;/span&gt;
          &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;X&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex-1 overflow-y-auto p-6"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex h-full flex-col items-center justify-center gap-4 text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ShoppingBag&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;36&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;strokeWidth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Your&lt;/span&gt; &lt;span class="n"&gt;shopping&lt;/span&gt; &lt;span class="n"&gt;bag&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;empty&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
                &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;onClose&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"border-b border-black text-sm text-black"&lt;/span&gt;
              &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nc"&gt;Continue&lt;/span&gt; &lt;span class="n"&gt;shopping&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;productId&lt;/span&gt;
              &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

              &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;
                  &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                  &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex gap-4 border-b border-stone-200 py-5"&lt;/span&gt;
                &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"h-28 w-20 shrink-0 bg-stone-100"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
                      &lt;span class="c1"&gt;// eslint-disable-next-line @next/next/no-img-element&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;
                        &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                        &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                        &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"h-full w-full object-cover"&lt;/span&gt;
                      &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
                    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                  &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                  &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex flex-1 flex-col justify-between"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex justify-between gap-3"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-sm font-medium"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt;
                          &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt;
                          &lt;span class="s2"&gt;"Selected product"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
                        &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Remove item"&lt;/span&gt;
                        &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;busy&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                        &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;onRemove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Trash2&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-sm text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;formatMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                        &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;unitPrice&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                        &lt;span class="n"&gt;currency&lt;/span&gt;
                      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex items-center justify-between"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex items-center border border-stone-300"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
                          &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Decrease quantity"&lt;/span&gt;
                          &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                            &lt;span class="n"&gt;busy&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
                          &lt;span class="p"&gt;}&lt;/span&gt;
                          &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
                            &lt;span class="nf"&gt;onQuantityChange&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                              &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                              &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
                            &lt;span class="p"&gt;)&lt;/span&gt;
                          &lt;span class="p"&gt;}&lt;/span&gt;
                          &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"p-2 disabled:opacity-40"&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Minus&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"px-3 text-sm"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                          &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
                          &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Increase quantity"&lt;/span&gt;
                          &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                            &lt;span class="n"&gt;busy&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;99&lt;/span&gt;
                          &lt;span class="p"&gt;}&lt;/span&gt;
                          &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
                            &lt;span class="nf"&gt;onQuantityChange&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                              &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                              &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
                            &lt;span class="p"&gt;)&lt;/span&gt;
                          &lt;span class="p"&gt;}&lt;/span&gt;
                          &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"p-2 disabled:opacity-40"&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Plus&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;strong&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-sm font-medium"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;formatMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                          &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lineTotal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                          &lt;span class="n"&gt;currency&lt;/span&gt;
                        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;strong&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
          &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;footer&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"border-t border-stone-200 p-6"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-2 flex justify-between"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Subtotal&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;formatMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                  &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;subtotal&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;currency&lt;/span&gt;
                &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-6 flex justify-between text-lg font-medium"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Cart&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;formatMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                  &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;currency&lt;/span&gt;
                &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
              &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;busy&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;canCheckout&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;onCheckout&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex w-full items-center justify-center gap-3 bg-black px-6 py-4 text-sm text-white disabled:opacity-40"&lt;/span&gt;
            &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Proceed&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;checkout&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ArrowRight&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;footer&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;aside&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The cart displays totals returned by Shoprivet rather than calculating authoritative totals from product prices stored in React.&lt;/p&gt;

&lt;p&gt;The interface simply sends the customer's requested changes to the API.&lt;/p&gt;

&lt;p&gt;For example, increasing an item quantity uses:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;PATCH&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_SLUG&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;carts&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;CART_ITEM_ID&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Removing an item uses:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;DELETE&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_SLUG&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;carts&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;CART_ITEM_ID&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This prevents us from having to implement the underlying cart management and validation logic ourselves.&lt;/p&gt;

&lt;p&gt;Notice that cart item IDs are different from product IDs.&lt;/p&gt;

&lt;p&gt;Use the cart item ID when updating or removing an existing line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 14: Build the Main Next.js Storefront
&lt;/h2&gt;

&lt;p&gt;Now we're ready to bring everything together.&lt;/p&gt;

&lt;p&gt;First, add a fashion campaign photograph to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public/images/hero.jpg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can use an original photograph or an appropriately licensed image.&lt;/p&gt;

&lt;p&gt;A wide editorial photograph featuring neutral clothing, minimal architecture, and natural lighting would work well with this design.&lt;/p&gt;

&lt;p&gt;Create &lt;code&gt;src/components/storefront.tsx&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="s2"&gt;"use client"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;useRef&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;FormEvent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;ShoppingBag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Search&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;ArrowUpRight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;ArrowRight&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="no"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;CheckCircle2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Package&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;ShieldCheck&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"lucide-react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;ProductCard&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"./product-card"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;CartPanel&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"./cart-panel"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;Cart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;PaymentMethod&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;CheckoutResult&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/types/commerce"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="no"&gt;CART_STORAGE_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="no"&gt;CHECKOUT_STORAGE_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nc"&gt;CommerceError&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;createCart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;getCart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;addCartItem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;updateCartItem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;removeCartItem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;getPaymentMethods&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;checkout&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;CheckoutInput&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/lib/shoprivet-public"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;formatMoney&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/lib/currency"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;Storefront&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setQuery&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setCart&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useState&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Cart&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;cartOpen&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setCartOpen&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;checkoutOpen&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setCheckoutOpen&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;ready&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setReady&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;busy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setBusy&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setError&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;methods&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setMethods&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useState&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;
    &lt;span class="nc"&gt;PaymentMethod&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setProvider&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setName&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setEmail&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setResult&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="n"&gt;useState&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CheckoutResult&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;credential&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;locked&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useRef&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pendingCheckout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CheckoutInput&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="kc"&gt;null&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;mounted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;restoreCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;saved&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="no"&gt;CART_STORAGE_KEY&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;saved&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;saved&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;existingCart&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;saved&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mounted&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="nf"&gt;setCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;existingCart&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;mounted&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="k"&gt;instanceof&lt;/span&gt; &lt;span class="nc"&gt;CommerceError&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
          &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;401&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;410&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;CART_STORAGE_KEY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="nf"&gt;setError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Unable to restore your shopping bag."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mounted&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;setReady&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;restoreCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;mounted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;locked&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;locked&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;setBusy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;setError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="k"&gt;instanceof&lt;/span&gt; &lt;span class="nc"&gt;CommerceError&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
        &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;401&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;410&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;CART_STORAGE_KEY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nf"&gt;setCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="nf"&gt;setError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="s2"&gt;"Your shopping bag has expired. Please add your products again."&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;setError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="k"&gt;instanceof&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;
            &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;
            &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Something went wrong. Please try again."&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;locked&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nf"&gt;setBusy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;ensureCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;created&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;createCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;created&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="no"&gt;CART_STORAGE_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;created&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;created&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;addProduct&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;productId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;ensureCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;updated&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;addCartItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;productId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="mi"&gt;1&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="nf"&gt;setCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;updated&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nf"&gt;setCartOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nf"&gt;setResult&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;changeQuantity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;itemId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;updated&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;updateCartItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;itemId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;quantity&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="nf"&gt;setCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;updated&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;removeProduct&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;itemId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;updated&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;removeCartItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;itemId&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="nf"&gt;setCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;updated&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;openCheckout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;canCheckout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getPaymentMethods&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;methods&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="s2"&gt;"No payment methods are available."&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="nf"&gt;setMethods&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;methods&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nf"&gt;setProvider&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;methods&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nf"&gt;setCartOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nf"&gt;setCheckoutOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;placeOrder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;FormEvent&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;HTMLFormElement&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;preventDefault&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;canCheckout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="s2"&gt;"Your shopping bag is not ready for checkout."&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Select a payment method."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="c1"&gt;// Keep the same payload and idempotency key&lt;/span&gt;
      &lt;span class="c1"&gt;// when retrying an unresolved checkout.&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;idempotencyKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randomUUID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;checkout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;success&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="s2"&gt;"Checkout was not completed."&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="c1"&gt;// Retain the limited order credential for&lt;/span&gt;
      &lt;span class="c1"&gt;// authorized order lookup after payment.&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orderAccessToken&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;sessionStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="no"&gt;CHECKOUT_STORAGE_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;orderNumber&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orderNumber&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;orderAccessToken&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orderAccessToken&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;authorizationUrl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;assign&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;authorizationUrl&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="nf"&gt;setResult&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nf"&gt;setCheckoutOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nf"&gt;setCartOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="n"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;removeItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;CART_STORAGE_KEY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="nf"&gt;setCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;filteredProducts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
    &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;itemCount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"min-h-screen bg-white text-stone-900"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"bg-stone-900 px-4 py-3 text-center text-[10px] uppercase tracking-[0.25em] text-white"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nc"&gt;Thoughtfully&lt;/span&gt; &lt;span class="n"&gt;selected&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nc"&gt;Timeless&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="n"&gt;design&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;header&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"sticky top-0 z-30 border-b border-stone-200 bg-white"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;nav&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mx-auto flex h-20 max-w-[1440px] items-center justify-between px-5 md:px-12"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;
            &lt;span class="n"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"#"&lt;/span&gt;
            &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font-serif text-xl tracking-[0.2em] md:text-2xl"&lt;/span&gt;
          &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="no"&gt;ATELIER&lt;/span&gt; &lt;span class="no"&gt;NOIR&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"hidden items-center gap-9 text-xs uppercase tracking-widest md:flex"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"#collection"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Collection&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"#about"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Our&lt;/span&gt; &lt;span class="n"&gt;philosophy&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
            &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"button"&lt;/span&gt;
            &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;ready&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;setCartOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex items-center gap-3"&lt;/span&gt;
            &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sb"&gt;`Shopping bag, ${itemCount} items`&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ShoppingBag&lt;/span&gt;
              &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="n"&gt;strokeWidth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mf"&gt;1.5&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-xs"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;itemCount&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;nav&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"grid min-h-[540px] bg-[#f3f1ed] md:grid-cols-2"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex flex-col justify-center px-8 py-16 md:px-16 lg:px-24"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-6 text-[10px] uppercase tracking-[0.3em] text-stone-600"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;everyday&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h1&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"max-w-xl font-serif text-5xl leading-[1.05] md:text-6xl lg:text-7xl"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Less&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;but&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;br&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
              &lt;span class="n"&gt;considered&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-7 max-w-sm text-sm leading-7 text-stone-600"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="no"&gt;A&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;contemporary&lt;/span&gt; &lt;span class="n"&gt;essentials&lt;/span&gt;
              &lt;span class="n"&gt;designed&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;fit&lt;/span&gt; &lt;span class="n"&gt;effortlessly&lt;/span&gt; &lt;span class="n"&gt;into&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt;
              &lt;span class="n"&gt;everyday&lt;/span&gt; &lt;span class="n"&gt;life&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;
              &lt;span class="n"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"#collection"&lt;/span&gt;
              &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-9 inline-flex w-fit items-center gap-8 bg-black px-7 py-4 text-xs uppercase tracking-widest text-white transition hover:bg-stone-700"&lt;/span&gt;
            &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Explore&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ArrowUpRight&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"relative min-h-[400px] overflow-hidden"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="cm"&gt;/* eslint-disable-next-line @next/next/no-img-element */&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt;
              &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"/images/hero.jpg"&lt;/span&gt;
              &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Atelier Noir fashion collection"&lt;/span&gt;
              &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"absolute inset-0 h-full w-full object-cover"&lt;/span&gt;
            &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;
          &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"collection"&lt;/span&gt;
          &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mx-auto max-w-[1440px] scroll-mt-24 px-5 py-20 md:px-12"&lt;/span&gt;
        &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-10 flex flex-col justify-between gap-6 md:flex-row md:items-end"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-3 text-[10px] uppercase tracking-[0.25em] text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nc"&gt;Curated&lt;/span&gt; &lt;span class="n"&gt;essentials&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font-serif text-4xl md:text-5xl"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nc"&gt;Discover&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-4 text-sm text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nc"&gt;Explore&lt;/span&gt; &lt;span class="n"&gt;pieces&lt;/span&gt; &lt;span class="n"&gt;made&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;everyday&lt;/span&gt; &lt;span class="n"&gt;wardrobe&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"relative w-full md:w-64"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Search&lt;/span&gt;
                &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"absolute left-3 top-3 text-stone-400"&lt;/span&gt;
              &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;
                &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"search"&lt;/span&gt;
                &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Search products"&lt;/span&gt;
                &lt;span class="n"&gt;placeholder&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Search products"&lt;/span&gt;
                &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;onChange&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
                  &lt;span class="nf"&gt;setQuery&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"w-full border border-stone-300 py-3 pl-10 pr-4 text-sm outline-none focus:border-black"&lt;/span&gt;
              &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-6 text-xs uppercase tracking-widest text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;filteredProducts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"grid grid-cols-2 gap-x-5 gap-y-10 md:grid-cols-3 lg:grid-cols-4"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;filteredProducts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ProductCard&lt;/span&gt;
                &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;onAdd&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;addProduct&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;ready&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;busy&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;checkoutOpen&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;filteredProducts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"py-20 text-center text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;No&lt;/span&gt; &lt;span class="n"&gt;matching&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="n"&gt;found&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;
          &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"about"&lt;/span&gt;
          &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"bg-[#f3f1ed] px-6 py-24 text-center"&lt;/span&gt;
        &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-5 text-[10px] uppercase tracking-[0.3em] text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Our&lt;/span&gt; &lt;span class="n"&gt;philosophy&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mx-auto max-w-3xl font-serif text-4xl leading-tight md:text-5xl"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Good&lt;/span&gt; &lt;span class="n"&gt;design&lt;/span&gt; &lt;span class="n"&gt;begins&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;things&lt;/span&gt; &lt;span class="n"&gt;we&lt;/span&gt; &lt;span class="n"&gt;choose&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;keep&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mx-auto mt-6 max-w-xl text-sm leading-7 text-stone-600"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Atelier&lt;/span&gt; &lt;span class="nc"&gt;Noir&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;an&lt;/span&gt; &lt;span class="n"&gt;exploration&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;simplicity&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="n"&gt;individuality&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;beauty&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;everyday&lt;/span&gt; &lt;span class="n"&gt;essentials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mx-auto grid max-w-6xl gap-8 px-6 py-12 text-center sm:grid-cols-2"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex flex-col items-center gap-3"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Package&lt;/span&gt;
              &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;23&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="n"&gt;strokeWidth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mf"&gt;1.3&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-sm font-medium"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Order&lt;/span&gt; &lt;span class="n"&gt;management&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-xs text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Orders&lt;/span&gt; &lt;span class="n"&gt;processed&lt;/span&gt; &lt;span class="n"&gt;through&lt;/span&gt; &lt;span class="n"&gt;our&lt;/span&gt; &lt;span class="n"&gt;commerce&lt;/span&gt; &lt;span class="n"&gt;platform&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex flex-col items-center gap-3"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ShieldCheck&lt;/span&gt;
              &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;23&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="n"&gt;strokeWidth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mf"&gt;1.3&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-sm font-medium"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Secure&lt;/span&gt; &lt;span class="n"&gt;checkout&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-xs text-stone-500"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Payments&lt;/span&gt; &lt;span class="n"&gt;through&lt;/span&gt; &lt;span class="n"&gt;supported&lt;/span&gt; &lt;span class="n"&gt;payment&lt;/span&gt; &lt;span class="n"&gt;providers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;footer&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"bg-stone-900 px-6 py-16 text-white md:px-12"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mx-auto flex max-w-[1440px] flex-col justify-between gap-8 md:flex-row"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font-serif text-2xl tracking-widest"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="no"&gt;ATELIER&lt;/span&gt; &lt;span class="no"&gt;NOIR&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-4 max-w-xs text-sm leading-6 text-stone-400"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Contemporary&lt;/span&gt; &lt;span class="n"&gt;essentials&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;everyday&lt;/span&gt; &lt;span class="n"&gt;living&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex flex-col gap-4 text-sm text-stone-300"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"#collection"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Shop&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"#about"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;About&lt;/span&gt; &lt;span class="nc"&gt;Atelier&lt;/span&gt; &lt;span class="nc"&gt;Noir&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;
              &lt;span class="n"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://shoprivet.io"&lt;/span&gt;
              &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-stone-400"&lt;/span&gt;
            &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Commerce&lt;/span&gt; &lt;span class="n"&gt;powered&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt; &lt;span class="nc"&gt;Shoprivet&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;footer&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;cartOpen&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CartPanel&lt;/span&gt;
          &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;busy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;busy&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;onClose&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;setCartOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;onQuantityChange&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;changeQuantity&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;onRemove&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;removeProduct&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="n"&gt;onCheckout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;openCheckout&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;checkoutOpen&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"fixed inset-0 z-[60] flex items-center justify-center overflow-y-auto bg-black/50 p-4"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;
            &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"dialog"&lt;/span&gt;
            &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Checkout"&lt;/span&gt;
            &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"max-h-[90vh] w-full max-w-lg overflow-y-auto bg-white p-7 md:p-10"&lt;/span&gt;
          &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-7 flex items-center justify-between"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font-serif text-3xl"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="nc"&gt;Checkout&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
                &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;busy&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Close checkout"&lt;/span&gt;
                &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="nf"&gt;setError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                      &lt;span class="s2"&gt;"Resolve the pending checkout before changing your order."&lt;/span&gt;
                    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

                    &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                  &lt;span class="p"&gt;}&lt;/span&gt;

                  &lt;span class="nf"&gt;setCheckoutOpen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;X&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;
              &lt;span class="n"&gt;onSubmit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;placeOrder&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"space-y-5"&lt;/span&gt;
            &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;
                  &lt;span class="n"&gt;htmlFor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"customer-name"&lt;/span&gt;
                  &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-2 block text-sm"&lt;/span&gt;
                &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="nc"&gt;Full&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;
                  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"customer-name"&lt;/span&gt;
                  &lt;span class="n"&gt;required&lt;/span&gt;
                  &lt;span class="n"&gt;autoComplete&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"name"&lt;/span&gt;
                  &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="n"&gt;busy&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                  &lt;span class="p"&gt;}&lt;/span&gt;
                  &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                  &lt;span class="n"&gt;onChange&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
                    &lt;span class="nf"&gt;setName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                  &lt;span class="p"&gt;}&lt;/span&gt;
                  &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"w-full border border-stone-300 p-3 outline-none focus:border-black"&lt;/span&gt;
                &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;
                  &lt;span class="n"&gt;htmlFor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"customer-email"&lt;/span&gt;
                  &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-2 block text-sm"&lt;/span&gt;
                &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="nc"&gt;Email&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;
                  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"customer-email"&lt;/span&gt;
                  &lt;span class="n"&gt;required&lt;/span&gt;
                  &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;
                  &lt;span class="n"&gt;autoComplete&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;
                  &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="n"&gt;busy&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                  &lt;span class="p"&gt;}&lt;/span&gt;
                  &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                  &lt;span class="n"&gt;onChange&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
                    &lt;span class="nf"&gt;setEmail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                  &lt;span class="p"&gt;}&lt;/span&gt;
                  &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"w-full border border-stone-300 p-3 outline-none focus:border-black"&lt;/span&gt;
                &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;fieldset&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;legend&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-3 text-sm"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="nc"&gt;Payment&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;legend&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"space-y-3"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;methods&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
                    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;
                      &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                      &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex cursor-pointer items-center gap-3 border border-stone-300 p-4 text-sm"&lt;/span&gt;
                    &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;
                        &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"radio"&lt;/span&gt;
                        &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"payment-method"&lt;/span&gt;
                        &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                        &lt;span class="n"&gt;checked&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                          &lt;span class="n"&gt;provider&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;provider&lt;/span&gt;
                        &lt;span class="p"&gt;}&lt;/span&gt;
                        &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                          &lt;span class="n"&gt;busy&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
                          &lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                        &lt;span class="p"&gt;}&lt;/span&gt;
                        &lt;span class="n"&gt;onChange&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
                          &lt;span class="nf"&gt;setProvider&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                        &lt;span class="p"&gt;}&lt;/span&gt;
                      &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;

                      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;fieldset&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex justify-between border-t border-stone-200 pt-5 text-sm"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Cart&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

                &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;strong&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;formatMoney&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                    &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="n"&gt;cart&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currency&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;"usd"&lt;/span&gt;
                  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;strong&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

              &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
                &lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;busy&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"submit"&lt;/span&gt;
                &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex w-full items-center justify-center gap-3 bg-black py-4 text-sm text-white disabled:opacity-50"&lt;/span&gt;
              &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;busy&lt;/span&gt;
                  &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"Processing..."&lt;/span&gt;
                  &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;pendingCheckout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;
                    &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"Retry checkout"&lt;/span&gt;
                    &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Place order"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

                &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;busy&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ArrowRight&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
              &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;
          &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"status"&lt;/span&gt;
          &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"fixed bottom-5 right-5 z-[70] max-w-sm border border-stone-200 bg-white p-6 shadow-xl"&lt;/span&gt;
        &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;CheckCircle2&lt;/span&gt;
            &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;28&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mb-3 text-green-700"&lt;/span&gt;
          &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font-serif text-2xl"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Order&lt;/span&gt; &lt;span class="n"&gt;received&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;h3&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-3 text-sm text-stone-600"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Order&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orderNumber&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-2 text-sm"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Payment&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;" "&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;paymentStatus&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;"Not confirmed"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;payOnDelivery&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-2 text-sm text-stone-600"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
              &lt;span class="nc"&gt;Payment&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;due&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt; &lt;span class="n"&gt;delivery&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
            &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;setResult&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mt-5 border-b border-black text-sm"&lt;/span&gt;
          &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nc"&gt;Continue&lt;/span&gt; &lt;span class="n"&gt;shopping&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;
          &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"alert"&lt;/span&gt;
          &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"fixed bottom-5 left-5 right-5 z-[80] flex max-w-md items-start justify-between gap-4 border border-red-200 bg-white p-4 text-sm text-red-700 shadow-xl"&lt;/span&gt;
        &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;span&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

          &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;
            &lt;span class="n"&gt;aria&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Dismiss error"&lt;/span&gt;
            &lt;span class="n"&gt;onClick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;setError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;X&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the main interactive component of our ecommerce website.&lt;/p&gt;

&lt;p&gt;It handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Searching products.&lt;/li&gt;
&lt;li&gt;Creating a guest cart when needed.&lt;/li&gt;
&lt;li&gt;Restoring an existing cart after refreshing the page.&lt;/li&gt;
&lt;li&gt;Adding products.&lt;/li&gt;
&lt;li&gt;Updating quantities.&lt;/li&gt;
&lt;li&gt;Removing products.&lt;/li&gt;
&lt;li&gt;Loading available payment methods.&lt;/li&gt;
&lt;li&gt;Customer checkout.&lt;/li&gt;
&lt;li&gt;Redirecting customers to payment providers.&lt;/li&gt;
&lt;li&gt;Displaying order confirmation.&lt;/li&gt;
&lt;li&gt;Handling errors and preventing overlapping operations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The important thing is that we're only implementing the shopping experience.&lt;/p&gt;

&lt;p&gt;Shoprivet is responsible for the underlying commerce operations.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Note About This Checkout Example
&lt;/h3&gt;

&lt;p&gt;We've kept the initial checkout form close to the documented basic API example, which uses the customer's name, email, selected provider, and idempotency key.&lt;/p&gt;

&lt;p&gt;For a production physical-product store, you should also implement any required shipping address fields, phone number, delivery options, taxes, and applicable disclosures using the current checkout API schema.&lt;/p&gt;

&lt;p&gt;Our minimal example should not be treated as a complete shipping and tax implementation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Do We Use an Idempotency Key?
&lt;/h3&gt;

&lt;p&gt;Imagine a customer clicks Place order, but their internet connection temporarily fails.&lt;/p&gt;

&lt;p&gt;The server may have received the request even though the browser didn't receive a successful response.&lt;/p&gt;

&lt;p&gt;Immediately sending a completely new checkout request could create unintended duplicate orders.&lt;/p&gt;

&lt;p&gt;Shoprivet's checkout documentation supports an idempotency key.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randomUUID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We generate this key once for a particular checkout attempt and reuse it when retrying the same request.&lt;/p&gt;

&lt;p&gt;Our example preserves the pending checkout in memory while the page remains open.&lt;/p&gt;

&lt;p&gt;A production implementation should persist unresolved checkout attempts securely across page reloads and provide an explicit recovery flow before allowing a new checkout attempt.&lt;/p&gt;

&lt;p&gt;Do not automatically generate a new idempotency key when the outcome of the previous request is uncertain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 15: Connect the Server Component to Our Storefront
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;src/app/page.tsx&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Replace its contents with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Storefront&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/components/storefront"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;getProducts&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/lib/shoprivet-server"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;Home&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getProducts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Storefront&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This page is a Next.js Server Component.&lt;/p&gt;

&lt;p&gt;It retrieves our product catalog from Shoprivet using the merchant API key.&lt;/p&gt;

&lt;p&gt;Only the selected product fields are passed to the interactive Storefront component.&lt;/p&gt;

&lt;p&gt;The private API key never becomes part of the browser bundle.&lt;/p&gt;

&lt;p&gt;This is one of the advantages of using Next.js for headless ecommerce.&lt;/p&gt;

&lt;p&gt;You can combine secure server-side requests with interactive client-side components within the same application.&lt;/p&gt;

&lt;p&gt;You don't need to deploy a separate service simply to retrieve product information.&lt;/p&gt;

&lt;p&gt;For more information, see the official &lt;a href="https://nextjs.org/docs/app/getting-started/server-and-client-components" rel="noopener noreferrer"&gt;Next.js Server and Client Components documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 16: Configure the Global Layout and Typography
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;src/app/layout.tsx&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Metadata&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"next"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;DM_Sans&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Cormorant_Garamond&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"next/font/google"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="s2"&gt;"./globals.css"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sans&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;DM_Sans&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;subsets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"latin"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;variable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"--font-store-sans"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;serif&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Cormorant_Garamond&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;subsets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"latin"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"400"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"500"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"600"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;variable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"--font-store-serif"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Atelier Noir | Contemporary Essentials"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"Discover contemporary clothing and everyday essentials at Atelier Noir."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;RootLayout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Readonly&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ReactNode&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt; &lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;
        &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sb"&gt;`${sans.variable} ${serif.variable} antialiased`&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We're using two complementary typefaces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DM Sans for navigation, buttons, and body text.&lt;/li&gt;
&lt;li&gt;Cormorant Garamond for large editorial headings.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now update &lt;code&gt;src/app/globals.css&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This example uses Tailwind CSS 4 syntax.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@import&lt;/span&gt; &lt;span class="s2"&gt;"tailwindcss"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;@theme&lt;/span&gt; &lt;span class="nt"&gt;inline&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--font-sans&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--font-store-sans&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--font-serif&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--font-store-serif&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;html&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;scroll-behavior&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;smooth&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#ffffff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#1c1917&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;--font-store-sans&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sans-serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;button&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nf"&gt;not&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;disabled&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;pointer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;button&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="nt"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;-webkit-tap-highlight-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;transparent&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;button&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;focus-visible&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="nt"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;focus-visible&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="nt"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;focus-visible&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;outline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2px&lt;/span&gt; &lt;span class="n"&gt;solid&lt;/span&gt; &lt;span class="mh"&gt;#78716c&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;outline-offset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;selection&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#1c1917&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#ffffff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our visual direction intentionally avoids unnecessary gradients, excessive rounded cards, and complicated animations.&lt;/p&gt;

&lt;p&gt;The typography, whitespace, and product photography create the character of the storefront.&lt;/p&gt;

&lt;p&gt;Because we're building our own interface, we have complete control over these design decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 17: Configure Payment Methods in Shoprivet
&lt;/h2&gt;

&lt;p&gt;We've implemented the frontend checkout experience, but we still need to configure how the merchant receives payments.&lt;/p&gt;

&lt;p&gt;Return to your Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;Navigate to &lt;strong&gt;Store settings&lt;/strong&gt; and locate the payment configuration section.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" alt="Configuring payment methods in Shoprivet" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Depending on your store configuration and merchant eligibility, available options can include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stripe.&lt;/li&gt;
&lt;li&gt;Paystack.&lt;/li&gt;
&lt;li&gt;Flutterwave.&lt;/li&gt;
&lt;li&gt;Razorpay.&lt;/li&gt;
&lt;li&gt;PayPal.&lt;/li&gt;
&lt;li&gt;Cash on delivery.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Select the payment provider appropriate for your business.&lt;/p&gt;

&lt;p&gt;For example, if you're using Stripe, configure your Stripe merchant account through the dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F07e61w0df74m5hrszf7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F07e61w0df74m5hrszf7o.png" alt="Stripe payment gateway configuration in Shoprivet" width="800" height="638"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow the provided configuration instructions, including any required webhook setup.&lt;/p&gt;

&lt;p&gt;For supported payment gateways, the public API documentation describes the webhook route using this structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://api.shoprivet.io/public/stores/STORE_SLUG/payments/PROVIDER/webhook
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the exact provider-specific configuration displayed in your dashboard.&lt;/p&gt;

&lt;p&gt;Never place payment provider secret keys in customer-facing Next.js components.&lt;/p&gt;

&lt;h3&gt;
  
  
  How Are Payment Methods Loaded?
&lt;/h3&gt;

&lt;p&gt;You may have noticed that we didn't hardcode Stripe or Paystack into the checkout form.&lt;/p&gt;

&lt;p&gt;Instead, we retrieve the available methods from:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_SLUG&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;payment&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;methods&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An example response from the documentation looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"usd"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"methods"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"provider"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cash_on_delivery"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Cash on delivery"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"withoutOnlinePayment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Our React component renders these available methods dynamically.&lt;/p&gt;

&lt;p&gt;This allows the merchant to manage payment configurations independently of the frontend code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 18: Test the Custom Storefront
&lt;/h2&gt;

&lt;p&gt;Start your Next.js application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;http://localhost:3000&lt;/code&gt; in your browser.&lt;/p&gt;

&lt;p&gt;If your environment variables are correct and the store has published products, the storefront should retrieve and display your catalog.&lt;/p&gt;

&lt;p&gt;You should now have a custom online store featuring your own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Navigation.&lt;/li&gt;
&lt;li&gt;Hero section.&lt;/li&gt;
&lt;li&gt;Typography.&lt;/li&gt;
&lt;li&gt;Product grid.&lt;/li&gt;
&lt;li&gt;Product photography.&lt;/li&gt;
&lt;li&gt;Search functionality.&lt;/li&gt;
&lt;li&gt;Shopping cart.&lt;/li&gt;
&lt;li&gt;Checkout interface.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these components were generated using Shoprivet's storefront builder.&lt;/p&gt;

&lt;p&gt;They're all part of our custom Next.js application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test Adding Products to the Cart
&lt;/h3&gt;

&lt;p&gt;Click the plus icon on any available product.&lt;/p&gt;

&lt;p&gt;The first time a customer adds a product, the application creates a guest cart through Shoprivet.&lt;/p&gt;

&lt;p&gt;It then adds the selected product to that cart using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_SLUG&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;carts&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The cart response is retrieved and displayed in our shopping bag.&lt;/p&gt;

&lt;p&gt;Try the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add a product.&lt;/li&gt;
&lt;li&gt;Add another product.&lt;/li&gt;
&lt;li&gt;Increase a product quantity.&lt;/li&gt;
&lt;li&gt;Decrease the quantity.&lt;/li&gt;
&lt;li&gt;Remove an item.&lt;/li&gt;
&lt;li&gt;Refresh the browser.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The shopping cart should be restored using the saved guest credential, provided the cart is still valid.&lt;/p&gt;

&lt;p&gt;You should also test what happens when stock becomes unavailable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 19: Place Your First Test Order
&lt;/h2&gt;

&lt;p&gt;For the simplest initial test, enable cash on delivery in your store if it is available.&lt;/p&gt;

&lt;p&gt;This allows you to test order creation without immediately configuring a card payment workflow.&lt;/p&gt;

&lt;p&gt;Open your shopping bag and click &lt;strong&gt;Proceed to checkout&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Enter your customer details and select an available payment method.&lt;/p&gt;

&lt;p&gt;When you submit the form, our application calls:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_SLUG&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;carts&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;checkout&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The basic request follows this structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Demo Customer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"customer@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"provider"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cash_on_delivery"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"idempotencyKey"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"YOUR_UNIQUE_CHECKOUT_KEY"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Shoprivet already has access to the products in the server-managed cart.&lt;/p&gt;

&lt;p&gt;The application doesn't need to send browser-calculated prices or an authoritative order total.&lt;/p&gt;

&lt;p&gt;An example response for a cash-on-delivery order looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"success"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"orderNumber"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SRV-20260919-0001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"paymentMethod"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cash_on_delivery"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"payOnDelivery"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"order"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"orderNumber"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SRV-20260919-0001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pending"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"paymentStatus"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"unpaid"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"total"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;35&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"usd"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a shortened illustrative response based on the API documentation.&lt;/p&gt;

&lt;p&gt;Notice that a successful order creation does not necessarily mean that payment has been received.&lt;/p&gt;

&lt;p&gt;A cash-on-delivery order can be successfully created while its payment status remains unpaid.&lt;/p&gt;

&lt;p&gt;Our storefront displays an order-received message rather than incorrectly telling the customer that payment has been completed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 20: Handle Online Payment Confirmation
&lt;/h2&gt;

&lt;p&gt;When using an online payment provider, the checkout API may return an authorization URL.&lt;/p&gt;

&lt;p&gt;Our frontend redirects the customer using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;assign&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;authorizationUrl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The customer completes the payment through the provider's supported payment interface.&lt;/p&gt;

&lt;p&gt;After payment, the customer returns to the appropriate store or configured payment return flow.&lt;/p&gt;

&lt;p&gt;However, returning from a payment provider does not automatically prove that the payment was successful.&lt;/p&gt;

&lt;p&gt;The payment must be verified.&lt;/p&gt;

&lt;p&gt;Shoprivet provides a payment confirmation endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;stores&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;STORE_SLUG&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="no"&gt;ORDER_NUMBER&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;confirm&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The request uses the limited order access token returned by the checkout flow.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;ConfirmPaymentInput&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;storeSlug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;orderNumber&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;orderAccessToken&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;reference&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;confirmPayment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;storeSlug&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;orderNumber&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;orderAccessToken&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reference&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ConfirmPaymentInput&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`https://api.shoprivet.io/public/stores/${encodeURIComponent(storeSlug)}/orders/${encodeURIComponent(orderNumber)}/confirm`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"omit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${orderAccessToken}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;reference&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Payment could not be confirmed."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The reference must come from the appropriate payment provider's real return flow.&lt;/p&gt;

&lt;p&gt;Do not invent payment references or treat a query parameter such as &lt;code&gt;success=true&lt;/code&gt; as proof of payment.&lt;/p&gt;

&lt;h3&gt;
  
  
  Retrieving an Existing Order
&lt;/h3&gt;

&lt;p&gt;Shoprivet also provides a protected order lookup endpoint.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getOrder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;storeSlug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;orderNumber&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;orderAccessToken&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`https://api.shoprivet.io/public/stores/${encodeURIComponent(storeSlug)}/orders/${encodeURIComponent(orderNumber)}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"omit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${orderAccessToken}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;cache&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"no-store"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Unable to retrieve order."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An order confirmation page can use this function to retrieve the latest order information.&lt;/p&gt;

&lt;p&gt;Only show a payment-completed message when the verified response indicates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;paymentStatus&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"paid"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your payment integration should also configure provider webhooks as documented.&lt;/p&gt;

&lt;p&gt;Webhooks allow payment information to be processed independently of whether the customer successfully returns to the website.&lt;/p&gt;

&lt;h3&gt;
  
  
  Custom Payment Return Pages
&lt;/h3&gt;

&lt;p&gt;To support online payments entirely within your own custom Next.js storefront, configure the return flow according to the payment provider and Shoprivet's supported callback configuration.&lt;/p&gt;

&lt;p&gt;For example, your application could have a route such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/checkout/return
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That route would:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Retrieve the relevant order access credential.&lt;/li&gt;
&lt;li&gt;Read the provider-specific payment reference.&lt;/li&gt;
&lt;li&gt;Call the payment confirmation endpoint.&lt;/li&gt;
&lt;li&gt;Retrieve the verified order information.&lt;/li&gt;
&lt;li&gt;Display the actual payment status.&lt;/li&gt;
&lt;li&gt;Clear the completed cart when appropriate.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The exact callback configuration and return query parameters can differ across providers.&lt;/p&gt;

&lt;p&gt;Confirm these details before implementing your custom return page.&lt;/p&gt;

&lt;p&gt;The checkout example in this article demonstrates payment initiation. It does not assume an undocumented callback URL parameter or provide a universal callback implementation for every payment gateway.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 21: Manage Your Orders From the Shoprivet Dashboard
&lt;/h2&gt;

&lt;p&gt;Return to your Shoprivet dashboard after placing a test order.&lt;/p&gt;

&lt;p&gt;Navigate to &lt;strong&gt;Orders&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qsorx00roqx7lxbo4gp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qsorx00roqx7lxbo4gp.png" alt="Managing ecommerce orders in the Shoprivet dashboard" width="799" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your merchant can review purchases without accessing the Next.js source code.&lt;/p&gt;

&lt;p&gt;Open an individual order to view the customer and purchase information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisw7oozr1j4q96twu6fv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisw7oozr1j4q96twu6fv.png" alt="Viewing customer order and fulfillment details" width="800" height="489"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Depending on the order, the merchant can manage its fulfillment progress through the available status controls.&lt;/p&gt;

&lt;p&gt;The dashboard also provides a centralized interface for ongoing ecommerce operations.&lt;/p&gt;

&lt;p&gt;Shoprivet supports order notifications, allowing merchants to receive notifications about new purchases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbjx2o3aoecauva5hn5w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbjx2o3aoecauva5hn5w.png" alt="Example of an ecommerce order notification email" width="799" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is particularly useful when you're building a custom website for a client.&lt;/p&gt;

&lt;p&gt;You don't have to develop an entire administrative dashboard before handing over the website.&lt;/p&gt;

&lt;p&gt;Your client can manage their products, inventory, and orders through Shoprivet.&lt;/p&gt;

&lt;p&gt;You can concentrate on maintaining the customer-facing Next.js application.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Create Products Programmatically
&lt;/h2&gt;

&lt;p&gt;So far, we've created products through the dashboard.&lt;/p&gt;

&lt;p&gt;However, the Developers documentation also allows you to create and manage products programmatically.&lt;/p&gt;

&lt;p&gt;This can be useful if you're migrating products from another system or building an internal merchant application.&lt;/p&gt;

&lt;p&gt;For example, create a server-side script called &lt;code&gt;scripts/create-product.mjs&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;apiKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SHOPRIVET_API_KEY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;storeId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SHOPRIVET_STORE_ID&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;apiKey&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;storeId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Missing Shoprivet credentials."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="sb"&gt;`https://api.shoprivet.io/v1/stores/${encodeURIComponent(storeId)}/products`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${apiKey}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Essential Cotton Tee"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;35&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"physical"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"active"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`Product creation failed (${response.status}).`&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Product created:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the script using a Node.js version that supports &lt;code&gt;--env-file&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node --env-file=.env.local scripts/create-product.mjs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This request creates a new product in your actual store.&lt;/p&gt;

&lt;p&gt;Only run it when you intend to create the product, preferably while working with a dedicated test store.&lt;/p&gt;

&lt;p&gt;You can then complete additional product information and photography through the dashboard.&lt;/p&gt;

&lt;p&gt;The important point is that this operation happens in a private administrative script, not in a public React component.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Else Can You Do With the Shoprivet Management API?
&lt;/h2&gt;

&lt;p&gt;The documented versioned REST API provides several endpoints for administrative operations.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Endpoint&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;List stores&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Create a store&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PATCH&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Update a store&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/products&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;List products&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/products/PRODUCT_ID&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Retrieve a product&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/products&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Create a product&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PATCH&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/products/PRODUCT_ID&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Update a product&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DELETE&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/products/PRODUCT_ID&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Delete a product&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/categories&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;List categories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/categories&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Create a category&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DELETE&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/categories/CATEGORY_ID&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Delete a category&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/orders&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;List orders&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/orders&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Create an administrative order&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PATCH&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/orders/ORDER_ID/status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Update order status&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DELETE&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/v1/stores/STORE_ID/orders/ORDER_ID&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Delete an order&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Updates use the PATCH method rather than PUT.&lt;/p&gt;

&lt;p&gt;The list endpoints support pagination.&lt;/p&gt;

&lt;p&gt;These endpoints make it possible to build additional applications around your ecommerce infrastructure.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An internal product management application.&lt;/li&gt;
&lt;li&gt;A product import utility.&lt;/li&gt;
&lt;li&gt;A custom fulfillment dashboard.&lt;/li&gt;
&lt;li&gt;An order reporting tool.&lt;/li&gt;
&lt;li&gt;A React Native shopping application.&lt;/li&gt;
&lt;li&gt;An inventory synchronization service.&lt;/li&gt;
&lt;li&gt;A multi-store management application.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The administrative order creation endpoint is different from customer checkout.&lt;/p&gt;

&lt;p&gt;Creating an administrative order does not mean that a payment has been processed.&lt;/p&gt;

&lt;p&gt;Always use the appropriate public checkout workflow for customer purchases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can You Add Product Variants to This Next.js Store?
&lt;/h2&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;Shoprivet supports product options and variants on eligible Premium and Business plans.&lt;/p&gt;

&lt;p&gt;For example, we could sell the Essential Cotton Tee in different sizes and colors.&lt;/p&gt;

&lt;h3&gt;
  
  
  Available Product Options
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Size
├── Small
├── Medium
└── Large

Color
├── Black
├── White
└── Beige
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Different variants can have their own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Price.&lt;/li&gt;
&lt;li&gt;Stock.&lt;/li&gt;
&lt;li&gt;SKU.&lt;/li&gt;
&lt;li&gt;Product images.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shoprivet also documents different option display types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Text.&lt;/li&gt;
&lt;li&gt;Color.&lt;/li&gt;
&lt;li&gt;Image.&lt;/li&gt;
&lt;li&gt;Dropdown.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A custom React storefront can use these descriptions to determine how options should be rendered.&lt;/p&gt;

&lt;p&gt;When the customer selects a particular variant, the add-to-cart request can include the selected variant ID and options.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="sb"&gt;`https://api.shoprivet.io/public/stores/atelier-noir/carts/current/items`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;credentials&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"omit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${cartCredential}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;productId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PRODUCT_ID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;variantId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"VARIANT_ID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"M"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Unable to add selected variant."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Shoprivet validates the selected variant, options, pricing, and stock on the server.&lt;/p&gt;

&lt;p&gt;Your application should present accurate available choices, but it should not attempt to override the backend's validation.&lt;/p&gt;

&lt;p&gt;This is an example of how you can extend the starter storefront into a more advanced ecommerce application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can You Sell Digital Products Instead?
&lt;/h2&gt;

&lt;p&gt;The same architecture can be used to sell digital products.&lt;/p&gt;

&lt;p&gt;Instead of choosing a physical-product store, create an appropriate digital-product store.&lt;/p&gt;

&lt;p&gt;Examples of digital products include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Website templates.&lt;/li&gt;
&lt;li&gt;Ebooks.&lt;/li&gt;
&lt;li&gt;Design assets.&lt;/li&gt;
&lt;li&gt;UI kits.&lt;/li&gt;
&lt;li&gt;Educational resources.&lt;/li&gt;
&lt;li&gt;Downloadable software resources.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shoprivet's public storefront documentation describes unique download links for paid digital orders.&lt;/p&gt;

&lt;p&gt;After a successful verified payment, the authorized order response can contain downloadable resources.&lt;/p&gt;

&lt;p&gt;The documentation describes links that expire after 90 days and allow up to 20 downloads.&lt;/p&gt;

&lt;p&gt;Don't expose paid download resources through public product URLs.&lt;/p&gt;

&lt;p&gt;Use the protected download links issued through the verified order workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can You Build This With Only the Public API?
&lt;/h2&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;If you only need customer-facing commerce functionality, you may not need a merchant API key in your storefront application at all.&lt;/p&gt;

&lt;p&gt;For example, retrieving published products can use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getPublicProducts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`https://api.shoprivet.io/public/stores/${encodeURIComponent(slug)}/products?page=1&amp;amp;limit=24`&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Unable to load products."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can then use the public storefront API for guest carts, available payment methods, and checkout.&lt;/p&gt;

&lt;p&gt;This is an important distinction for developers who want to build a frontend-only ecommerce application.&lt;/p&gt;

&lt;p&gt;Our primary tutorial uses the management API to demonstrate secure API-key integration and server-rendered product data.&lt;/p&gt;

&lt;p&gt;But applications that don't require authenticated merchant operations can use the public API instead.&lt;/p&gt;

&lt;p&gt;You could apply that approach to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A React and Vite application.&lt;/li&gt;
&lt;li&gt;A static JavaScript website.&lt;/li&gt;
&lt;li&gt;An Astro website.&lt;/li&gt;
&lt;li&gt;A Vue application.&lt;/li&gt;
&lt;li&gt;A Next.js static export, with suitable client-side fetching.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The underlying commerce infrastructure remains the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploy Your Next.js Storefront
&lt;/h2&gt;

&lt;p&gt;Once you're satisfied with your application, you can deploy it to a Next.js-compatible hosting platform such as Vercel.&lt;/p&gt;

&lt;p&gt;Before deploying, run a production build.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can test the production server locally using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Push the application source code to your Git repository.&lt;/p&gt;

&lt;p&gt;Do not commit your &lt;code&gt;.env.local&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;Create a new project on &lt;a href="https://vercel.com" rel="noopener noreferrer"&gt;Vercel&lt;/a&gt; and import your repository.&lt;/p&gt;

&lt;p&gt;Add the following environment variables through the hosting platform's environment configuration.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SHOPRIVET_API_URL=https://api.shoprivet.io
SHOPRIVET_API_KEY=YOUR_PRIVATE_API_KEY
SHOPRIVET_STORE_ID=YOUR_STORE_ID

NEXT_PUBLIC_SHOPRIVET_API_URL=https://api.shoprivet.io
NEXT_PUBLIC_SHOPRIVET_STORE_SLUG=YOUR_STORE_SLUG
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Deploy the application.&lt;/p&gt;

&lt;p&gt;Since our main application uses authenticated server-side product fetching and revalidation, deploy it with Next.js server runtime support rather than assuming that a static export will work unchanged.&lt;/p&gt;

&lt;p&gt;Once deployed, test the product catalog, shopping cart, checkout, and order management workflow again.&lt;/p&gt;

&lt;p&gt;The production website may behave differently from localhost due to environment configuration, allowed origins, payment configuration, or callback requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Improve Your Next.js Store's SEO
&lt;/h2&gt;

&lt;p&gt;One advantage of building your own ecommerce storefront with Next.js is that you can control how your website's pages and content are rendered.&lt;/p&gt;

&lt;p&gt;In this tutorial, we retrieve the initial product data on the server.&lt;/p&gt;

&lt;p&gt;However, a complete ecommerce SEO strategy involves more than rendering a product grid.&lt;/p&gt;

&lt;p&gt;A production storefront should consider:&lt;/p&gt;

&lt;h3&gt;
  
  
  Individual Product Pages
&lt;/h3&gt;

&lt;p&gt;Create dedicated routes for each product.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/products/essential-cotton-tee
/products/relaxed-linen-shirt
/products/structured-blazer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each page can have its own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product title.&lt;/li&gt;
&lt;li&gt;Description.&lt;/li&gt;
&lt;li&gt;Product photographs.&lt;/li&gt;
&lt;li&gt;Metadata.&lt;/li&gt;
&lt;li&gt;Canonical URL.&lt;/li&gt;
&lt;li&gt;Product structured data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Category Pages
&lt;/h3&gt;

&lt;p&gt;You can also create pages targeting specific product categories.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/collections/essentials
/collections/outerwear
/collections/accessories
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These pages could use the public product API's category filtering functionality.&lt;/p&gt;

&lt;h3&gt;
  
  
  Product Structured Data
&lt;/h3&gt;

&lt;p&gt;Product structured data can help search engines understand information such as pricing, availability, product identifiers, and currency.&lt;/p&gt;

&lt;p&gt;Make sure your structured data reflects the actual visible product information and current availability.&lt;/p&gt;

&lt;p&gt;Do not add fake product ratings or reviews.&lt;/p&gt;

&lt;h3&gt;
  
  
  Product Updates
&lt;/h3&gt;

&lt;p&gt;Because we retrieve products from Shoprivet, the frontend can pick up updated product information when its cached data revalidates.&lt;/p&gt;

&lt;p&gt;The merchant doesn't need to manually change prices in the React source code.&lt;/p&gt;

&lt;p&gt;You can adjust your revalidation strategy based on the freshness requirements and API usage of your store.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Approach Is Useful for Developers and Agencies
&lt;/h2&gt;

&lt;p&gt;Imagine you're a freelance developer who builds ecommerce websites for different clients.&lt;/p&gt;

&lt;p&gt;One client sells fashion products.&lt;/p&gt;

&lt;p&gt;Another sells furniture.&lt;/p&gt;

&lt;p&gt;A third sells digital resources.&lt;/p&gt;

&lt;p&gt;All three businesses need a unique storefront design, but their underlying commerce requirements are similar.&lt;/p&gt;

&lt;p&gt;Instead of building and maintaining three different e-commerce backends, you could create a reusable Next.js integration around the Shoprivet API.&lt;/p&gt;

&lt;p&gt;Each client could have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Their own store.&lt;/li&gt;
&lt;li&gt;Their own products.&lt;/li&gt;
&lt;li&gt;Their own payment configuration.&lt;/li&gt;
&lt;li&gt;Their own orders.&lt;/li&gt;
&lt;li&gt;A custom Next.js frontend.&lt;/li&gt;
&lt;li&gt;A merchant dashboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shoprivet supports additional stores on eligible paid plans.&lt;/p&gt;

&lt;p&gt;This creates a practical separation between the frontend development work and the merchant's ongoing ecommerce operations.&lt;/p&gt;

&lt;p&gt;Each client's API credentials, store ownership, and payment provider accounts should be managed appropriately and kept separate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building Your Own Backend vs Using a Headless Commerce API
&lt;/h2&gt;

&lt;p&gt;When deciding how to develop an ecommerce application, consider where most of the engineering effort will go.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Custom ecommerce backend&lt;/th&gt;
&lt;th&gt;Shoprivet API&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Product database&lt;/td&gt;
&lt;td&gt;Design and maintain it&lt;/td&gt;
&lt;td&gt;Managed through Shoprivet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inventory management&lt;/td&gt;
&lt;td&gt;Implement business rules&lt;/td&gt;
&lt;td&gt;Provided&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product categories&lt;/td&gt;
&lt;td&gt;Develop database and API&lt;/td&gt;
&lt;td&gt;Provided&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shopping carts&lt;/td&gt;
&lt;td&gt;Implement and persist carts&lt;/td&gt;
&lt;td&gt;Guest cart API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checkout&lt;/td&gt;
&lt;td&gt;Develop checkout logic&lt;/td&gt;
&lt;td&gt;Public checkout API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payment integrations&lt;/td&gt;
&lt;td&gt;Individually implement providers&lt;/td&gt;
&lt;td&gt;Configure supported integrations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Order dashboard&lt;/td&gt;
&lt;td&gt;Build an administrative application&lt;/td&gt;
&lt;td&gt;Provided&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product variants&lt;/td&gt;
&lt;td&gt;Design and validate variant relationships&lt;/td&gt;
&lt;td&gt;Available on eligible plans&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API security&lt;/td&gt;
&lt;td&gt;Implement authentication and authorization&lt;/td&gt;
&lt;td&gt;Managed API credentials&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frontend design&lt;/td&gt;
&lt;td&gt;Full control&lt;/td&gt;
&lt;td&gt;Full control with custom API integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend hosting&lt;/td&gt;
&lt;td&gt;Maintain separate infrastructure&lt;/td&gt;
&lt;td&gt;Managed commerce infrastructure&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Building your own commerce backend may make sense if your application requires highly specialized transactional workflows.&lt;/p&gt;

&lt;p&gt;However, if you're building a conventional online store, using established commerce functionality can reduce the amount of infrastructure you need to implement and maintain.&lt;/p&gt;

&lt;p&gt;You should still evaluate the API's capabilities, pricing, availability, security requirements, and any business-specific limitations.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Much Does It Cost?
&lt;/h2&gt;

&lt;p&gt;Shoprivet offers free and paid plans.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Free&lt;/th&gt;
&lt;th&gt;Premium&lt;/th&gt;
&lt;th&gt;Business&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Monthly subscription&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;$39&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stores&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Products&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Order allowance&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;10,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Product variants and other advanced features are available on eligible paid plans.&lt;/p&gt;

&lt;p&gt;Review the current plan limits and API entitlements on the &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;Shoprivet pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Shoprivet does not add its own percentage-based platform sales commission to purchases.&lt;/p&gt;

&lt;p&gt;Your connected payment gateway may still charge processing fees.&lt;/p&gt;

&lt;p&gt;You'll also need to account for your Next.js hosting expenses and other operational business costs.&lt;/p&gt;

&lt;p&gt;For commercial projects, choose a hosting plan that permits your intended use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Issues and How to Troubleshoot Them
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The API Returns 401 Unauthorized
&lt;/h3&gt;

&lt;p&gt;If you're making a management API request, verify that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your API key is correct.&lt;/li&gt;
&lt;li&gt;The key has not been revoked.&lt;/li&gt;
&lt;li&gt;You're sending the Bearer authentication header.&lt;/li&gt;
&lt;li&gt;The application has loaded the correct environment variables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're making a guest cart request, check whether the guest cart credential has expired.&lt;/p&gt;

&lt;p&gt;Do not substitute the merchant API key for a guest cart credential.&lt;/p&gt;

&lt;h3&gt;
  
  
  The API Returns 429 Too Many Requests
&lt;/h3&gt;

&lt;p&gt;You've exceeded an applicable request limit.&lt;/p&gt;

&lt;p&gt;For management API requests, review the rate limit configured in the Developers dashboard.&lt;/p&gt;

&lt;p&gt;Use caching, pagination, and appropriate request backoff.&lt;/p&gt;

&lt;p&gt;Respect the &lt;code&gt;Retry-After&lt;/code&gt; response header rather than continuously retrying failed requests.&lt;/p&gt;

&lt;h3&gt;
  
  
  Products Are Not Displaying
&lt;/h3&gt;

&lt;p&gt;Confirm that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your store ID is correct.&lt;/li&gt;
&lt;li&gt;Products have been published.&lt;/li&gt;
&lt;li&gt;Your store contains products.&lt;/li&gt;
&lt;li&gt;The API response contains the expected data.&lt;/li&gt;
&lt;li&gt;Your server-side code is successfully retrieving products.&lt;/li&gt;
&lt;li&gt;The configured cache has revalidated.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Shopping Cart Disappears After Refreshing
&lt;/h3&gt;

&lt;p&gt;Check whether the cart credential was saved successfully.&lt;/p&gt;

&lt;p&gt;Also confirm that your browser is not blocking storage and that the credential hasn't expired.&lt;/p&gt;

&lt;p&gt;An expired cart should be replaced with a new cart rather than treated as a valid session.&lt;/p&gt;

&lt;h3&gt;
  
  
  Payment Methods Are Missing
&lt;/h3&gt;

&lt;p&gt;Ensure you've configured an available payment provider through Shoprivet.&lt;/p&gt;

&lt;p&gt;The frontend retrieves configured payment methods dynamically.&lt;/p&gt;

&lt;p&gt;If none are available, it cannot offer a valid checkout option.&lt;/p&gt;

&lt;h3&gt;
  
  
  Checkout Returns an Error
&lt;/h3&gt;

&lt;p&gt;Check the API response for details.&lt;/p&gt;

&lt;p&gt;Possible causes include unavailable stock, invalid product variants, missing customer information, unavailable payment methods, or an expired guest cart.&lt;/p&gt;

&lt;p&gt;Avoid bypassing server-side validation to force an order through.&lt;/p&gt;

&lt;h3&gt;
  
  
  Payment Was Completed but the Website Still Shows Unpaid
&lt;/h3&gt;

&lt;p&gt;Check your provider webhook configuration and payment confirmation workflow.&lt;/p&gt;

&lt;p&gt;A payment redirect is not proof of payment.&lt;/p&gt;

&lt;p&gt;Retrieve the verified order state through the protected order API.&lt;/p&gt;

&lt;h3&gt;
  
  
  An API Key Accidentally Appears in the Browser
&lt;/h3&gt;

&lt;p&gt;Revoke and replace the exposed key immediately.&lt;/p&gt;

&lt;p&gt;Review your environment variable names, Client Component imports, server-to-client props, network requests, and application logs.&lt;/p&gt;

&lt;p&gt;Never expose a private merchant API key to an untrusted client.&lt;/p&gt;

&lt;h2&gt;
  
  
  Production Readiness Checklist
&lt;/h2&gt;

&lt;p&gt;Before accepting real customer orders, verify the following:&lt;/p&gt;

&lt;h3&gt;
  
  
  Storefront
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Products load successfully.&lt;/li&gt;
&lt;li&gt;[ ] Product images are optimized.&lt;/li&gt;
&lt;li&gt;[ ] The website works on mobile devices.&lt;/li&gt;
&lt;li&gt;[ ] Search and navigation work.&lt;/li&gt;
&lt;li&gt;[ ] Interactive dialogs support appropriate focus management and keyboard controls.&lt;/li&gt;
&lt;li&gt;[ ] Dedicated error and loading states are implemented.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Shopping Cart
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Customers can add products.&lt;/li&gt;
&lt;li&gt;[ ] Quantities can be updated.&lt;/li&gt;
&lt;li&gt;[ ] Products can be removed.&lt;/li&gt;
&lt;li&gt;[ ] Guest carts survive ordinary page refreshes.&lt;/li&gt;
&lt;li&gt;[ ] Expired cart credentials are handled correctly.&lt;/li&gt;
&lt;li&gt;[ ] Product variants are validated.&lt;/li&gt;
&lt;li&gt;[ ] Out-of-stock behavior is tested.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Checkout
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Required customer information is collected.&lt;/li&gt;
&lt;li&gt;[ ] Shipping and tax requirements are implemented.&lt;/li&gt;
&lt;li&gt;[ ] Available payment methods are loaded.&lt;/li&gt;
&lt;li&gt;[ ] Checkout retries reuse their idempotency key.&lt;/li&gt;
&lt;li&gt;[ ] Pending checkout attempts can be recovered after refreshes.&lt;/li&gt;
&lt;li&gt;[ ] Failed and cancelled payments are handled.&lt;/li&gt;
&lt;li&gt;[ ] Provider payment redirects and return routes work.&lt;/li&gt;
&lt;li&gt;[ ] Required provider webhooks are configured.&lt;/li&gt;
&lt;li&gt;[ ] Payments are verified before fulfillment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Security
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Merchant API keys remain on the server.&lt;/li&gt;
&lt;li&gt;[ ] Secret credentials are excluded from Git.&lt;/li&gt;
&lt;li&gt;[ ] Customer-facing data is explicitly selected.&lt;/li&gt;
&lt;li&gt;[ ] Guest credentials are not included in URLs or analytics.&lt;/li&gt;
&lt;li&gt;[ ] Order lookup requires the appropriate order access token.&lt;/li&gt;
&lt;li&gt;[ ] Private API responses are not exposed to customers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Business Operations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Orders appear correctly in Shoprivet.&lt;/li&gt;
&lt;li&gt;[ ] Inventory behavior matches store configuration.&lt;/li&gt;
&lt;li&gt;[ ] Payment statuses are accurate.&lt;/li&gt;
&lt;li&gt;[ ] Merchant notifications work as expected.&lt;/li&gt;
&lt;li&gt;[ ] Shipping, return, and refund policies are available.&lt;/li&gt;
&lt;li&gt;[ ] Applicable privacy and business requirements are satisfied.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The starter application in this article provides the foundation.&lt;/p&gt;

&lt;p&gt;Complete the relevant production-specific requirements before launching it as a live store.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I build an ecommerce website with Next.js without developing a backend?
&lt;/h3&gt;

&lt;p&gt;Yes. You can connect a Next.js frontend to a managed headless ecommerce API such as Shoprivet.&lt;/p&gt;

&lt;p&gt;The commerce backend already exists, so you don't need to implement the product database, cart persistence, checkout infrastructure, and order management yourself.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Shopify to build an online store with Next.js?
&lt;/h3&gt;

&lt;p&gt;No.&lt;/p&gt;

&lt;p&gt;Shopify is one option, but you can also build a storefront using independent commerce APIs.&lt;/p&gt;

&lt;p&gt;Shoprivet provides management and public storefront APIs that can be integrated with your own Next.js application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need MongoDB or PostgreSQL?
&lt;/h3&gt;

&lt;p&gt;Not for the core commerce functionality demonstrated in this tutorial.&lt;/p&gt;

&lt;p&gt;Shoprivet manages the underlying product and order data.&lt;/p&gt;

&lt;p&gt;You may still choose to use a separate database for application-specific functionality outside the commerce platform.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need to create Next.js API routes?
&lt;/h3&gt;

&lt;p&gt;Not for the basic integration shown here.&lt;/p&gt;

&lt;p&gt;Next.js Server Components can make authenticated server-side requests to the management API.&lt;/p&gt;

&lt;p&gt;Client Components can communicate directly with supported public storefront endpoints.&lt;/p&gt;

&lt;p&gt;Additional route handlers may be useful for specialized server-side workflows.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use the Shoprivet API key directly in React?
&lt;/h3&gt;

&lt;p&gt;You should not expose a merchant API key in browser-side React code.&lt;/p&gt;

&lt;p&gt;Use it from a trusted server environment.&lt;/p&gt;

&lt;p&gt;The public storefront API is designed for customer-facing operations without requiring that merchant credential.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I design the storefront however I want?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;When using the API rather than the storefront builder or catalog widget, you control the React components, page layouts, styling, animations, and overall shopping experience.&lt;/p&gt;

&lt;p&gt;Your implementation must still follow the supported commerce API contracts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I update products without redeploying my Next.js website?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;When products are retrieved dynamically from Shoprivet, product changes become available according to your application's fetching and caching strategy.&lt;/p&gt;

&lt;p&gt;You don't need to hardcode every product in the React source code.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I accept payments through Paystack or Flutterwave?
&lt;/h3&gt;

&lt;p&gt;Shoprivet provides supported payment gateway integrations, including Paystack and Flutterwave.&lt;/p&gt;

&lt;p&gt;Availability depends on your merchant eligibility, business location, currency, and configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Shoprivet for a mobile ecommerce application?
&lt;/h3&gt;

&lt;p&gt;Yes. The API architecture can also be used from a compatible mobile application.&lt;/p&gt;

&lt;p&gt;Merchant credentials must remain in a trusted server environment rather than being bundled into a mobile application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I build a custom ecommerce administration dashboard?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;The management API includes documented endpoints for stores, products, categories, and orders.&lt;/p&gt;

&lt;p&gt;A custom administrative application would need appropriate access controls and secure server-side API authentication.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Shoprivet support product variants?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;Product variants are available on eligible Premium and Business plans.&lt;/p&gt;

&lt;p&gt;Variants can include different prices, stock quantities, SKUs, and images.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Shoprivet without its drag-and-drop builder?
&lt;/h3&gt;

&lt;p&gt;Absolutely.&lt;/p&gt;

&lt;p&gt;The storefront builder is one way to use the platform.&lt;/p&gt;

&lt;p&gt;Developers can also use the REST API to build customer-facing shopping experiences entirely from scratch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;A custom ecommerce website doesn't have to come with the responsibility of maintaining a complete ecommerce infrastructure.&lt;/p&gt;

&lt;p&gt;You can use the technologies you enjoy working with, such as Next.js, React, TypeScript, and Tailwind CSS, while relying on a managed commerce platform for the underlying transactional functionality.&lt;/p&gt;

&lt;p&gt;Throughout this tutorial, we've explored how to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set up a Shoprivet store.&lt;/li&gt;
&lt;li&gt;Create and manage products.&lt;/li&gt;
&lt;li&gt;Generate a merchant API key.&lt;/li&gt;
&lt;li&gt;Securely retrieve product data from Next.js.&lt;/li&gt;
&lt;li&gt;Design a custom fashion storefront.&lt;/li&gt;
&lt;li&gt;Implement a server-managed shopping cart.&lt;/li&gt;
&lt;li&gt;Retrieve payment methods.&lt;/li&gt;
&lt;li&gt;Initiate checkout.&lt;/li&gt;
&lt;li&gt;Manage customer orders.&lt;/li&gt;
&lt;li&gt;Integrate payment verification.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The entire customer-facing experience is yours to design.&lt;/p&gt;

&lt;p&gt;The backend commerce operations are handled through Shoprivet.&lt;/p&gt;

&lt;p&gt;For developers, freelancers, and agencies, this provides another approach to building custom ecommerce applications without starting every project with a new database schema and payment integration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build the storefront you want, without rebuilding the commerce infrastructure behind it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;Create a free Shoprivet account&lt;/a&gt; and start building your own custom ecommerce application.&lt;/p&gt;

&lt;p&gt;Visit the &lt;a href="https://shoprivet.io/app/dashboard/developers" rel="noopener noreferrer"&gt;Developers dashboard&lt;/a&gt; after signing in to access API keys, endpoint documentation, JavaScript examples, and public storefront integration instructions.&lt;/p&gt;

&lt;p&gt;You can also explore the &lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;Shoprivet website&lt;/a&gt; or &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;compare available plans&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I'm the developer behind Shoprivet. I built the platform to give businesses and developers an alternative way to create ecommerce experiences without maintaining complex commerce infrastructure. The application in this tutorial is a starter reference implementation. Test the API integration, payment flows, and business-specific requirements before using it in production.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shoppingcart</category>
      <category>ecommerce</category>
      <category>nextjs</category>
      <category>typescript</category>
    </item>
    <item>
      <title>How to Add Ecommerce to Your Webflow Website Without Shopify</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 27 Nov 2026 11:40:05 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-to-add-ecommerce-to-your-webflow-website-without-shopify-b39</link>
      <guid>https://dev.to/allenarduino/how-to-add-ecommerce-to-your-webflow-website-without-shopify-b39</guid>
      <description>&lt;p&gt;Webflow gives you a lot of freedom when it comes to designing websites.&lt;/p&gt;

&lt;p&gt;You can build beautiful landing pages, create responsive layouts, manage content through the CMS, and deliver professional websites to clients without writing everything from scratch.&lt;/p&gt;

&lt;p&gt;But what happens when a client comes back with a simple request?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Can we start selling products on our website?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Suddenly, a website that was originally designed to showcase a business needs to support product management, shopping carts, payments, inventory, and customer orders.&lt;/p&gt;

&lt;p&gt;The obvious options are usually Webflow Ecommerce or integrating Shopify into the website.&lt;/p&gt;

&lt;p&gt;However, these aren't your only options.&lt;/p&gt;

&lt;p&gt;If you're happy with your existing Webflow website and simply want to introduce ecommerce functionality, you can connect it to an independent commerce platform.&lt;/p&gt;

&lt;p&gt;In this guide, I'll show you how to use &lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt; to add a product catalog, shopping cart, and checkout to your Webflow website without setting up a Shopify store or rebuilding your existing design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can You Sell Products on Webflow Without Shopify?
&lt;/h2&gt;

&lt;p&gt;Absolutely.&lt;/p&gt;

&lt;p&gt;Webflow allows you to embed third-party HTML and JavaScript into your website using its Code Embed element.&lt;/p&gt;

&lt;p&gt;This means your website doesn't have to depend entirely on Webflow's native ecommerce system.&lt;/p&gt;

&lt;p&gt;You can use Webflow for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Website design and branding.&lt;/li&gt;
&lt;li&gt;Landing pages.&lt;/li&gt;
&lt;li&gt;Blog posts.&lt;/li&gt;
&lt;li&gt;CMS content.&lt;/li&gt;
&lt;li&gt;Marketing pages.&lt;/li&gt;
&lt;li&gt;Search engine optimization.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And use an external ecommerce platform for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product management.&lt;/li&gt;
&lt;li&gt;Shopping carts.&lt;/li&gt;
&lt;li&gt;Checkout.&lt;/li&gt;
&lt;li&gt;Payment processing.&lt;/li&gt;
&lt;li&gt;Inventory tracking.&lt;/li&gt;
&lt;li&gt;Customer orders.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your website and ecommerce backend become separate parts of the same customer experience.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz7c8vrj1fkkokaa0h71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz7c8vrj1fkkokaa0h71.png" alt="An example of a Shoprivet product catalog embedded into an existing website" width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An example of an embedded product catalog that can be integrated into a compatible website.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This approach is particularly useful when you already have a functioning Webflow website and don't want to change how the entire website is structured simply because you need to sell products.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Would You Want an Alternative to Webflow Ecommerce or Shopify?
&lt;/h2&gt;

&lt;p&gt;Both Webflow Ecommerce and Shopify are established platforms. However, the right solution depends on what your business actually needs.&lt;/p&gt;

&lt;h3&gt;
  
  
  You Already Have a Website You Like
&lt;/h3&gt;

&lt;p&gt;Imagine you've spent weeks designing a website for a skincare business.&lt;/p&gt;

&lt;p&gt;The homepage, product photography, About page, animations, and blog already look exactly the way the client wants.&lt;/p&gt;

&lt;p&gt;Now the client wants to sell six skincare products.&lt;/p&gt;

&lt;p&gt;Moving the entire website to another platform may introduce unnecessary work.&lt;/p&gt;

&lt;p&gt;Instead, you could create a shop page within the existing Webflow website and connect it to an external product catalog.&lt;/p&gt;

&lt;h3&gt;
  
  
  You Don't Need a Complete Shopify Store
&lt;/h3&gt;

&lt;p&gt;Not every business needs a large ecommerce ecosystem with additional apps, themes, and integrations.&lt;/p&gt;

&lt;p&gt;Some businesses simply need customers to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Browse available products.&lt;/li&gt;
&lt;li&gt;Add products to a shopping cart.&lt;/li&gt;
&lt;li&gt;Complete a purchase.&lt;/li&gt;
&lt;li&gt;Receive their orders.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An embeddable ecommerce solution can be a practical alternative for these businesses.&lt;/p&gt;

&lt;h3&gt;
  
  
  You Want More Payment Gateway Options
&lt;/h3&gt;

&lt;p&gt;Payment gateway availability can be an important consideration when choosing an ecommerce platform.&lt;/p&gt;

&lt;p&gt;For example, a business operating in Africa may want to accept payments through Paystack or Flutterwave.&lt;/p&gt;

&lt;p&gt;Another business may already have a Stripe or PayPal merchant account.&lt;/p&gt;

&lt;p&gt;Rather than selecting an ecommerce platform first and discovering payment restrictions later, you can evaluate solutions based on the payment providers your business actually needs.&lt;/p&gt;

&lt;h3&gt;
  
  
  You Manage Several Client Websites
&lt;/h3&gt;

&lt;p&gt;If you're a Webflow freelancer or agency, building an ecommerce integration from scratch for every client can become difficult to maintain.&lt;/p&gt;

&lt;p&gt;A reusable commerce platform allows you to focus on website design while providing clients with a dedicated place to manage their products and orders.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing the Right Way to Sell Products on Webflow
&lt;/h2&gt;

&lt;p&gt;There are several approaches to adding ecommerce functionality to a Webflow website.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;th&gt;Main consideration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Webflow Ecommerce&lt;/td&gt;
&lt;td&gt;Businesses that want commerce integrated with Webflow's native design tools&lt;/td&gt;
&lt;td&gt;Requires an appropriate Ecommerce plan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shopify integration&lt;/td&gt;
&lt;td&gt;Businesses that already use Shopify for their commerce operations&lt;/td&gt;
&lt;td&gt;Requires a separate Shopify setup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payment links&lt;/td&gt;
&lt;td&gt;Businesses selling a small number of products individually&lt;/td&gt;
&lt;td&gt;Limited shopping cart functionality&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embedded ecommerce catalog&lt;/td&gt;
&lt;td&gt;Existing websites that need products, carts, checkout, and order management&lt;/td&gt;
&lt;td&gt;Requires compatible custom code functionality&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Custom commerce API&lt;/td&gt;
&lt;td&gt;Developers who need complete control over the shopping experience&lt;/td&gt;
&lt;td&gt;Requires more development work&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you're already running a successful Shopify store, connecting that store to Webflow may make sense.&lt;/p&gt;

&lt;p&gt;If you're starting from scratch and want to keep Webflow as your primary website platform, an independent ecommerce widget is another option worth considering.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is Shoprivet?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt; is an ecommerce platform designed to help businesses and developers sell products without being tied to a particular website builder.&lt;/p&gt;

&lt;p&gt;It provides a commerce backend that can be connected to an existing website through an embeddable product catalog.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" alt="Shoprivet ecommerce platform homepage" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With Shoprivet, you can manage your products, inventory, connected payment gateways, and customer orders from a separate dashboard.&lt;/p&gt;

&lt;p&gt;Your Webflow website remains responsible for the design and content.&lt;/p&gt;

&lt;p&gt;The embedded Shoprivet widget provides the product browsing, shopping cart, and checkout experience.&lt;/p&gt;

&lt;p&gt;There is also a hosted storefront builder and a commerce REST API for businesses that need other ways to sell products.&lt;/p&gt;

&lt;p&gt;For this tutorial, we will focus on integrating the catalog widget into Webflow.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/product-catalog-widget" rel="noopener noreferrer"&gt;Learn more about the Shoprivet product catalog widget&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Webflow and Shoprivet Work Together
&lt;/h2&gt;

&lt;p&gt;Instead of trying to make Webflow responsible for every part of your ecommerce operations, you can separate the website from the commerce backend.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WEBFLOW WEBSITE

Homepage
About page
Blog and CMS
Marketing landing pages
Shop page
    |
    | Embedded catalog widget
    v
SHOPRIVET

Products and pricing
Inventory management
Shopping cart
Customer checkout
Payment integration
Order management
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When a visitor opens your Webflow shop page, the embedded catalog retrieves product information from Shoprivet.&lt;/p&gt;

&lt;p&gt;The customer can browse the available products, add items to a cart, and proceed to checkout.&lt;/p&gt;

&lt;p&gt;The resulting orders are managed from your Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;You can continue using Webflow to publish marketing content and make website design changes without maintaining the commerce backend yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You'll Need Before Getting Started
&lt;/h2&gt;

&lt;p&gt;Make sure you have the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An existing Webflow website or a new Webflow project.&lt;/li&gt;
&lt;li&gt;Access to the Webflow Designer.&lt;/li&gt;
&lt;li&gt;A Webflow plan or Workspace that supports Code Embed elements.&lt;/li&gt;
&lt;li&gt;A free Shoprivet account.&lt;/li&gt;
&lt;li&gt;Products you want to sell.&lt;/li&gt;
&lt;li&gt;A merchant account with a supported payment provider if accepting online payments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Webflow makes Code Embed available through eligible Workspace plans or an active Site plan.&lt;/p&gt;

&lt;p&gt;You do not need to enable Webflow's native Ecommerce functionality specifically to use this external catalog integration.&lt;/p&gt;

&lt;p&gt;However, your Webflow setup must support custom HTML and JavaScript.&lt;/p&gt;

&lt;p&gt;You can review the requirements in the official &lt;a href="https://help.webflow.com/hc/en-us/articles/33961332238611-Custom-code-embed" rel="noopener noreferrer"&gt;Webflow Code Embed documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Set Up Your Commerce Dashboard
&lt;/h2&gt;

&lt;p&gt;Start by creating a free account at &lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;shoprivet.io/app/signup&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Register using your name, email address, and password, then follow the email verification process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" alt="Creating a free Shoprivet account" width="800" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you're signed in, create a new blank store.&lt;/p&gt;

&lt;p&gt;For this walkthrough, imagine we're adding ecommerce functionality to an existing Webflow website for a home accessories business called &lt;strong&gt;Studio Living&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The store creation process asks for three things.&lt;/p&gt;

&lt;h3&gt;
  
  
  Store Information
&lt;/h3&gt;

&lt;p&gt;Enter the business name and an optional description.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" alt="Configuring store information in Shoprivet" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Product Type
&lt;/h3&gt;

&lt;p&gt;Choose whether the store will sell physical or digital products.&lt;/p&gt;

&lt;p&gt;A home accessories business would select physical products.&lt;/p&gt;

&lt;p&gt;A designer selling Webflow templates, ebooks, or downloadable design resources could choose digital products instead.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgn5juhqzecpqpk1vp9a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgn5juhqzecpqpk1vp9a.png" alt="Choosing between physical and digital products" width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Store Currency
&lt;/h3&gt;

&lt;p&gt;Choose the currency that matches your business and payment provider requirements.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftp98wtvsq33xfzs8146b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftp98wtvsq33xfzs8146b.png" alt="Selecting the store currency" width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After completing the setup, you have a separate commerce dashboard for your Webflow website.&lt;/p&gt;

&lt;p&gt;The following screenshots come from an existing demonstration store, so the store names and products shown may differ from our Studio Living example.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Build Your Product Catalog Outside Webflow
&lt;/h2&gt;

&lt;p&gt;One of the advantages of separating ecommerce from your Webflow website is that you don't have to create and maintain every product as a Webflow CMS item.&lt;/p&gt;

&lt;p&gt;Instead, you can manage your commerce-related product information directly from Shoprivet.&lt;/p&gt;

&lt;p&gt;Open &lt;strong&gt;Products&lt;/strong&gt; in your dashboard and select &lt;strong&gt;Add product&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" alt="Product management dashboard in Shoprivet" width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For our example business, we could create the following products:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Product&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;th&gt;Available quantity&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ceramic Table Vase&lt;/td&gt;
&lt;td&gt;$35&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minimalist Desk Lamp&lt;/td&gt;
&lt;td&gt;$89&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cotton Cushion Cover&lt;/td&gt;
&lt;td&gt;$24&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wooden Serving Tray&lt;/td&gt;
&lt;td&gt;$45&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scented Soy Candle&lt;/td&gt;
&lt;td&gt;$18&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are illustrative products for the tutorial.&lt;/p&gt;

&lt;p&gt;When creating a product, provide its name, description, price, images, and any relevant inventory information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fygbdip6w7ehkeoga277p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fygbdip6w7ehkeoga277p.png" alt="Shoprivet product editor with pricing and inventory settings" width="799" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can prepare products as drafts and publish them when they are ready for customers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3exy5fh55nojes22hnvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3exy5fh55nojes22hnvi.png" alt="Product publishing controls in Shoprivet" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You should publish the products you want to make available in the embedded catalog.&lt;/p&gt;

&lt;h3&gt;
  
  
  What If Your Products Have Different Options?
&lt;/h3&gt;

&lt;p&gt;Some businesses sell products with multiple configurations.&lt;/p&gt;

&lt;p&gt;For example, Studio Living may offer cushion covers in different colors:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Beige.&lt;/li&gt;
&lt;li&gt;Charcoal.&lt;/li&gt;
&lt;li&gt;Olive green.&lt;/li&gt;
&lt;li&gt;Cream.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It may also sell them in different sizes.&lt;/p&gt;

&lt;p&gt;Shoprivet supports product options and variants on eligible paid plans.&lt;/p&gt;

&lt;p&gt;This allows businesses to organize different product configurations instead of creating an unrelated product entry for every size and color.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;Explore Shoprivet's plans&lt;/a&gt; if product variants are important to your store.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Choose How Customers Will Pay
&lt;/h2&gt;

&lt;p&gt;Before customers can complete online purchases, connect a supported merchant payment provider.&lt;/p&gt;

&lt;p&gt;Shoprivet provides integrations for the following providers:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Payment provider&lt;/th&gt;
&lt;th&gt;Potential use case&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Stripe&lt;/td&gt;
&lt;td&gt;Businesses with eligible Stripe merchant accounts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paystack&lt;/td&gt;
&lt;td&gt;Merchants in supported African markets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Flutterwave&lt;/td&gt;
&lt;td&gt;Businesses operating in supported local and international markets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Razorpay&lt;/td&gt;
&lt;td&gt;Businesses eligible for Razorpay merchant services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PayPal&lt;/td&gt;
&lt;td&gt;Merchants that want to offer PayPal-supported checkout&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Provider availability depends on your business location, merchant eligibility, currency, and account configuration.&lt;/p&gt;

&lt;p&gt;To configure a payment provider, navigate to the payment section within your store's &lt;strong&gt;Settings&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" alt="Payment gateway configuration for a Shoprivet store" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose the payment gateway that makes sense for your business.&lt;/p&gt;

&lt;p&gt;For example, a business with an existing Stripe merchant account could connect Stripe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F07e61w0df74m5hrszf7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F07e61w0df74m5hrszf7o.png" alt="Stripe payment gateway configuration" width="800" height="638"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Provide the required configuration and follow any additional setup instructions, including required webhooks.&lt;/p&gt;

&lt;p&gt;Use test credentials and the provider's supported test environment before launching.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do You Need Stripe to Sell Products on Webflow?
&lt;/h3&gt;

&lt;p&gt;Not necessarily.&lt;/p&gt;

&lt;p&gt;When you use an external ecommerce integration, the available payment methods depend on that commerce platform rather than exclusively on Webflow's native checkout options.&lt;/p&gt;

&lt;p&gt;For example, you could configure Paystack through Shoprivet if your business is eligible to use it.&lt;/p&gt;

&lt;p&gt;This can be particularly useful for businesses whose preferred payment providers aren't available through their existing ecommerce setup.&lt;/p&gt;

&lt;h3&gt;
  
  
  How Are Payments Processed?
&lt;/h3&gt;

&lt;p&gt;Shoprivet uses your connected merchant payment gateway to process purchases.&lt;/p&gt;

&lt;p&gt;The merchant's settlement arrangements are handled through the selected payment provider rather than a separate Shoprivet wallet.&lt;/p&gt;

&lt;p&gt;Shoprivet does not add its own percentage-based platform commission to customer purchases.&lt;/p&gt;

&lt;p&gt;Your payment provider may still charge processing fees, currency conversion fees, or other applicable charges.&lt;/p&gt;

&lt;p&gt;Never paste secret payment gateway credentials into Webflow's custom code editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Design an Ecommerce Catalog That Matches Your Webflow Website
&lt;/h2&gt;

&lt;p&gt;Webflow designers often care about maintaining a consistent visual identity across every page.&lt;/p&gt;

&lt;p&gt;You probably don't want to introduce a product catalog that looks completely different from the rest of your website.&lt;/p&gt;

&lt;p&gt;Shoprivet provides a catalog widget editor for configuring the available product display and shopping cart design options.&lt;/p&gt;

&lt;p&gt;Navigate to &lt;strong&gt;Catalog widgets&lt;/strong&gt; in your dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvhfdepkn2lr62s4s3j5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvhfdepkn2lr62s4s3j5.png" alt="Catalog widget management in Shoprivet" width="799" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open the automatically created default widget or create another one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrxn93c4hszvkfrlzy1a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrxn93c4hszvkfrlzy1a.png" alt="Visual product catalog editor" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Think about how your existing Webflow website is designed.&lt;/p&gt;

&lt;p&gt;For example, Studio Living might use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Neutral backgrounds.&lt;/li&gt;
&lt;li&gt;Minimalist typography.&lt;/li&gt;
&lt;li&gt;Generous spacing.&lt;/li&gt;
&lt;li&gt;Large product photography.&lt;/li&gt;
&lt;li&gt;Simple purchase buttons.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can configure the available catalog appearance settings to complement that design.&lt;/p&gt;

&lt;h3&gt;
  
  
  Choose Which Products Appear
&lt;/h3&gt;

&lt;p&gt;The widget allows you to configure its product selection.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fir11iapam5eb4qnow3z4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fir11iapam5eb4qnow3z4.png" alt="Selecting products for an embedded catalog" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You could display every eligible product in your primary shop page while displaying a smaller selection on a promotional landing page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Configure the Product Layout
&lt;/h3&gt;

&lt;p&gt;Use the catalog design settings to adjust the available layout, product columns, buttons, filters, and mobile presentation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qk1648i36fulvsflwo0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qk1648i36fulvsflwo0.png" alt="Design configuration for the product catalog" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, your desktop website might have enough space for several products per row, while a mobile screen may require fewer columns.&lt;/p&gt;

&lt;p&gt;Configure the catalog to work with the width of the section where you intend to embed it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Customize the Shopping Cart Appearance
&lt;/h3&gt;

&lt;p&gt;Your customers will also interact with the shopping cart.&lt;/p&gt;

&lt;p&gt;Shoprivet provides settings for configuring the available cart appearance options.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43whebol5mv2h483vlt5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43whebol5mv2h483vlt5.png" alt="Shopping cart configuration options" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffih7flj9nt8dem5o6g8h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffih7flj9nt8dem5o6g8h.png" alt="Shopping cart visual design controls" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnf1e4rg54pweizwp8rsq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnf1e4rg54pweizwp8rsq.png" alt="Shopping cart icon customization" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A consistent design helps the shopping experience feel like a natural extension of the existing website.&lt;/p&gt;

&lt;p&gt;Save your widget configuration before moving to Webflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Get the Ecommerce Embed Code
&lt;/h2&gt;

&lt;p&gt;Once the catalog is ready, locate its embed code in the widget's Settings or use the copy action from the Catalog widgets dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm9yu58toyh5tzqrz8mps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm9yu58toyh5tzqrz8mps.png" alt="Generated Shoprivet catalog embed snippet" width="800" height="599"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The generated integration follows a structure similar to this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
  &lt;span class="na"&gt;data-shoprivet&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"YOUR_STORE_SLUG"&lt;/span&gt;
  &lt;span class="na"&gt;data-shoprivet-widget&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"YOUR_WIDGET_ID"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt;
  &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://YOUR_API_ORIGIN/widget.js"&lt;/span&gt;
  &lt;span class="na"&gt;async&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first part provides the container for the product catalog.&lt;/p&gt;

&lt;p&gt;The second part loads the JavaScript responsible for rendering the widget.&lt;/p&gt;

&lt;p&gt;This is an illustrative example, not a ready-to-use embed snippet.&lt;/p&gt;

&lt;p&gt;Copy the actual code from your dashboard because it contains your store identifier, widget identifier, and the correct script URL.&lt;/p&gt;

&lt;p&gt;You do not need to write a separate Webflow shopping cart integration from scratch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Create a Shop Page in Webflow
&lt;/h2&gt;

&lt;p&gt;Now let's move to the Webflow website.&lt;/p&gt;

&lt;p&gt;Open your project in the Webflow Designer.&lt;/p&gt;

&lt;p&gt;If the website doesn't already have a dedicated shop page, create one.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the Pages panel.&lt;/li&gt;
&lt;li&gt;Create a new static page.&lt;/li&gt;
&lt;li&gt;Name the page &lt;strong&gt;Shop&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Set the page slug to &lt;code&gt;shop&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Use your existing navigation and footer components.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Your page URL will look something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://yourwebsite.com/shop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can design the shop page exactly as you would any other Webflow page.&lt;/p&gt;

&lt;p&gt;For example, you might include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A heading introducing your collection.&lt;/li&gt;
&lt;li&gt;A short description.&lt;/li&gt;
&lt;li&gt;A promotional banner.&lt;/li&gt;
&lt;li&gt;The embedded product catalog.&lt;/li&gt;
&lt;li&gt;Shipping and delivery information.&lt;/li&gt;
&lt;li&gt;Frequently asked questions.&lt;/li&gt;
&lt;li&gt;The existing website footer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A possible page structure in the Webflow Navigator could look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Body
├── Navbar
├── Shop Hero Section
│   ├── Heading
│   └── Paragraph
├── Products Section
│   └── Products Container
│       └── Code Embed
├── Delivery Information
└── Footer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a suggested page structure. You can adapt it to your existing design system.&lt;/p&gt;

&lt;p&gt;The key difference is that you don't have to create a separate Webflow product card for every individual item.&lt;/p&gt;

&lt;p&gt;The embedded catalog will populate the products section using product information from Shoprivet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Add the Shoprivet Widget Using Webflow Code Embed
&lt;/h2&gt;

&lt;p&gt;Inside the Webflow Designer, select the section where you want your products to appear.&lt;/p&gt;

&lt;p&gt;Open the Add panel and locate the &lt;strong&gt;Code Embed&lt;/strong&gt; element under the custom code options.&lt;/p&gt;

&lt;p&gt;Place it inside your products container.&lt;/p&gt;

&lt;p&gt;Paste the entire embed code copied from your Shoprivet dashboard, then save the element.&lt;/p&gt;

&lt;p&gt;Make sure you're using a Code Embed rather than a Code Block.&lt;/p&gt;

&lt;p&gt;A Code Block is intended for displaying source code to website visitors. A Code Embed allows the HTML and JavaScript to execute.&lt;/p&gt;

&lt;p&gt;Do not wrap the generated snippet in additional &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, or &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;

&lt;p&gt;Your Webflow page already provides the surrounding document structure.&lt;/p&gt;

&lt;p&gt;For more information about adding custom HTML and JavaScript, see the &lt;a href="https://help.webflow.com/hc/en-us/articles/33961332238611-Custom-code-embed" rel="noopener noreferrer"&gt;official Webflow guide to Code Embed&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where Should You Place the Embed?
&lt;/h3&gt;

&lt;p&gt;I recommend starting with a single catalog on a dedicated shop page.&lt;/p&gt;

&lt;p&gt;This keeps your first integration simple and makes it easier to test the entire customer experience.&lt;/p&gt;

&lt;p&gt;Once you've confirmed that everything works, you can create additional widgets for other sections of the website.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Webflow page&lt;/th&gt;
&lt;th&gt;Catalog configuration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/shop&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;All available products&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/home-accessories&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Selected home accessories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/new-arrivals&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Recently added products&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/gifts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Products selected for gifting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Homepage&lt;/td&gt;
&lt;td&gt;Featured products&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each widget can be configured independently while using the products managed in the same Shoprivet store.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Isn't the Catalog Visible in the Webflow Designer?
&lt;/h3&gt;

&lt;p&gt;Don't immediately assume something is broken if the Designer displays a placeholder instead of the finished product catalog.&lt;/p&gt;

&lt;p&gt;JavaScript embeds may not render directly on the design canvas.&lt;/p&gt;

&lt;p&gt;Preview the site, and publish it to a staging URL to verify the integration under real browser conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Publish to Your Webflow Staging Domain
&lt;/h2&gt;

&lt;p&gt;Before publishing the changes to your main business domain, use your Webflow staging domain for testing.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://studio-living.webflow.io/shop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows you to review the actual product catalog and shopping experience without immediately introducing the changes to your live business website.&lt;/p&gt;

&lt;p&gt;Once the page is published, the widget should retrieve the published products and display them in your Webflow shop section, assuming the embed and store are configured correctly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F74amepqyye6ew0rt6mqf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F74amepqyye6ew0rt6mqf.png" alt="Example of a Shoprivet catalog displaying products within an existing website" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An example of the embedded catalog experience on an existing website. This screenshot demonstrates the Shoprivet widget, not the specific Webflow staging website used in this walkthrough.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;At this point, your Webflow website is responsible for the surrounding design and page content, while the embedded widget provides the ecommerce interface.&lt;/p&gt;

&lt;p&gt;You haven't had to create a Shopify store, recreate your Webflow website, or deploy a custom commerce backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 9: Test the Shopping Experience
&lt;/h2&gt;

&lt;p&gt;Now open the published shop page as a customer.&lt;/p&gt;

&lt;p&gt;Select a product and add it to the shopping cart.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkzck9qpww0eu0by4ymef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkzck9qpww0eu0by4ymef.png" alt="Embedded shopping cart with selected products" width="800" height="593"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check whether customers can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;View product information.&lt;/li&gt;
&lt;li&gt;Add multiple products to their cart.&lt;/li&gt;
&lt;li&gt;Change product quantities.&lt;/li&gt;
&lt;li&gt;Remove unwanted products.&lt;/li&gt;
&lt;li&gt;Review the purchase total.&lt;/li&gt;
&lt;li&gt;Proceed to checkout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You should also test the behavior on mobile devices.&lt;/p&gt;

&lt;p&gt;Pay particular attention to the relationship between the widget and your existing Webflow layout.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does the catalog fit within the page container?&lt;/li&gt;
&lt;li&gt;Is the cart accessible on smaller screens?&lt;/li&gt;
&lt;li&gt;Are purchase buttons easy to interact with?&lt;/li&gt;
&lt;li&gt;Does the website have unwanted horizontal scrolling?&lt;/li&gt;
&lt;li&gt;Do existing navigation elements interfere with the shopping cart?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A good ecommerce integration needs to function well within the website, not just work in isolation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 10: Complete a Test Purchase
&lt;/h2&gt;

&lt;p&gt;Once the cart is working, proceed to checkout.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkww519o1f58ggqatzox3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkww519o1f58ggqatzox3.png" alt="Shoprivet customer checkout experience" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The customer provides the required details and chooses an available payment option.&lt;/p&gt;

&lt;p&gt;Complete a test transaction using the test environment provided by your connected payment gateway.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fajk72xhav7mg8yotymxx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fajk72xhav7mg8yotymxx.png" alt="Example of a completed checkout" width="800" height="618"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After completing the test transaction, check both your Shoprivet dashboard and payment provider.&lt;/p&gt;

&lt;p&gt;You should confirm that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The order contains the correct products and quantities.&lt;/li&gt;
&lt;li&gt;The recorded amount matches the checkout total.&lt;/li&gt;
&lt;li&gt;The payment has been verified.&lt;/li&gt;
&lt;li&gt;The expected order has been recorded.&lt;/li&gt;
&lt;li&gt;The inventory behavior matches your store configuration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also test an unsuccessful or cancelled payment to understand what happens when a customer doesn't complete the purchase.&lt;/p&gt;

&lt;p&gt;Don't treat a checkout success screen or redirect as sufficient evidence of payment verification.&lt;/p&gt;

&lt;p&gt;Before you fulfill an order, confirm that the payment has been correctly recorded through the trusted payment workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 11: Receive and Manage Orders Without Opening Webflow
&lt;/h2&gt;

&lt;p&gt;One of the benefits of using a separate commerce dashboard becomes apparent after customers start placing orders.&lt;/p&gt;

&lt;p&gt;Your business doesn't need to open the Webflow Designer to check who purchased something.&lt;/p&gt;

&lt;p&gt;Shoprivet provides order notifications that can inform merchants when an order is placed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbjx2o3aoecauva5hn5w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbjx2o3aoecauva5hn5w.png" alt="Example of a Shoprivet order notification email" width="799" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can then open the &lt;strong&gt;Orders&lt;/strong&gt; section of your Shoprivet dashboard to review the purchase.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qsorx00roqx7lxbo4gp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qsorx00roqx7lxbo4gp.png" alt="Order management dashboard" width="799" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select an order to see the corresponding purchase details and fulfillment controls.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisw7oozr1j4q96twu6fv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisw7oozr1j4q96twu6fv.png" alt="Individual order details and fulfillment information" width="800" height="489"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Depending on the order's progress, you can manage fulfillment through statuses including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pending.&lt;/li&gt;
&lt;li&gt;Processing.&lt;/li&gt;
&lt;li&gt;Shipped.&lt;/li&gt;
&lt;li&gt;Delivered.&lt;/li&gt;
&lt;li&gt;Cancelled.&lt;/li&gt;
&lt;li&gt;Refunded.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Payment verification remains separate from fulfillment status.&lt;/p&gt;

&lt;p&gt;For example, marking an order as processing does not verify the customer's payment. Similarly, recording a refunded status does not independently establish that money has been returned through the payment provider.&lt;/p&gt;

&lt;p&gt;This separation is useful when running an actual business where someone may manage website content while another person handles customer orders.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do You Need Webflow CMS to Manage Ecommerce Products?
&lt;/h2&gt;

&lt;p&gt;This is an important question.&lt;/p&gt;

&lt;p&gt;Webflow CMS is useful for organizing and displaying dynamic content.&lt;/p&gt;

&lt;p&gt;You might already use CMS Collections for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Blog posts.&lt;/li&gt;
&lt;li&gt;Portfolio projects.&lt;/li&gt;
&lt;li&gt;Testimonials.&lt;/li&gt;
&lt;li&gt;Team members.&lt;/li&gt;
&lt;li&gt;Product showcases.&lt;/li&gt;
&lt;li&gt;Buying guides.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, displaying product information is different from managing ecommerce transactions.&lt;/p&gt;

&lt;p&gt;For example, a Webflow CMS item might contain the following fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Product name
Product description
Product image
Price
Category
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is enough to display a product card.&lt;/p&gt;

&lt;p&gt;But the CMS item alone does not provide a complete commerce workflow for processing purchases, managing inventory, verifying payments, and tracking orders.&lt;/p&gt;

&lt;p&gt;With the Shoprivet catalog integration, you don't need to create a separate CMS product collection for products displayed through the widget.&lt;/p&gt;

&lt;p&gt;The product catalog loads its information from Shoprivet.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can You Continue Using Webflow CMS?
&lt;/h3&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;You can continue using Webflow CMS for your website's editorial and marketing content.&lt;/p&gt;

&lt;p&gt;For example, a furniture business might use Webflow CMS to publish:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Interior design inspiration.&lt;/li&gt;
&lt;li&gt;Product buying guides.&lt;/li&gt;
&lt;li&gt;Room styling ideas.&lt;/li&gt;
&lt;li&gt;Customer stories.&lt;/li&gt;
&lt;li&gt;Seasonal collections.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The corresponding shop pages can contain Shoprivet catalog widgets.&lt;/p&gt;

&lt;p&gt;This creates a useful separation between your marketing content and transactional product information.&lt;/p&gt;

&lt;h3&gt;
  
  
  What If Products Already Exist in Your Webflow CMS?
&lt;/h3&gt;

&lt;p&gt;You do not necessarily need to delete your existing product pages.&lt;/p&gt;

&lt;p&gt;You can retain them as marketing or informational pages and direct visitors to the relevant shopping experience.&lt;/p&gt;

&lt;p&gt;For the standard Shoprivet catalog integration, you will need to configure the corresponding purchasable products in Shoprivet.&lt;/p&gt;

&lt;p&gt;This tutorial does not assume that Webflow CMS products are automatically synchronized with Shoprivet.&lt;/p&gt;

&lt;p&gt;If you need automatic synchronization between both systems, that would require an additional integration using supported APIs or another compatible workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which System Should Be the Source of Truth?
&lt;/h3&gt;

&lt;p&gt;For commerce-related information, such as stock availability and product prices used at checkout, I would recommend having one authoritative data source.&lt;/p&gt;

&lt;p&gt;In this integration, that would be Shoprivet.&lt;/p&gt;

&lt;p&gt;Avoid manually maintaining separate prices and inventory quantities in multiple systems unless you have a reliable synchronization process.&lt;/p&gt;

&lt;p&gt;Otherwise, your Webflow page could advertise a different price from the amount displayed during checkout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Updating Products Without Republishing Your Webflow Website
&lt;/h2&gt;

&lt;p&gt;Imagine your store has launched successfully.&lt;/p&gt;

&lt;p&gt;A week later, the business owner wants to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change the price of a desk lamp.&lt;/li&gt;
&lt;li&gt;Replace a product photograph.&lt;/li&gt;
&lt;li&gt;Add a new candle.&lt;/li&gt;
&lt;li&gt;Update available stock.&lt;/li&gt;
&lt;li&gt;Remove an unavailable product.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If all the product information is manually built into Webflow, these requests may require additional website changes.&lt;/p&gt;

&lt;p&gt;With the embedded catalog, commerce-related product information is managed in Shoprivet.&lt;/p&gt;

&lt;p&gt;The business owner updates the product data from the commerce dashboard.&lt;/p&gt;

&lt;p&gt;The catalog retrieves the updated information when it reloads.&lt;/p&gt;

&lt;p&gt;If the widget is configured to display all eligible products, newly published products can appear without editing the Webflow page.&lt;/p&gt;

&lt;p&gt;For widgets that display explicitly selected products, update the selection when necessary.&lt;/p&gt;

&lt;p&gt;You generally need to publish the Webflow website again when changing its own design, content, or embed configuration.&lt;/p&gt;

&lt;p&gt;You don't need to republish the Webflow page simply because an eligible product's price or inventory information has changed in Shoprivet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can You Add Different Product Catalogs Across Your Webflow Website?
&lt;/h2&gt;

&lt;p&gt;A single shop page may be sufficient for some businesses.&lt;/p&gt;

&lt;p&gt;Others may want to introduce ecommerce functionality in several locations.&lt;/p&gt;

&lt;p&gt;For example, a business selling home accessories could organize its website like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/
├── /shop
├── /lighting
├── /home-decor
├── /gifts
└── /blog
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of displaying an identical product catalog on every page, you could configure different widgets.&lt;/p&gt;

&lt;p&gt;The lighting page might display desk lamps and other lighting products.&lt;/p&gt;

&lt;p&gt;The home decor page might display cushions, vases, and candles.&lt;/p&gt;

&lt;p&gt;The gifts page might contain a selected collection of products suitable for gifting.&lt;/p&gt;

&lt;p&gt;These widgets can use the same underlying Shoprivet store while presenting different product selections.&lt;/p&gt;

&lt;p&gt;This allows you to create targeted landing pages without duplicating the entire commerce backend.&lt;/p&gt;

&lt;p&gt;If you embed multiple widgets on a single page, test their behavior together, including how their shopping carts interact and how the scripts load.&lt;/p&gt;

&lt;h2&gt;
  
  
  Selling Products From Webflow Landing Pages
&lt;/h2&gt;

&lt;p&gt;Another interesting use case is combining Webflow's page design capabilities with ecommerce functionality.&lt;/p&gt;

&lt;p&gt;Suppose you're launching a new product collection.&lt;/p&gt;

&lt;p&gt;Rather than sending visitors away from your campaign landing page immediately, you could design a dedicated page with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product photography.&lt;/li&gt;
&lt;li&gt;Customer testimonials.&lt;/li&gt;
&lt;li&gt;Promotional copy.&lt;/li&gt;
&lt;li&gt;Product demonstrations.&lt;/li&gt;
&lt;li&gt;Frequently asked questions.&lt;/li&gt;
&lt;li&gt;A selected Shoprivet product catalog.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Visitors can learn about the collection and purchase products through the embedded shopping experience.&lt;/p&gt;

&lt;p&gt;This is useful for product launches, seasonal promotions, and paid advertising campaigns.&lt;/p&gt;

&lt;p&gt;You can focus on the landing page's design and conversion experience while managing the actual products and orders separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding Ecommerce to Webflow Client Websites
&lt;/h2&gt;

&lt;p&gt;If you're a Webflow freelancer or agency, this integration can also become part of your service offering.&lt;/p&gt;

&lt;p&gt;Imagine you have three clients:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Client&lt;/th&gt;
&lt;th&gt;Ecommerce requirements&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Clothing brand&lt;/td&gt;
&lt;td&gt;Product sizes, colors, inventory, and checkout&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Furniture business&lt;/td&gt;
&lt;td&gt;Product collections, pricing, and customer orders&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Digital creator&lt;/td&gt;
&lt;td&gt;Digital product sales and checkout&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each client needs a different website design.&lt;/p&gt;

&lt;p&gt;However, they share similar commerce requirements.&lt;/p&gt;

&lt;p&gt;Instead of implementing a different product management and checkout system for each project, you could use a repeatable integration process.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Workflow for Webflow Agencies
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Design the client's website in Webflow.&lt;/li&gt;
&lt;li&gt;Create or configure the client's Shoprivet store.&lt;/li&gt;
&lt;li&gt;Add the client's products.&lt;/li&gt;
&lt;li&gt;Configure the client's payment gateway.&lt;/li&gt;
&lt;li&gt;Design an appropriate catalog widget.&lt;/li&gt;
&lt;li&gt;Embed the catalog into the Webflow website.&lt;/li&gt;
&lt;li&gt;Test checkout, payments, inventory behavior, and orders.&lt;/li&gt;
&lt;li&gt;Establish the client's ongoing store management workflow.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Shoprivet supports multiple stores on eligible paid plans.&lt;/p&gt;

&lt;p&gt;Each store can maintain its own product information, catalog widgets, payment configuration, and orders.&lt;/p&gt;

&lt;p&gt;Before handing over a client website, establish who owns the store, who controls the payment provider account, and how the client will access the dashboard.&lt;/p&gt;

&lt;p&gt;Avoid sharing private merchant credentials or mixing unrelated businesses' payment accounts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why This Matters After Launch
&lt;/h3&gt;

&lt;p&gt;Website projects often require ongoing maintenance.&lt;/p&gt;

&lt;p&gt;A client might contact you every time they want to change a price, add a new product, or check an order.&lt;/p&gt;

&lt;p&gt;By providing a separate commerce dashboard, you can reduce the need for these routine website changes.&lt;/p&gt;

&lt;p&gt;The client manages the commerce operations through the appropriate account access arrangement.&lt;/p&gt;

&lt;p&gt;You can concentrate on maintaining and improving the Webflow website itself.&lt;/p&gt;

&lt;p&gt;For agencies with multiple client projects, this can be more practical than maintaining separate custom ecommerce backends.&lt;/p&gt;

&lt;h2&gt;
  
  
  Webflow Ecommerce vs Shopify vs Shoprivet
&lt;/h2&gt;

&lt;p&gt;These platforms serve overlapping needs, but they approach ecommerce differently.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Webflow Ecommerce&lt;/th&gt;
&lt;th&gt;Shopify integrated with Webflow&lt;/th&gt;
&lt;th&gt;Shoprivet embedded in Webflow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Existing Webflow website&lt;/td&gt;
&lt;td&gt;Supported&lt;/td&gt;
&lt;td&gt;Can integrate with it&lt;/td&gt;
&lt;td&gt;Can integrate with it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product management&lt;/td&gt;
&lt;td&gt;Webflow&lt;/td&gt;
&lt;td&gt;Shopify&lt;/td&gt;
&lt;td&gt;Shoprivet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shopping cart&lt;/td&gt;
&lt;td&gt;Native ecommerce cart&lt;/td&gt;
&lt;td&gt;Depends on integration&lt;/td&gt;
&lt;td&gt;Embedded cart&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checkout&lt;/td&gt;
&lt;td&gt;Webflow checkout&lt;/td&gt;
&lt;td&gt;Shopify checkout&lt;/td&gt;
&lt;td&gt;Shoprivet checkout with connected gateways&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Order management&lt;/td&gt;
&lt;td&gt;Webflow&lt;/td&gt;
&lt;td&gt;Shopify&lt;/td&gt;
&lt;td&gt;Shoprivet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Website design&lt;/td&gt;
&lt;td&gt;Native Webflow tools&lt;/td&gt;
&lt;td&gt;Webflow plus integration&lt;/td&gt;
&lt;td&gt;Existing Webflow design plus configurable widget&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ecommerce subscription&lt;/td&gt;
&lt;td&gt;Webflow Ecommerce plan&lt;/td&gt;
&lt;td&gt;Appropriate Shopify plan&lt;/td&gt;
&lt;td&gt;Free or paid Shoprivet plan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Webflow custom code&lt;/td&gt;
&lt;td&gt;Not required for native commerce&lt;/td&gt;
&lt;td&gt;May be required&lt;/td&gt;
&lt;td&gt;Required for this integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup complexity&lt;/td&gt;
&lt;td&gt;Depends on store design&lt;/td&gt;
&lt;td&gt;Depends on integration&lt;/td&gt;
&lt;td&gt;Copy and configure an embed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best suited for&lt;/td&gt;
&lt;td&gt;Native Webflow commerce&lt;/td&gt;
&lt;td&gt;Existing Shopify merchants&lt;/td&gt;
&lt;td&gt;Websites needing independent commerce functionality&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This comparison focuses on the integration architecture rather than attempting to compare every feature offered by each platform.&lt;/p&gt;

&lt;p&gt;Shopify may be a better fit for merchants who need its extensive commerce ecosystem and already rely on its apps and services.&lt;/p&gt;

&lt;p&gt;Webflow Ecommerce may be suitable for designers who want native control over ecommerce elements within Webflow.&lt;/p&gt;

&lt;p&gt;Shoprivet may be preferable when the primary requirement is adding a configurable product catalog, shopping cart, checkout, and order management to a website that already exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can You Sell on Webflow Without a Webflow Ecommerce Plan?
&lt;/h2&gt;

&lt;p&gt;Yes, provided you use an independent ecommerce service and your Webflow setup supports the required custom code.&lt;/p&gt;

&lt;p&gt;There is an important distinction here.&lt;/p&gt;

&lt;p&gt;You are not unlocking Webflow's native ecommerce functionality for free.&lt;/p&gt;

&lt;p&gt;You are using an external commerce platform instead of that functionality.&lt;/p&gt;

&lt;p&gt;You may still need an eligible Webflow Site or Workspace plan to run the embed and host your website.&lt;/p&gt;

&lt;p&gt;The overall cost of your setup can include:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Webflow website hosting
+
Shoprivet subscription, if required
+
Payment provider processing fees
+
Other applicable business costs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should evaluate the total cost based on your actual business requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shoprivet Pricing
&lt;/h3&gt;

&lt;p&gt;Shoprivet offers free and paid plans.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Free&lt;/th&gt;
&lt;th&gt;Premium&lt;/th&gt;
&lt;th&gt;Business&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Monthly subscription&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;$39&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product allowance&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orders per billing period&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;10,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Free plan supports one store.&lt;/p&gt;

&lt;p&gt;Paid plans provide additional store capacity, higher order allowances, and other advanced commerce features.&lt;/p&gt;

&lt;p&gt;Product variants and certain additional capabilities are available on eligible paid plans.&lt;/p&gt;

&lt;p&gt;Plan limits apply at the account level.&lt;/p&gt;

&lt;p&gt;Shoprivet does not add a separate percentage-based platform sales commission. Your connected payment provider's charges still apply.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;Shoprivet pricing page&lt;/a&gt; and &lt;a href="https://webflow.com/pricing" rel="noopener noreferrer"&gt;Webflow pricing page&lt;/a&gt; for current subscription information.&lt;/p&gt;

&lt;h3&gt;
  
  
  When Is a Paid Shoprivet Plan Worth It?
&lt;/h3&gt;

&lt;p&gt;Consider a business selling clothing through its Webflow website.&lt;/p&gt;

&lt;p&gt;Even if the business has only ten products, it might need different sizes and colors for each item.&lt;/p&gt;

&lt;p&gt;Product variants could make a paid plan useful from the beginning.&lt;/p&gt;

&lt;p&gt;A different business might sell straightforward home accessories but receive more orders than the Free plan allows.&lt;/p&gt;

&lt;p&gt;An agency may need additional stores for different client websites.&lt;/p&gt;

&lt;p&gt;These are situations where upgrading becomes a practical business decision rather than simply paying for features you may never use.&lt;/p&gt;

&lt;p&gt;You can start with the free plan, test the integration, and choose a paid plan when your requirements justify it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What If You Want Fully Custom Webflow Product Cards?
&lt;/h2&gt;

&lt;p&gt;Some designers may want complete control over individual product cards rather than using the provided catalog layout.&lt;/p&gt;

&lt;p&gt;For example, you might want complex product animations, a specialized product configurator, or a completely custom cart interface.&lt;/p&gt;

&lt;p&gt;The standard catalog widget provides configurable design options, but it is not the same as building every commerce component natively in Webflow.&lt;/p&gt;

&lt;p&gt;For more advanced projects, Shoprivet provides a commerce REST API.&lt;/p&gt;

&lt;p&gt;Developers can use supported endpoints to create customized commerce experiences.&lt;/p&gt;

&lt;p&gt;However, a custom API integration introduces additional responsibilities.&lt;/p&gt;

&lt;p&gt;You may need to implement:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product data retrieval.&lt;/li&gt;
&lt;li&gt;Product selection.&lt;/li&gt;
&lt;li&gt;Shopping cart state.&lt;/li&gt;
&lt;li&gt;Error handling.&lt;/li&gt;
&lt;li&gt;Custom checkout interactions.&lt;/li&gt;
&lt;li&gt;Secure authentication.&lt;/li&gt;
&lt;li&gt;Server-side processing for protected operations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Depending on the API endpoints and authentication requirements, you may need a secure intermediary backend.&lt;/p&gt;

&lt;p&gt;Never expose private merchant API keys in Webflow's custom code.&lt;/p&gt;

&lt;p&gt;For most existing Webflow websites that simply need a working online shop, I would start with the embedded catalog and evaluate the API only if the widget cannot meet a specific requirement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/#developers" rel="noopener noreferrer"&gt;Explore Shoprivet's developer features&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Will an Embedded Ecommerce Catalog Affect Webflow SEO?
&lt;/h2&gt;

&lt;p&gt;This is worth considering, particularly if your existing Webflow website already receives organic search traffic.&lt;/p&gt;

&lt;p&gt;Embedding a product catalog does not automatically destroy your website's existing SEO.&lt;/p&gt;

&lt;p&gt;Your homepage, blog posts, service pages, and other native Webflow content can remain in place.&lt;/p&gt;

&lt;p&gt;However, JavaScript-rendered product catalogs have different indexing considerations from product pages that contain their complete product content directly in the initial HTML response.&lt;/p&gt;

&lt;p&gt;Do not assume that every individual product rendered inside an external widget will automatically generate its own indexable search result.&lt;/p&gt;

&lt;h3&gt;
  
  
  Recommendations for Ecommerce SEO in Webflow
&lt;/h3&gt;

&lt;p&gt;Create a dedicated shop page and give it useful, native Webflow content.&lt;/p&gt;

&lt;p&gt;For example, rather than having a page that contains only a product widget, add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A descriptive page title.&lt;/li&gt;
&lt;li&gt;A meaningful H1 heading.&lt;/li&gt;
&lt;li&gt;An introduction explaining what you sell.&lt;/li&gt;
&lt;li&gt;Relevant product category descriptions.&lt;/li&gt;
&lt;li&gt;Delivery and shipping information.&lt;/li&gt;
&lt;li&gt;Frequently asked questions.&lt;/li&gt;
&lt;li&gt;Internal links from existing website content.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For our Studio Living example, the page metadata could be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Page title:
Modern Home Accessories | Studio Living

Meta description:
Discover modern home accessories, including
ceramic vases, lighting, cushions, and candles
from Studio Living.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If ranking individual products is a major priority, consider dedicated Webflow pages or CMS-based editorial product pages with useful, unique content.&lt;/p&gt;

&lt;p&gt;Direct customers from those pages to the appropriate purchasing experience.&lt;/p&gt;

&lt;p&gt;You should also test the rendered pages using Google Search Console to understand what search engines can access.&lt;/p&gt;

&lt;h3&gt;
  
  
  Consider Website Performance
&lt;/h3&gt;

&lt;p&gt;An ecommerce widget introduces additional JavaScript and network requests.&lt;/p&gt;

&lt;p&gt;To minimize unnecessary loading:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Include catalog scripts only where they are needed.&lt;/li&gt;
&lt;li&gt;Avoid adding the embed to unrelated pages.&lt;/li&gt;
&lt;li&gt;Optimize your existing website images.&lt;/li&gt;
&lt;li&gt;Review mobile performance.&lt;/li&gt;
&lt;li&gt;Measure the website before and after integration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not assume an embedded widget will have zero performance impact.&lt;/p&gt;

&lt;p&gt;Test the actual published website and optimize based on the results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Problems When Adding Ecommerce to Webflow
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Code Embed Element Is Unavailable
&lt;/h3&gt;

&lt;p&gt;Check whether your Webflow Site or Workspace plan supports custom code.&lt;/p&gt;

&lt;p&gt;Also confirm that your account has the appropriate permissions to edit the website's design.&lt;/p&gt;

&lt;p&gt;If your current setup does not allow the required embed, you may need to adjust your Webflow plan or link to a hosted Shoprivet storefront instead.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Catalog Does Not Appear on the Published Page
&lt;/h3&gt;

&lt;p&gt;Confirm that you copied the complete generated snippet.&lt;/p&gt;

&lt;p&gt;Common things to check include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The store identifier.&lt;/li&gt;
&lt;li&gt;The widget identifier.&lt;/li&gt;
&lt;li&gt;The script URL.&lt;/li&gt;
&lt;li&gt;Whether the widget configuration has been saved.&lt;/li&gt;
&lt;li&gt;Whether the products are published.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Open your browser's developer tools and examine the Console and Network tabs.&lt;/p&gt;

&lt;p&gt;If the script fails to load, investigate the actual error before changing unrelated website settings.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Widget Appears in the Wrong Place
&lt;/h3&gt;

&lt;p&gt;Review where you placed the Code Embed element in the Webflow Navigator.&lt;/p&gt;

&lt;p&gt;Make sure it is inside the intended section and container.&lt;/p&gt;

&lt;p&gt;Check whether the surrounding elements have fixed dimensions, unexpected positioning, or restrictive overflow settings.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Shopping Cart Is Hidden Behind Other Webflow Elements
&lt;/h3&gt;

&lt;p&gt;Webflow websites often include sticky navigation bars, animated elements, and custom overlays.&lt;/p&gt;

&lt;p&gt;These can sometimes interfere with third-party widget interfaces.&lt;/p&gt;

&lt;p&gt;Inspect the surrounding layout and CSS stacking contexts.&lt;/p&gt;

&lt;p&gt;Check properties such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;z-index&lt;/span&gt;
&lt;span class="nt"&gt;position&lt;/span&gt;
&lt;span class="nt"&gt;overflow&lt;/span&gt;
&lt;span class="nt"&gt;transform&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Avoid randomly assigning extremely high z-index values throughout the website.&lt;/p&gt;

&lt;p&gt;Identify which element is causing the overlap and resolve the specific layout conflict.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Catalog Is Too Wide on Mobile Devices
&lt;/h3&gt;

&lt;p&gt;Check your Webflow container width, padding, and responsive breakpoints.&lt;/p&gt;

&lt;p&gt;You can also review the catalog's mobile layout options in Shoprivet.&lt;/p&gt;

&lt;p&gt;A widget should not require customers to scroll horizontally just to view product information or complete checkout.&lt;/p&gt;

&lt;p&gt;Test on actual mobile browsers before launching.&lt;/p&gt;

&lt;h3&gt;
  
  
  Product Changes Are Not Appearing
&lt;/h3&gt;

&lt;p&gt;Make sure the updated products have been saved and published where required.&lt;/p&gt;

&lt;p&gt;If the widget contains a manually selected group of products, confirm that the relevant product is included.&lt;/p&gt;

&lt;p&gt;Reload the published website to retrieve the latest catalog information.&lt;/p&gt;

&lt;p&gt;You generally don't need to change the Webflow embed simply because product information has changed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Checkout Is Not Working
&lt;/h3&gt;

&lt;p&gt;Review your connected payment provider's configuration.&lt;/p&gt;

&lt;p&gt;Confirm that you are using the correct environment, supported currency, valid merchant credentials, and any required webhooks.&lt;/p&gt;

&lt;p&gt;Inspect the error provided during checkout rather than repeatedly changing payment settings without identifying the cause.&lt;/p&gt;

&lt;p&gt;Never accept real customer payments until you have successfully tested the complete purchase and verification workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Webflow Ecommerce Launch Checklist
&lt;/h2&gt;

&lt;p&gt;Before publishing your new shop page to the primary business domain, work through this checklist.&lt;/p&gt;

&lt;h3&gt;
  
  
  Website
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] The shop page is accessible through the website navigation.&lt;/li&gt;
&lt;li&gt;[ ] The product catalog loads on the published website.&lt;/li&gt;
&lt;li&gt;[ ] The catalog works on desktop and mobile devices.&lt;/li&gt;
&lt;li&gt;[ ] The cart does not conflict with Webflow navigation or overlays.&lt;/li&gt;
&lt;li&gt;[ ] There are no unexpected JavaScript errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Products
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Product information is accurate.&lt;/li&gt;
&lt;li&gt;[ ] Product images are appropriate.&lt;/li&gt;
&lt;li&gt;[ ] Product prices and currency are correct.&lt;/li&gt;
&lt;li&gt;[ ] Products are published.&lt;/li&gt;
&lt;li&gt;[ ] Inventory and relevant variants are configured.&lt;/li&gt;
&lt;li&gt;[ ] Out-of-stock behavior has been tested.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Checkout
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Customers can add and remove products.&lt;/li&gt;
&lt;li&gt;[ ] Customers can change quantities.&lt;/li&gt;
&lt;li&gt;[ ] Checkout calculates the expected total.&lt;/li&gt;
&lt;li&gt;[ ] A test payment can be completed.&lt;/li&gt;
&lt;li&gt;[ ] Unsuccessful and cancelled payments are handled appropriately.&lt;/li&gt;
&lt;li&gt;[ ] Required payment webhooks are configured.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Order Management
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Orders appear in the dashboard.&lt;/li&gt;
&lt;li&gt;[ ] Payment status is correctly recorded.&lt;/li&gt;
&lt;li&gt;[ ] Order notifications are delivered as expected.&lt;/li&gt;
&lt;li&gt;[ ] Fulfillment responsibilities are established.&lt;/li&gt;
&lt;li&gt;[ ] The merchant understands how to manage orders.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Business Requirements
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Shipping and delivery policies are available.&lt;/li&gt;
&lt;li&gt;[ ] Refund and return policies are available.&lt;/li&gt;
&lt;li&gt;[ ] Applicable privacy disclosures are available.&lt;/li&gt;
&lt;li&gt;[ ] Tax and shipping requirements have been reviewed.&lt;/li&gt;
&lt;li&gt;[ ] Payment provider requirements have been satisfied.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once the checks are complete, configure the appropriate live payment environment and publish the website to your production domain.&lt;/p&gt;

&lt;p&gt;Test the production integration again before promoting it to customers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I add ecommerce to Webflow without Shopify?
&lt;/h3&gt;

&lt;p&gt;Yes. You can use a compatible external commerce platform such as Shoprivet to embed a product catalog, shopping cart, and checkout into your Webflow website.&lt;/p&gt;

&lt;p&gt;You don't need to create a Shopify store for this integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Webflow Ecommerce to use Shoprivet?
&lt;/h3&gt;

&lt;p&gt;No. Shoprivet provides its own commerce functionality.&lt;/p&gt;

&lt;p&gt;However, your Webflow Site or Workspace plan must support the custom code required for the integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add a shopping cart to Webflow without writing code?
&lt;/h3&gt;

&lt;p&gt;You don't need to write the shopping cart implementation yourself.&lt;/p&gt;

&lt;p&gt;You do need to copy the generated HTML and JavaScript snippet into Webflow's Code Embed element.&lt;/p&gt;

&lt;p&gt;The standard catalog integration doesn't require you to develop a custom ecommerce backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I accept payments on Webflow without Shopify?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet provides supported merchant payment integrations, including Stripe, Paystack, Flutterwave, Razorpay, and PayPal.&lt;/p&gt;

&lt;p&gt;Availability depends on your business location, merchant account, currency, and payment provider configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Paystack with a Webflow website?
&lt;/h3&gt;

&lt;p&gt;Yes, through a compatible external commerce integration such as Shoprivet.&lt;/p&gt;

&lt;p&gt;You can configure Paystack in your Shoprivet store and embed the catalog into Webflow.&lt;/p&gt;

&lt;p&gt;Your business must satisfy Paystack's merchant eligibility requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Webflow CMS and Shoprivet together?
&lt;/h3&gt;

&lt;p&gt;Yes. You can continue using Webflow CMS for editorial content, landing pages, and product-related marketing content.&lt;/p&gt;

&lt;p&gt;The product catalog widget uses commerce data managed through Shoprivet.&lt;/p&gt;

&lt;p&gt;Automatic synchronization between Webflow CMS products and Shoprivet is not part of the standard embed integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I sell digital products through Webflow?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet supports digital product stores as well as physical product stores.&lt;/p&gt;

&lt;p&gt;Configure the appropriate store type and test the complete purchase and delivery workflow before launching.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need to move my existing domain?
&lt;/h3&gt;

&lt;p&gt;No.&lt;/p&gt;

&lt;p&gt;You can keep your existing Webflow website, hosting configuration, and domain.&lt;/p&gt;

&lt;p&gt;The ecommerce catalog is embedded into your existing pages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I manage stock without using Webflow CMS?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet provides product inventory controls.&lt;/p&gt;

&lt;p&gt;You can manage inventory from the commerce dashboard rather than manually updating stock quantities in Webflow CMS.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I customize the shopping cart design?
&lt;/h3&gt;

&lt;p&gt;Shoprivet provides configuration options for the catalog and shopping cart appearance.&lt;/p&gt;

&lt;p&gt;If your project needs complete control over every individual commerce component, you may want to evaluate a custom API integration instead.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Shoprivet charge transaction fees?
&lt;/h3&gt;

&lt;p&gt;Shoprivet does not add its own separate platform sales commission to customer purchases.&lt;/p&gt;

&lt;p&gt;Your payment provider may still charge its standard transaction and processing fees.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I manage ecommerce for several Webflow clients?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet supports multiple stores on eligible paid plans.&lt;/p&gt;

&lt;p&gt;Each store can maintain its own products, catalog configurations, payment settings, and orders.&lt;/p&gt;

&lt;p&gt;Review the account limits and ownership arrangements before connecting client businesses.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Shoprivet an alternative to Webflow Ecommerce?
&lt;/h3&gt;

&lt;p&gt;It can be an alternative for websites that need an independent product catalog, shopping cart, checkout, and commerce dashboard.&lt;/p&gt;

&lt;p&gt;It does not replace Webflow's website design and CMS functionality.&lt;/p&gt;

&lt;p&gt;Instead, it works alongside Webflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  What If I Don't Want to Embed Anything?
&lt;/h3&gt;

&lt;p&gt;You could create a hosted Shoprivet storefront and link to it from your Webflow website.&lt;/p&gt;

&lt;p&gt;For example, the Shop button in your Webflow navigation could direct visitors to the hosted store.&lt;/p&gt;

&lt;p&gt;Shoprivet provides storefront templates and a visual editor for creating a complete online store.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi27l6omfhqb8ae2od4wg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi27l6omfhqb8ae2od4wg.png" alt="Shoprivet storefront template gallery" width="799" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sqix7iduv0vswtsodxc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sqix7iduv0vswtsodxc.png" alt="Visual storefront customization in Shoprivet" width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This can be useful if you prefer to keep the business website and online store as separate destinations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/templates" rel="noopener noreferrer"&gt;Explore Shoprivet storefront templates&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Adding ecommerce to a Webflow website doesn't have to involve migrating to Shopify or redesigning your entire website.&lt;/p&gt;

&lt;p&gt;If your existing website already represents your business well, you can continue using it.&lt;/p&gt;

&lt;p&gt;Webflow can remain responsible for your design, content, marketing, and CMS.&lt;/p&gt;

&lt;p&gt;Shoprivet can provide the commerce functionality your customers need to browse products, add items to a cart, complete purchases, and place orders.&lt;/p&gt;

&lt;p&gt;You can manage products, prices, inventory, and orders from a separate dashboard while preserving the website you've already invested in.&lt;/p&gt;

&lt;p&gt;For individual businesses, this provides a practical way to introduce online selling.&lt;/p&gt;

&lt;p&gt;For Webflow freelancers and agencies, it creates a repeatable way to deliver ecommerce functionality across compatible client websites.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You've already invested in building a great website. Adding ecommerce shouldn't mean starting over.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;Create a free Shoprivet account&lt;/a&gt; and start adding ecommerce functionality to your Webflow website.&lt;/p&gt;

&lt;p&gt;You can also &lt;a href="https://shoprivet.io/product-catalog-widget" rel="noopener noreferrer"&gt;explore the product catalog widget&lt;/a&gt; or &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;compare Shoprivet's plans&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I built Shoprivet to help businesses and developers add ecommerce functionality to existing websites without maintaining complex commerce backends. This guide describes an integration approach using Shoprivet's catalog widget and Webflow's custom code functionality. Always test your specific website, payment gateway, inventory behavior, and order workflow before launching.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Add a Shopping Cart to an HTML Website Without a Backend</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 27 Nov 2026 11:21:49 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-to-add-a-shopping-cart-to-an-html-website-without-a-backend-156n</link>
      <guid>https://dev.to/allenarduino/how-to-add-a-shopping-cart-to-an-html-website-without-a-backend-156n</guid>
      <description>&lt;p&gt;You've built a website using HTML, CSS, and JavaScript.&lt;/p&gt;

&lt;p&gt;The design looks great, your pages are responsive, and you've even created product cards with images, descriptions, prices, and Add to Cart buttons.&lt;/p&gt;

&lt;p&gt;But there is one problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do you turn those product cards into a working online store where customers can add products to a cart, make payments, and place orders?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Creating a shopping cart interface with JavaScript is relatively straightforward. Building a complete e-commerce system behind that interface is a different challenge.&lt;/p&gt;

&lt;p&gt;You need to handle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product management.&lt;/li&gt;
&lt;li&gt;Shopping cart functionality.&lt;/li&gt;
&lt;li&gt;Product prices and quantities.&lt;/li&gt;
&lt;li&gt;Inventory tracking.&lt;/li&gt;
&lt;li&gt;Customer information.&lt;/li&gt;
&lt;li&gt;Payment processing.&lt;/li&gt;
&lt;li&gt;Payment verification.&lt;/li&gt;
&lt;li&gt;Order management.&lt;/li&gt;
&lt;li&gt;Order notifications.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You could build all of this yourself using Node.js, PHP, Python, or another backend technology.&lt;/p&gt;

&lt;p&gt;However, if your goal is to start selling products from an existing HTML website, you don't necessarily need to build and maintain your own ecommerce backend.&lt;/p&gt;

&lt;p&gt;In this tutorial, I'll show you how to add a working shopping cart and checkout to your HTML website using &lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You'll be able to manage products, accept payments, track inventory, and receive orders while keeping your existing website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz7c8vrj1fkkokaa0h71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz7c8vrj1fkkokaa0h71.png" alt="Shoprivet product catalog and shopping cart embedded into an existing website" width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An example of a working product catalog embedded into an existing website.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Can You Build a Shopping Cart Using Only HTML, CSS, and JavaScript?
&lt;/h2&gt;

&lt;p&gt;Yes, you can build the frontend of a shopping cart using HTML, CSS, and JavaScript.&lt;/p&gt;

&lt;p&gt;For example, you could create a product card like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"product"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"tshirt.jpg"&lt;/span&gt; &lt;span class="na"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Classic Cotton T-Shirt"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Classic Cotton T-Shirt&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;$45.00&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;onclick&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"addToCart()"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Add to Cart
  &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You could then use JavaScript to store the selected products in an array or in the browser's localStorage.&lt;/p&gt;

&lt;p&gt;This works for demonstrating basic shopping cart functionality.&lt;/p&gt;

&lt;p&gt;However, what happens when a customer wants to complete their purchase?&lt;/p&gt;

&lt;p&gt;You still need a reliable way to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Verify product prices.&lt;/li&gt;
&lt;li&gt;Check whether products are in stock.&lt;/li&gt;
&lt;li&gt;Calculate the final order total.&lt;/li&gt;
&lt;li&gt;Process customer payments.&lt;/li&gt;
&lt;li&gt;Verify that payments were successful.&lt;/li&gt;
&lt;li&gt;Store orders.&lt;/li&gt;
&lt;li&gt;Notify the business owner.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You should not rely on browser-side JavaScript alone to perform these operations.&lt;/p&gt;

&lt;p&gt;For example, a customer could modify a product's price using the browser's developer tools if your checkout blindly trusts prices supplied by the frontend.&lt;/p&gt;

&lt;p&gt;A production ecommerce system needs trusted server-side processing.&lt;/p&gt;

&lt;p&gt;The good news is that you don't necessarily have to build that backend yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three Ways to Add a Shopping Cart to an HTML Website
&lt;/h2&gt;

&lt;p&gt;There are several approaches you can take.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;How it works&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Build your own ecommerce backend&lt;/td&gt;
&lt;td&gt;Implement product management, cart, checkout, payments, and orders yourself&lt;/td&gt;
&lt;td&gt;Applications requiring specialized business logic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Use payment links&lt;/td&gt;
&lt;td&gt;Link individual products to a hosted payment page&lt;/td&gt;
&lt;td&gt;Selling a small number of products with simple purchasing requirements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Use an embeddable ecommerce platform&lt;/td&gt;
&lt;td&gt;Embed a product catalog, shopping cart, and checkout into your website&lt;/td&gt;
&lt;td&gt;Businesses and developers who want a complete shopping experience without maintaining a backend&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For this tutorial, we'll use the third approach.&lt;/p&gt;

&lt;p&gt;Instead of building a shopping cart from scratch, we'll connect our HTML website to Shoprivet using a small JavaScript embed snippet.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is Shoprivet?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt; is an ecommerce platform that allows developers and businesses to sell products through existing websites, hosted storefronts, or custom ecommerce applications.&lt;/p&gt;

&lt;p&gt;It provides three main ways to sell products:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Embeddable product catalogs:&lt;/strong&gt; Add products, a shopping cart, and checkout to an existing website.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosted storefronts:&lt;/strong&gt; Create and publish a complete online store using a visual builder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commerce REST API:&lt;/strong&gt; Build custom ecommerce experiences using supported backend endpoints.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For this tutorial, we'll focus on the embeddable product catalog.&lt;/p&gt;

&lt;p&gt;This allows us to add ecommerce functionality to an HTML website without creating a separate backend application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5pnjnrvucx7bh6lvssra.png" alt="Shoprivet landing page" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How the Shopping Cart Integration Works
&lt;/h2&gt;

&lt;p&gt;The architecture is relatively simple.&lt;/p&gt;

&lt;p&gt;Your HTML website continues to handle your pages, branding, content, and overall design.&lt;/p&gt;

&lt;p&gt;Shoprivet handles the commerce functionality.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Your HTML Website
        |
        v
Embedded Product Catalog
        |
        v
Customer Adds Products to Cart
        |
        v
Shopping Cart
        |
        v
Checkout
        |
        v
Connected Payment Gateway
        |
        v
Payment Verification
        |
        v
Shoprivet Orders Dashboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You manage your products, prices, inventory, and orders from a central dashboard.&lt;/p&gt;

&lt;p&gt;Your website displays the products through the embedded catalog.&lt;/p&gt;

&lt;p&gt;You do not need to install a database, create your own payment API, or implement an order management dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You'll Need
&lt;/h2&gt;

&lt;p&gt;Before getting started, you'll need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An HTML website or access to its source code.&lt;/li&gt;
&lt;li&gt;A Shoprivet account.&lt;/li&gt;
&lt;li&gt;At least one product to sell.&lt;/li&gt;
&lt;li&gt;An account with a supported payment provider if you want to accept online payments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your website can be hosted on Cloudflare Pages, Netlify, Vercel, GitHub Pages, or another static website hosting platform that supports the required JavaScript and external resources.&lt;/p&gt;

&lt;p&gt;You do not need to change your hosting provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create a Free Shoprivet Account
&lt;/h2&gt;

&lt;p&gt;Visit &lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;Shoprivet&lt;/a&gt; and create an account.&lt;/p&gt;

&lt;p&gt;Enter your name, email address, and password, then complete the email verification process and sign in.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm863dxdq869kf3wbyd8y.png" alt="Shoprivet account registration page" width="800" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shoprivet offers a free plan that allows you to create a store, add products, and test the ecommerce integration before choosing a paid plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create Your Store
&lt;/h2&gt;

&lt;p&gt;Once you have signed in, create a new blank store.&lt;/p&gt;

&lt;p&gt;The store creation process takes you through three stages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Enter Your Store Details
&lt;/h3&gt;

&lt;p&gt;Give your store a name and optionally add a description.&lt;/p&gt;

&lt;p&gt;For this tutorial, we'll create a clothing store called &lt;strong&gt;Mode &amp;amp; Co.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi468457y5dxyc8bb54c4.png" alt="Shoprivet store name and description configuration" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Choose Your Store Type
&lt;/h3&gt;

&lt;p&gt;Select whether you want to sell physical or digital products.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Physical products: Clothing, accessories, electronics, skincare products, or furniture.&lt;/li&gt;
&lt;li&gt;Digital products: Ebooks, templates, downloadable resources, or other digital goods.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Since we're creating a clothing store, we'll select physical products.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgn5juhqzecpqpk1vp9a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flgn5juhqzecpqpk1vp9a.png" alt="Shoprivet physical and digital product store selection" width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Select Your Store Currency
&lt;/h3&gt;

&lt;p&gt;Choose the currency you want to use for your product prices.&lt;/p&gt;

&lt;p&gt;For this example, we'll use USD.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftp98wtvsq33xfzs8146b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftp98wtvsq33xfzs8146b.png" alt="Shoprivet store currency selection" width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When choosing your currency, make sure it is compatible with the payment provider you intend to connect.&lt;/p&gt;

&lt;p&gt;Once the store has been created, you can start adding products.&lt;/p&gt;

&lt;p&gt;You do not need to create or publish a separate hosted storefront for this tutorial.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Add Products to Your Store
&lt;/h2&gt;

&lt;p&gt;From your Shoprivet dashboard, navigate to &lt;strong&gt;Products&lt;/strong&gt; and click &lt;strong&gt;Add product&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdeonphzixbu8nmqpj4xo.png" alt="Shoprivet products dashboard showing the Add product action" width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's create our first product.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Product name: Classic Cotton T-Shirt

Description:
Comfortable everyday cotton T-shirt made
for casual wear.

Price: $45.00

Inventory: 50 units
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Upload your product images and configure the relevant product information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fygbdip6w7ehkeoga277p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fygbdip6w7ehkeoga277p.png" alt="Shoprivet product editor showing product details, pricing, images, and inventory" width="799" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can save products as drafts while preparing them.&lt;/p&gt;

&lt;p&gt;When a product is ready to be displayed on your website, publish it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3exy5fh55nojes22hnvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3exy5fh55nojes22hnvi.png" alt="Publishing a product from the Shoprivet dashboard" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Published products become eligible to appear in your public product catalog.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can repeat this process to add more products.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Product&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;th&gt;Stock&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Classic Cotton T-Shirt&lt;/td&gt;
&lt;td&gt;$45&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Essential Hoodie&lt;/td&gt;
&lt;td&gt;$75&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everyday Sneakers&lt;/td&gt;
&lt;td&gt;$90&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Canvas Tote Bag&lt;/td&gt;
&lt;td&gt;$25&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are example products for our demonstration store.&lt;/p&gt;

&lt;h3&gt;
  
  
  What About Product Sizes and Colors?
&lt;/h3&gt;

&lt;p&gt;If you're selling clothing or other products with different options, you may need product variants.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Small, medium, and large sizes.&lt;/li&gt;
&lt;li&gt;Black, white, and blue colors.&lt;/li&gt;
&lt;li&gt;Different product configurations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shoprivet supports product options and variants on eligible paid plans.&lt;/p&gt;

&lt;p&gt;You can review the &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt; if your store requires this functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Connect a Payment Gateway
&lt;/h2&gt;

&lt;p&gt;A shopping cart allows customers to select products, but you also need a way for them to complete their purchases.&lt;/p&gt;

&lt;p&gt;Shoprivet provides merchant payment integrations for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stripe.&lt;/li&gt;
&lt;li&gt;Paystack.&lt;/li&gt;
&lt;li&gt;Flutterwave.&lt;/li&gt;
&lt;li&gt;Razorpay.&lt;/li&gt;
&lt;li&gt;PayPal.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The available options depend on your merchant account, country, store currency, and provider configuration.&lt;/p&gt;

&lt;p&gt;From your store dashboard, open &lt;strong&gt;Settings&lt;/strong&gt; and navigate to the payment settings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxn1wtkq0jac0vru0yyge.png" alt="Shoprivet payment gateway settings showing supported payment providers" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose the payment gateway you want to connect.&lt;/p&gt;

&lt;p&gt;For example, if you already have a Stripe account, select &lt;strong&gt;Connect&lt;/strong&gt; and provide the required configuration.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F07e61w0df74m5hrszf7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F07e61w0df74m5hrszf7o.png" alt="Connecting Stripe to a Shoprivet store" width="800" height="638"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use the provider's test environment while developing and testing your website.&lt;/p&gt;

&lt;p&gt;Configure any required payment webhooks according to the instructions provided in the dashboard and the payment provider's documentation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where Does the Customer's Money Go?
&lt;/h3&gt;

&lt;p&gt;Shoprivet uses your connected merchant payment provider to process customer payments.&lt;/p&gt;

&lt;p&gt;You do not need to transfer your sales revenue from a separate Shoprivet wallet.&lt;/p&gt;

&lt;p&gt;Shoprivet does not add a separate platform sales commission to customer purchases. However, your payment provider may charge its own processing fees.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I Need to Write Payment Processing Code?
&lt;/h3&gt;

&lt;p&gt;For the standard embedded catalog integration, you do not need to implement your own payment processing endpoints.&lt;/p&gt;

&lt;p&gt;The checkout uses the connected payment gateway.&lt;/p&gt;

&lt;p&gt;You should still test the entire payment and order verification workflow before accepting real customer payments.&lt;/p&gt;

&lt;p&gt;Never include private payment gateway credentials in your HTML or frontend JavaScript.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Create Your Embeddable Product Catalog
&lt;/h2&gt;

&lt;p&gt;Now that we have products and a payment gateway configured, we can create the product catalog that will appear on our HTML website.&lt;/p&gt;

&lt;p&gt;From your Shoprivet dashboard, navigate to &lt;strong&gt;Catalog widgets&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvhfdepkn2lr62s4s3j5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvvhfdepkn2lr62s4s3j5.png" alt="Shoprivet Catalog widgets dashboard" width="799" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A default widget is created automatically, and you can also create additional widgets for different product selections or website pages.&lt;/p&gt;

&lt;p&gt;For example, you might want:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A catalog containing all your products.&lt;/li&gt;
&lt;li&gt;A catalog containing only clothing.&lt;/li&gt;
&lt;li&gt;A catalog containing selected accessories.&lt;/li&gt;
&lt;li&gt;A catalog for a promotional landing page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each widget can have its own product selection and appearance settings.&lt;/p&gt;

&lt;p&gt;Create a new widget or open the existing default widget.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Customize Your Product Catalog and Shopping Cart
&lt;/h2&gt;

&lt;p&gt;One advantage of using an embeddable product catalog is that you can customize its appearance to fit your existing website.&lt;/p&gt;

&lt;p&gt;Open the catalog widget editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrxn93c4hszvkfrlzy1a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsrxn93c4hszvkfrlzy1a.png" alt="Shoprivet visual catalog widget editor" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Select the Products You Want to Display
&lt;/h3&gt;

&lt;p&gt;You can configure which products should appear in the catalog.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fir11iapam5eb4qnow3z4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fir11iapam5eb4qnow3z4.png" alt="Shoprivet catalog widget product selection" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, if your HTML website has a dedicated clothing page, you can configure its catalog to display only the relevant products.&lt;/p&gt;

&lt;h3&gt;
  
  
  Customize the Product Layout
&lt;/h3&gt;

&lt;p&gt;Depending on your widget configuration, you can adjust the available design settings, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product grid layout.&lt;/li&gt;
&lt;li&gt;Number of columns.&lt;/li&gt;
&lt;li&gt;Mobile layout.&lt;/li&gt;
&lt;li&gt;Product display options.&lt;/li&gt;
&lt;li&gt;Buttons.&lt;/li&gt;
&lt;li&gt;Filters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qk1648i36fulvsflwo0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qk1648i36fulvsflwo0.png" alt="Shoprivet product catalog design settings" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The goal is to make the product catalog fit naturally into your existing website rather than forcing you to adopt an entirely new website design.&lt;/p&gt;

&lt;h3&gt;
  
  
  Customize the Shopping Cart
&lt;/h3&gt;

&lt;p&gt;You can also configure the shopping cart's appearance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43whebol5mv2h483vlt5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43whebol5mv2h483vlt5.png" alt="Shoprivet shopping cart settings tab" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffih7flj9nt8dem5o6g8h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffih7flj9nt8dem5o6g8h.png" alt="Shoprivet shopping cart design settings" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnf1e4rg54pweizwp8rsq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnf1e4rg54pweizwp8rsq.png" alt="Customizing the shopping cart icon in Shoprivet" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you're satisfied with the catalog and shopping cart appearance, save your changes.&lt;/p&gt;

&lt;p&gt;You now have a product catalog with shopping cart functionality that can be embedded into your HTML website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Copy Your Shopping Cart Embed Code
&lt;/h2&gt;

&lt;p&gt;From the widget editor, open &lt;strong&gt;Settings&lt;/strong&gt; and locate the embed code.&lt;/p&gt;

&lt;p&gt;You can also use the copy action from the Catalog widgets dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm9yu58toyh5tzqrz8mps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm9yu58toyh5tzqrz8mps.png" alt="Shoprivet catalog widget embed code" width="800" height="599"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The generated embed code follows a structure similar to this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
  &lt;span class="na"&gt;data-shoprivet&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"YOUR_STORE_SLUG"&lt;/span&gt;
  &lt;span class="na"&gt;data-shoprivet-widget&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"YOUR_WIDGET_ID"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt;
  &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://YOUR_API_ORIGIN/widget.js"&lt;/span&gt;
  &lt;span class="na"&gt;async&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is an illustrative example.&lt;/p&gt;

&lt;p&gt;Copy the actual embed code from your Shoprivet dashboard because it contains your store identifier, widget identifier, and the correct JavaScript resource URL.&lt;/p&gt;

&lt;p&gt;The HTML element determines where the catalog will appear on your website.&lt;/p&gt;

&lt;p&gt;The JavaScript resource loads the catalog and its associated ecommerce functionality.&lt;/p&gt;

&lt;p&gt;Unlike a simple payment link, the widget provides a product browsing and shopping cart experience within your website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Add the Shopping Cart to Your HTML Website
&lt;/h2&gt;

&lt;p&gt;Let's create a simple HTML website and embed our Shoprivet catalog into it.&lt;/p&gt;

&lt;p&gt;If you already have an existing website, you can skip creating a new page and insert the embed code into the appropriate section.&lt;/p&gt;

&lt;p&gt;Create a file called &lt;code&gt;index.html&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Add the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt;
    &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1.0"&lt;/span&gt;
  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Mode &amp;amp; Co. | Online Store&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;box-sizing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;border-box&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Arial&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sans-serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#171717&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#ffffff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;line-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nt"&gt;header&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;border-bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1px&lt;/span&gt; &lt;span class="n"&gt;solid&lt;/span&gt; &lt;span class="mh"&gt;#e5e7eb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#ffffff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nt"&gt;nav&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20px&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;space-between&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;flex-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;wrap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.logo&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;bold&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.nav-links&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;flex-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;wrap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.nav-links&lt;/span&gt; &lt;span class="nt"&gt;a&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#171717&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;text-decoration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.hero&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#f5f5f5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80px&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.hero&lt;/span&gt; &lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;clamp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;32px&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5vw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;48px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;line-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="mi"&gt;16px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.hero&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#666666&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt; &lt;span class="mi"&gt;28px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.hero&lt;/span&gt; &lt;span class="nt"&gt;a&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;inline-block&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;14px&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#171717&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#ffffff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;border-radius&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;text-decoration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.shop-section&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;64px&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.section-heading&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;margin-bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;40px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.section-heading&lt;/span&gt; &lt;span class="nt"&gt;h2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;32px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;margin-bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.section-heading&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#666666&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.about-section&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#f5f5f5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;64px&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nc"&gt;.about-section&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nt"&gt;footer&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;border-top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1px&lt;/span&gt; &lt;span class="n"&gt;solid&lt;/span&gt; &lt;span class="mh"&gt;#e5e7eb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#666666&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;nav&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;flex-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="nc"&gt;.hero&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;56px&lt;/span&gt; &lt;span class="mi"&gt;20px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;

      &lt;span class="nc"&gt;.shop-section&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;40px&lt;/span&gt; &lt;span class="mi"&gt;16px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;header&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;nav&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"logo"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Mode &amp;amp; Co.&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"nav-links"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"#home"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Home&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"#shop"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Shop&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"#about"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;About&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/header&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;main&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hero"&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"home"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Everyday Style, Made Simple.&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
        Discover comfortable clothing and accessories
        designed for your everyday lifestyle.
      &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"#shop"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Shop Collection&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"shop-section"&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"shop"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"section-heading"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Our Products&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;

        &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
          Explore our latest collection and find
          something you love.
        &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

      &lt;span class="c"&gt;&amp;lt;!--
        Paste the complete embed code copied
        from your Shoprivet dashboard here.
      --&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"about-section"&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"about"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;About Mode &amp;amp; Co.&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
        We believe everyday essentials should be
        comfortable, stylish, and easy to shop.
      &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;/main&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;footer&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Mode &amp;amp; Co. All rights reserved.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/footer&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the HTML comment inside the shop section with the actual embed code copied from your Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;Your shop section will follow a structure similar to this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"shop-section"&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"shop"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"section-heading"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Our Products&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Explore our latest collection.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="c"&gt;&amp;lt;!-- Your Shoprivet catalog container --&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
    &lt;span class="na"&gt;data-shoprivet&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"YOUR_STORE_SLUG"&lt;/span&gt;
    &lt;span class="na"&gt;data-shoprivet-widget&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"YOUR_WIDGET_ID"&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="c"&gt;&amp;lt;!-- Your actual Shoprivet widget script --&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt;
    &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://YOUR_API_ORIGIN/widget.js"&lt;/span&gt;
    &lt;span class="na"&gt;async&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Again, use the exact generated snippet from your dashboard rather than the placeholder values shown above.&lt;/p&gt;

&lt;p&gt;Save the file and open your website using a local development server.&lt;/p&gt;

&lt;p&gt;If you have Python installed, you can run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 -m http.server 8000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:8000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your HTML website should load the embedded product catalog, provided the widget is configured correctly and its external resources are accessible.&lt;/p&gt;

&lt;p&gt;Here is an example of a Shoprivet catalog embedded into an existing website:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F74amepqyye6ew0rt6mqf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F74amepqyye6ew0rt6mqf.png" alt="Shoprivet product catalog embedded into a live website" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An example of an embedded catalog displaying products within an existing website. This screenshot is not a rendering of the sample HTML above.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Notice that we haven't created a backend application.&lt;/p&gt;

&lt;p&gt;We haven't installed Node.js dependencies, configured a database, written a shopping cart state management system, or implemented payment processing endpoints.&lt;/p&gt;

&lt;p&gt;Our website handles the presentation, while Shoprivet provides the commerce functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 9: Test the Shopping Cart
&lt;/h2&gt;

&lt;p&gt;Open your website in the browser and select a product.&lt;/p&gt;

&lt;p&gt;Click &lt;strong&gt;Add to Cart&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The shopping cart allows customers to review their selected products before proceeding to checkout.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkzck9qpww0eu0by4ymef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkzck9qpww0eu0by4ymef.png" alt="Shoprivet shopping cart displaying selected products and order totals" width="800" height="593"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Test the following customer interactions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding a product to the cart.&lt;/li&gt;
&lt;li&gt;Adding multiple products.&lt;/li&gt;
&lt;li&gt;Increasing or decreasing product quantities.&lt;/li&gt;
&lt;li&gt;Removing products.&lt;/li&gt;
&lt;li&gt;Reviewing product prices and totals.&lt;/li&gt;
&lt;li&gt;Proceeding to checkout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You should also test the shopping cart on mobile devices.&lt;/p&gt;

&lt;p&gt;This is particularly important because many customers browse and purchase products using their phones.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I Need to Implement Cart State Management?
&lt;/h3&gt;

&lt;p&gt;Not for the standard Shoprivet catalog widget.&lt;/p&gt;

&lt;p&gt;You do not need to create your own JavaScript shopping cart array, React Context, Redux store, or custom localStorage implementation for the embedded cart.&lt;/p&gt;

&lt;p&gt;The widget provides the shopping cart experience.&lt;/p&gt;

&lt;p&gt;This is useful if you're building static websites and want to avoid introducing an entire frontend framework just to manage ecommerce functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 10: Test the Checkout and Payment Flow
&lt;/h2&gt;

&lt;p&gt;Once you have added products to the shopping cart, proceed to checkout.&lt;/p&gt;

&lt;p&gt;Customers provide the required order information and select an available payment method.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkww519o1f58ggqatzox3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkww519o1f58ggqatzox3.png" alt="Shoprivet checkout interface" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Checkout showing test payment details.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The exact checkout and payment experience depends on the connected payment gateway and store configuration.&lt;/p&gt;

&lt;p&gt;Complete a test transaction using your payment provider's supported test environment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fajk72xhav7mg8yotymxx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fajk72xhav7mg8yotymxx.png" alt="Successful Shoprivet checkout confirmation" width="800" height="618"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before accepting real customer payments, verify that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The correct products appear in the order.&lt;/li&gt;
&lt;li&gt;Product quantities are correct.&lt;/li&gt;
&lt;li&gt;The order total matches the expected amount.&lt;/li&gt;
&lt;li&gt;The payment gateway processes the transaction.&lt;/li&gt;
&lt;li&gt;Payment verification completes successfully.&lt;/li&gt;
&lt;li&gt;The order appears in your Shoprivet dashboard.&lt;/li&gt;
&lt;li&gt;Failed or cancelled payments are handled appropriately.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A successful redirect or checkout confirmation page alone is not sufficient proof that a payment has been verified.&lt;/p&gt;

&lt;p&gt;Always check the recorded payment status and your payment provider's transaction information.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 11: Receive Order Notifications
&lt;/h2&gt;

&lt;p&gt;Once a customer places an order, the business owner needs to know about it.&lt;/p&gt;

&lt;p&gt;Shoprivet provides order email notifications so that merchants can be informed when orders are placed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbjx2o3aoecauva5hn5w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbjx2o3aoecauva5hn5w.png" alt="Shoprivet order notification email containing customer order information" width="799" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An example of an order notification email.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is particularly useful for small businesses that do not want to constantly monitor an order management dashboard.&lt;/p&gt;

&lt;p&gt;You do not need to implement your own email notification service for the standard order notification workflow.&lt;/p&gt;

&lt;p&gt;During testing, confirm that the expected email notification is delivered.&lt;/p&gt;

&lt;p&gt;An order notification should not be treated as independent proof that the customer's payment has been verified.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 12: Manage Orders From Your Dashboard
&lt;/h2&gt;

&lt;p&gt;Receiving a customer payment is only part of running an online store.&lt;/p&gt;

&lt;p&gt;You also need to manage the order after the purchase.&lt;/p&gt;

&lt;p&gt;For example, if you sell physical products, you may need to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Review the customer's order.&lt;/li&gt;
&lt;li&gt;Prepare the purchased items.&lt;/li&gt;
&lt;li&gt;Process the order.&lt;/li&gt;
&lt;li&gt;Ship the products.&lt;/li&gt;
&lt;li&gt;Mark the order as delivered.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From your Shoprivet dashboard, navigate to &lt;strong&gt;Orders&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qsorx00roqx7lxbo4gp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qsorx00roqx7lxbo4gp.png" alt="Shoprivet orders dashboard showing customer orders and statuses" width="799" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can open an individual order to review its details.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisw7oozr1j4q96twu6fv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fisw7oozr1j4q96twu6fv.png" alt="Shoprivet individual order details and fulfillment controls" width="800" height="489"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shoprivet supports order fulfillment states such as:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pending&lt;/td&gt;
&lt;td&gt;The order is awaiting further processing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Processing&lt;/td&gt;
&lt;td&gt;The business is preparing the order&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shipped&lt;/td&gt;
&lt;td&gt;The order has been dispatched&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delivered&lt;/td&gt;
&lt;td&gt;The order has reached the customer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cancelled&lt;/td&gt;
&lt;td&gt;The order has been cancelled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Refunded&lt;/td&gt;
&lt;td&gt;The order is recorded as refunded&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Payment verification is separate from ordinary fulfillment updates.&lt;/p&gt;

&lt;p&gt;For example, changing an order's fulfillment status does not independently verify a payment or establish that a refund has been processed by the payment provider.&lt;/p&gt;

&lt;p&gt;This distinction is important when managing customer purchases.&lt;/p&gt;

&lt;p&gt;Instead of building your own order management interface, you can manage the order workflow directly from Shoprivet.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happens When You Change a Product's Price?
&lt;/h2&gt;

&lt;p&gt;Imagine you've created an HTML website containing 20 products.&lt;/p&gt;

&lt;p&gt;If each product is hardcoded into your HTML, changing prices might require editing the source code and redeploying the website.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"product"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;Classic Cotton T-Shirt&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;$45.00&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the price changes to $39, you would need to update the HTML.&lt;/p&gt;

&lt;p&gt;Now imagine managing hundreds of products or making frequent price changes.&lt;/p&gt;

&lt;p&gt;This becomes increasingly difficult to maintain.&lt;/p&gt;

&lt;p&gt;With Shoprivet, product information is managed from your dashboard.&lt;/p&gt;

&lt;p&gt;You can update:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product names.&lt;/li&gt;
&lt;li&gt;Product descriptions.&lt;/li&gt;
&lt;li&gt;Product images.&lt;/li&gt;
&lt;li&gt;Prices.&lt;/li&gt;
&lt;li&gt;Inventory.&lt;/li&gt;
&lt;li&gt;Product availability.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your embedded catalog loads the product information from Shoprivet.&lt;/p&gt;

&lt;p&gt;Eligible updates appear when the catalog reloads.&lt;/p&gt;

&lt;p&gt;If you add a new product, it can appear in the catalog without editing your website's HTML, provided the widget is configured to include that product.&lt;/p&gt;

&lt;p&gt;If the widget displays an explicitly selected set of products, update its product selection first.&lt;/p&gt;

&lt;p&gt;This means you can manage your ecommerce operations independently of your website's source code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Managing Product Inventory Without Building a Database
&lt;/h2&gt;

&lt;p&gt;Inventory management becomes important when selling physical products.&lt;/p&gt;

&lt;p&gt;For example, suppose your business has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;50 T-shirts.&lt;/li&gt;
&lt;li&gt;30 hoodies.&lt;/li&gt;
&lt;li&gt;20 pairs of sneakers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You need a reliable way to manage product availability as customers place orders.&lt;/p&gt;

&lt;p&gt;If you're building your own ecommerce system, you would need to design product inventory tables and implement logic for stock availability and order processing.&lt;/p&gt;

&lt;p&gt;Shoprivet provides product inventory controls within its product management dashboard.&lt;/p&gt;

&lt;p&gt;You can configure stock tracking for products that require it.&lt;/p&gt;

&lt;p&gt;Before launching a store with limited inventory, test the behavior when products are out of stock and when multiple customers attempt to purchase the same product.&lt;/p&gt;

&lt;p&gt;Inventory tracking is another reason why a complete ecommerce backend can be more useful than a basic JavaScript shopping cart.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploying Your HTML Ecommerce Website
&lt;/h2&gt;

&lt;p&gt;Once you have tested the product catalog, shopping cart, checkout, and order workflow, you can deploy your website.&lt;/p&gt;

&lt;p&gt;Because the commerce functionality is provided through an external widget, your website can remain static.&lt;/p&gt;

&lt;p&gt;Common hosting options include:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hosting platform&lt;/th&gt;
&lt;th&gt;Suitable for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cloudflare Pages&lt;/td&gt;
&lt;td&gt;Static websites and frontend projects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Netlify&lt;/td&gt;
&lt;td&gt;Static websites and Git-based deployments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vercel&lt;/td&gt;
&lt;td&gt;Frontend applications and static websites&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub Pages&lt;/td&gt;
&lt;td&gt;Static HTML, CSS, and JavaScript websites&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Your hosting environment must allow the widget's JavaScript and required external resources to load.&lt;/p&gt;

&lt;p&gt;If you're already hosting your website, simply deploy the updated HTML containing your embed code.&lt;/p&gt;

&lt;p&gt;You do not need to migrate your website to Shoprivet.&lt;/p&gt;

&lt;p&gt;After deployment, open the production website and test the shopping experience again.&lt;/p&gt;

&lt;p&gt;A catalog that works locally should still be tested on the published domain, particularly if your website uses a restrictive Content Security Policy.&lt;/p&gt;

&lt;h2&gt;
  
  
  JavaScript Shopping Cart vs Payment Links vs Shoprivet
&lt;/h2&gt;

&lt;p&gt;You might be wondering whether you actually need a complete ecommerce platform.&lt;/p&gt;

&lt;p&gt;For some websites, a payment link may be sufficient.&lt;/p&gt;

&lt;p&gt;For example, if you're selling a single ebook, you might only need a Buy Now button that redirects customers to a payment page.&lt;/p&gt;

&lt;p&gt;However, the requirements change when customers need to browse multiple products, select quantities, add products to a shopping cart, and complete a combined purchase.&lt;/p&gt;

&lt;p&gt;Here is how the approaches compare.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Custom JavaScript Cart&lt;/th&gt;
&lt;th&gt;Payment Links Alone&lt;/th&gt;
&lt;th&gt;Shoprivet&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Display products&lt;/td&gt;
&lt;td&gt;Build yourself&lt;/td&gt;
&lt;td&gt;Build separately&lt;/td&gt;
&lt;td&gt;Built-in catalog&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shopping cart&lt;/td&gt;
&lt;td&gt;Build yourself&lt;/td&gt;
&lt;td&gt;Generally not included&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product management&lt;/td&gt;
&lt;td&gt;Build yourself&lt;/td&gt;
&lt;td&gt;Provider-dependent&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inventory management&lt;/td&gt;
&lt;td&gt;Requires backend implementation&lt;/td&gt;
&lt;td&gt;Provider-dependent&lt;/td&gt;
&lt;td&gt;Available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payment processing&lt;/td&gt;
&lt;td&gt;Requires integration&lt;/td&gt;
&lt;td&gt;Provided by payment service&lt;/td&gt;
&lt;td&gt;Connected merchant gateways&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payment verification&lt;/td&gt;
&lt;td&gt;Requires trusted backend&lt;/td&gt;
&lt;td&gt;Provider-dependent&lt;/td&gt;
&lt;td&gt;Integrated workflow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Order dashboard&lt;/td&gt;
&lt;td&gt;Build yourself&lt;/td&gt;
&lt;td&gt;Provider-dependent&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Order email notifications&lt;/td&gt;
&lt;td&gt;Implement separately&lt;/td&gt;
&lt;td&gt;Provider-dependent&lt;/td&gt;
&lt;td&gt;Available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product variants&lt;/td&gt;
&lt;td&gt;Implement yourself&lt;/td&gt;
&lt;td&gt;Provider-dependent&lt;/td&gt;
&lt;td&gt;Available on paid plans&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Custom frontend&lt;/td&gt;
&lt;td&gt;Full control&lt;/td&gt;
&lt;td&gt;Control over surrounding website&lt;/td&gt;
&lt;td&gt;Configurable widget or REST API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend maintenance&lt;/td&gt;
&lt;td&gt;Your responsibility&lt;/td&gt;
&lt;td&gt;Limited&lt;/td&gt;
&lt;td&gt;Managed commerce backend&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A custom ecommerce backend may be appropriate if you need specialized business logic or complete control over every aspect of the purchasing experience.&lt;/p&gt;

&lt;p&gt;Payment links may be appropriate if your purchasing requirements are simple.&lt;/p&gt;

&lt;p&gt;But if you want a complete product catalog, shopping cart, checkout, inventory management, and order dashboard, an embeddable ecommerce platform can save considerable development effort.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding Ecommerce to Multiple Client Websites
&lt;/h2&gt;

&lt;p&gt;If you're a freelance developer or web development agency, you might regularly build websites for businesses that want to sell products.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A clothing business selling apparel.&lt;/li&gt;
&lt;li&gt;A skincare business selling beauty products.&lt;/li&gt;
&lt;li&gt;A bakery selling packaged goods.&lt;/li&gt;
&lt;li&gt;An artist selling prints.&lt;/li&gt;
&lt;li&gt;A furniture business selling home accessories.&lt;/li&gt;
&lt;li&gt;A creator selling digital products.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without a reusable e-commerce solution, you might need to implement similar functionality for every client.&lt;/p&gt;

&lt;p&gt;You would repeatedly build or integrate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product management.&lt;/li&gt;
&lt;li&gt;Shopping carts.&lt;/li&gt;
&lt;li&gt;Payment processing.&lt;/li&gt;
&lt;li&gt;Inventory tracking.&lt;/li&gt;
&lt;li&gt;Order management.&lt;/li&gt;
&lt;li&gt;Customer notifications.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With Shoprivet, you can create separate stores for different client websites, subject to your subscription plan.&lt;/p&gt;

&lt;p&gt;Each store can have its own products, catalog widgets, payment configuration, and orders.&lt;/p&gt;

&lt;p&gt;Your workflow becomes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create a store for the client
            |
            v
Add and publish products
            |
            v
Connect the client's payment gateway
            |
            v
Create and customize a catalog widget
            |
            v
Embed the widget into the client's website
            |
            v
Test checkout and order processing
            |
            v
Launch the website
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The client can manage products and orders through the appropriate dashboard access arrangement without requiring you to manually update product cards every time a price changes.&lt;/p&gt;

&lt;p&gt;For agencies, this creates a repeatable approach to delivering ecommerce websites without maintaining separate custom commerce backends for every project.&lt;/p&gt;

&lt;p&gt;Review the available account and store management options before deciding how client ownership and access will be handled.&lt;/p&gt;

&lt;h2&gt;
  
  
  What If I Want Complete Control Over the Shopping Cart Design?
&lt;/h2&gt;

&lt;p&gt;The embedded catalog is useful when you want to add ecommerce functionality quickly.&lt;/p&gt;

&lt;p&gt;However, some developers may want to build their own product pages and create a completely custom shopping experience.&lt;/p&gt;

&lt;p&gt;Shoprivet also provides a commerce REST API.&lt;/p&gt;

&lt;p&gt;This allows developers to build custom frontends using technologies such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React.&lt;/li&gt;
&lt;li&gt;Next.js.&lt;/li&gt;
&lt;li&gt;Vue.&lt;/li&gt;
&lt;li&gt;Astro.&lt;/li&gt;
&lt;li&gt;Svelte.&lt;/li&gt;
&lt;li&gt;HTML and JavaScript.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can use supported commerce endpoints according to the current API documentation.&lt;/p&gt;

&lt;p&gt;Generate the appropriate credentials from the &lt;strong&gt;Developers&lt;/strong&gt; section of your dashboard.&lt;/p&gt;

&lt;p&gt;Never expose private merchant API keys in public frontend code.&lt;/p&gt;

&lt;p&gt;Depending on the endpoints and authentication requirements, a custom API integration may require a secure server-side component.&lt;/p&gt;

&lt;p&gt;If your primary goal is to add a shopping cart to a static HTML website without writing backend code, the catalog widget is the simpler approach.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/#developers" rel="noopener noreferrer"&gt;Explore Shoprivet's developer features&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What If I Don't Already Have an HTML Website?
&lt;/h2&gt;

&lt;p&gt;You can also use Shoprivet to create a complete hosted online store.&lt;/p&gt;

&lt;p&gt;Instead of writing your own HTML, CSS, and JavaScript, you can choose a storefront template and customize it using the visual storefront builder.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi27l6omfhqb8ae2od4wg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi27l6omfhqb8ae2od4wg.png" alt="Shoprivet storefront templates gallery" width="799" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvcg1uhnns1f7eo6vip9e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvcg1uhnns1f7eo6vip9e.png" alt="Additional Shoprivet storefront templates" width="799" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose a design that suits your business, then customize its sections, text, images, and available layout settings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sqix7iduv0vswtsodxc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0sqix7iduv0vswtsodxc.png" alt="Shoprivet visual storefront builder" width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv44y6vzhdurji439bvkk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv44y6vzhdurji439bvkk.png" alt="Customizing an online store using the Shoprivet visual builder" width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once your store is ready, publish the storefront.&lt;/p&gt;

&lt;p&gt;You can use a Shoprivet subdomain or configure a custom domain on an eligible paid plan.&lt;/p&gt;

&lt;p&gt;This gives you three ways to build your ecommerce website without starting over as your requirements change.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Embedded catalog&lt;/td&gt;
&lt;td&gt;Adding ecommerce to an existing website&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosted storefront&lt;/td&gt;
&lt;td&gt;Creating a complete online store without coding&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commerce REST API&lt;/td&gt;
&lt;td&gt;Building a custom ecommerce frontend&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/templates" rel="noopener noreferrer"&gt;Explore Shoprivet storefront templates&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Much Does It Cost to Add a Shopping Cart to Your HTML Website?
&lt;/h2&gt;

&lt;p&gt;Building an ecommerce backend yourself involves more than the initial development cost.&lt;/p&gt;

&lt;p&gt;You may also need to pay for hosting, database infrastructure, monitoring, maintenance, and additional integrations.&lt;/p&gt;

&lt;p&gt;Shoprivet provides free and paid plans based on your store's requirements.&lt;/p&gt;

&lt;p&gt;The published monthly pricing structure includes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Free&lt;/th&gt;
&lt;th&gt;Premium&lt;/th&gt;
&lt;th&gt;Business&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Monthly price&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;$39&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Products&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orders per billing period&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;10,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Plan limits apply at the account level.&lt;/p&gt;

&lt;p&gt;The Free plan includes one store, while paid plans provide higher store and payment configuration allowances.&lt;/p&gt;

&lt;p&gt;Shoprivet does not charge a separate platform commission on customer purchases.&lt;/p&gt;

&lt;p&gt;Your connected payment gateway may still charge its standard processing fees.&lt;/p&gt;

&lt;p&gt;Check the &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;current Shoprivet pricing page&lt;/a&gt; for the latest pricing, limits, and feature availability.&lt;/p&gt;

&lt;h3&gt;
  
  
  When Should You Consider the Premium Plan?
&lt;/h3&gt;

&lt;p&gt;The free plan is useful for testing the integration or starting a small online store.&lt;/p&gt;

&lt;p&gt;However, as your business grows, you may need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;More than 25 products.&lt;/li&gt;
&lt;li&gt;Higher order allowances.&lt;/li&gt;
&lt;li&gt;Product variants for sizes and colors.&lt;/li&gt;
&lt;li&gt;Additional stores.&lt;/li&gt;
&lt;li&gt;Additional payment gateway configurations.&lt;/li&gt;
&lt;li&gt;A custom domain for your hosted storefront.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a clothing business selling products with multiple sizes and colors may benefit from product variants from the beginning.&lt;/p&gt;

&lt;p&gt;An established business processing regular customer orders may also need higher monthly order allowances.&lt;/p&gt;

&lt;p&gt;Premium provides an upgrade path for businesses with these requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  When Should You Consider the Business Plan?
&lt;/h3&gt;

&lt;p&gt;If you're a developer or agency managing multiple ecommerce websites, your requirements may be different from those of an individual merchant.&lt;/p&gt;

&lt;p&gt;You may need to manage more stores, support higher order volumes, and configure multiple payment gateways.&lt;/p&gt;

&lt;p&gt;The Business plan is designed for larger commerce requirements.&lt;/p&gt;

&lt;p&gt;Rather than maintaining a separate ecommerce backend for every client website, you can use a shared commerce platform while organizing products and orders into their respective stores.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;Compare Shoprivet plans&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting Your HTML Shopping Cart Integration
&lt;/h2&gt;

&lt;h3&gt;
  
  
  My Product Catalog Is Not Showing
&lt;/h3&gt;

&lt;p&gt;First, confirm that you copied the complete embed code from your Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;Make sure that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The store identifier is correct.&lt;/li&gt;
&lt;li&gt;The widget identifier is correct.&lt;/li&gt;
&lt;li&gt;The JavaScript resource URL is correct.&lt;/li&gt;
&lt;li&gt;The widget has been saved.&lt;/li&gt;
&lt;li&gt;Your products have been published.&lt;/li&gt;
&lt;li&gt;The products are included in the widget's selection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Open your browser's developer tools and check the Console and Network tabs for errors.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Products Are Missing From the Catalog
&lt;/h3&gt;

&lt;p&gt;Check whether the products have been published.&lt;/p&gt;

&lt;p&gt;Products saved as drafts are not eligible to appear in public catalogs.&lt;/p&gt;

&lt;p&gt;Also check whether your widget displays all eligible products or only an explicitly selected group.&lt;/p&gt;

&lt;p&gt;If it displays selected products, update the widget configuration to include the missing products.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Shopping Cart Works Locally but Not After Deployment
&lt;/h3&gt;

&lt;p&gt;Check whether your published website permits the widget's external JavaScript and network requests.&lt;/p&gt;

&lt;p&gt;A restrictive Content Security Policy can prevent third-party scripts or external resources from loading.&lt;/p&gt;

&lt;p&gt;Review the actual browser error and configure the necessary trusted origins.&lt;/p&gt;

&lt;p&gt;Do not disable your entire security policy just to make the widget work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Customers Cannot Complete Their Payments
&lt;/h3&gt;

&lt;p&gt;Open your store's payment settings and confirm that your payment provider is configured correctly.&lt;/p&gt;

&lt;p&gt;Check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Merchant credentials.&lt;/li&gt;
&lt;li&gt;Test or live environment selection.&lt;/li&gt;
&lt;li&gt;Supported store currency.&lt;/li&gt;
&lt;li&gt;Merchant account activation.&lt;/li&gt;
&lt;li&gt;Required payment webhooks.&lt;/li&gt;
&lt;li&gt;Errors returned by the payment provider.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A configured payment gateway does not automatically guarantee successful transactions.&lt;/p&gt;

&lt;p&gt;Test the complete checkout and payment verification workflow before accepting customer orders.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Payment Was Successful but the Order Status Is Incorrect
&lt;/h3&gt;

&lt;p&gt;Review the payment provider's transaction record and the corresponding Shoprivet order.&lt;/p&gt;

&lt;p&gt;Check whether any required payment webhooks or verification steps have completed.&lt;/p&gt;

&lt;p&gt;Do not manually mark an order as paid solely because a customer has returned to a success page.&lt;/p&gt;

&lt;p&gt;Confirm the payment using the appropriate trusted payment information.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Product Price Has Changed but the Website Still Shows the Old Price
&lt;/h3&gt;

&lt;p&gt;Confirm that the updated product information has been saved.&lt;/p&gt;

&lt;p&gt;Reload the website so the catalog can retrieve the updated product data.&lt;/p&gt;

&lt;p&gt;If the old information continues to appear, inspect the widget's network requests and any relevant caching behavior.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Shopping Cart Does Not Look Right on Mobile
&lt;/h3&gt;

&lt;p&gt;Open the catalog widget editor and review the available responsive layout and cart design settings.&lt;/p&gt;

&lt;p&gt;Also check your website's surrounding CSS.&lt;/p&gt;

&lt;p&gt;For example, a parent container with a fixed width or restrictive overflow settings may interfere with the embedded catalog's appearance.&lt;/p&gt;

&lt;p&gt;Test the final website on both desktop and mobile devices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I add a shopping cart to an HTML website without a backend?
&lt;/h3&gt;

&lt;p&gt;Yes. You can embed a product catalog and shopping cart provided by a hosted ecommerce backend such as Shoprivet.&lt;/p&gt;

&lt;p&gt;Your HTML website remains responsible for its design and content, while Shoprivet provides the commerce functionality.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I create a shopping cart using only JavaScript?
&lt;/h3&gt;

&lt;p&gt;Yes, you can create the frontend shopping cart using JavaScript.&lt;/p&gt;

&lt;p&gt;However, secure payment processing, authoritative pricing, inventory management, and order verification require trusted backend services.&lt;/p&gt;

&lt;p&gt;You can either build those services yourself or use a hosted ecommerce backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Node.js or PHP to add a shopping cart to my website?
&lt;/h3&gt;

&lt;p&gt;No. If you're using the Shoprivet catalog widget, you do not need to create a Node.js or PHP application for the standard integration.&lt;/p&gt;

&lt;p&gt;You can embed the catalog using HTML and JavaScript.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add a shopping cart to a static website?
&lt;/h3&gt;

&lt;p&gt;Yes. A static website can load an external ecommerce widget.&lt;/p&gt;

&lt;p&gt;You can use compatible hosting platforms such as Cloudflare Pages, Netlify, Vercel, or GitHub Pages without implementing your own ecommerce backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I accept Stripe payments on my HTML website?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet supports Stripe merchant payment integration.&lt;/p&gt;

&lt;p&gt;Connect your Stripe account through the payment settings and configure the required payment and verification workflow.&lt;/p&gt;

&lt;p&gt;Availability depends on your merchant account, currency, and configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I accept Paystack or Flutterwave payments?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet provides merchant integrations for Paystack and Flutterwave.&lt;/p&gt;

&lt;p&gt;These can be useful for businesses operating in supported African markets.&lt;/p&gt;

&lt;p&gt;Check the payment provider's country, currency, and merchant eligibility requirements before configuring your store.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use PayPal with my HTML shopping cart?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet provides a PayPal merchant integration.&lt;/p&gt;

&lt;p&gt;The available payment experience depends on your PayPal account and store configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add a shopping cart without using Shopify?
&lt;/h3&gt;

&lt;p&gt;Yes. Shopify is not the only way to add ecommerce functionality to an existing website.&lt;/p&gt;

&lt;p&gt;Shoprivet allows you to embed a product catalog, shopping cart, and checkout while keeping your existing website and hosting provider.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I keep my existing HTML website design?
&lt;/h3&gt;

&lt;p&gt;Yes. You can retain your existing navigation, homepage, About page, branding, and other website sections.&lt;/p&gt;

&lt;p&gt;The embedded catalog appears wherever you insert its generated code.&lt;/p&gt;

&lt;p&gt;You can customize the available catalog and cart appearance settings from your Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;If you need complete control over individual product markup and purchasing interactions, consider the commerce REST API and its authentication requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I manage products without editing HTML?
&lt;/h3&gt;

&lt;p&gt;Yes. Product information is managed from your Shoprivet dashboard.&lt;/p&gt;

&lt;p&gt;You can update product prices, descriptions, images, and inventory without manually editing hardcoded product cards.&lt;/p&gt;

&lt;p&gt;Eligible updates appear when the catalog reloads.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I sell products with different sizes and colors?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet supports product options and variants on eligible paid plans.&lt;/p&gt;

&lt;p&gt;This is useful for clothing, footwear, accessories, and other products with multiple configurations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add multiple product catalogs to my website?
&lt;/h3&gt;

&lt;p&gt;Shoprivet supports multiple catalog widgets for a store.&lt;/p&gt;

&lt;p&gt;You can configure different widgets to display different product selections across your website.&lt;/p&gt;

&lt;p&gt;Test the shopping experience when using multiple widgets on the same page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I sell digital products?
&lt;/h3&gt;

&lt;p&gt;Shoprivet supports digital product stores as well as physical product stores.&lt;/p&gt;

&lt;p&gt;Review and test the digital product purchase and delivery workflow before launching.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Shoprivet charge a percentage of my sales?
&lt;/h3&gt;

&lt;p&gt;Shoprivet does not add a separate platform sales commission to customer purchases.&lt;/p&gt;

&lt;p&gt;However, your connected payment gateway may charge payment processing fees.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add a shopping cart to my HTML website for free?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet provides a free plan that allows you to create a store, add products, and test the embedded shopping cart.&lt;/p&gt;

&lt;p&gt;Usage allowances and advanced features depend on your selected plan.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;Create a free Shoprivet account&lt;/a&gt; to get started.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I manage online stores for multiple clients?
&lt;/h3&gt;

&lt;p&gt;Yes. Shoprivet supports multiple stores on eligible paid plans.&lt;/p&gt;

&lt;p&gt;This can be useful for developers and agencies that want a repeatable ecommerce integration across client websites.&lt;/p&gt;

&lt;p&gt;Review the store limits and account access arrangements before onboarding clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Adding a shopping cart to an HTML website does not have to mean building an entire ecommerce application from scratch.&lt;/p&gt;

&lt;p&gt;You can keep your existing website while using a dedicated ecommerce backend to manage the commerce functionality.&lt;/p&gt;

&lt;p&gt;With Shoprivet, you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add a product catalog to your HTML website.&lt;/li&gt;
&lt;li&gt;Provide a working shopping cart.&lt;/li&gt;
&lt;li&gt;Connect supported payment gateways.&lt;/li&gt;
&lt;li&gt;Manage products and inventory.&lt;/li&gt;
&lt;li&gt;Receive customer orders and notifications.&lt;/li&gt;
&lt;li&gt;Manage order fulfillment.&lt;/li&gt;
&lt;li&gt;Organize multiple online stores.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All without building and maintaining your own ecommerce backend for the standard embedded catalog integration.&lt;/p&gt;

&lt;p&gt;Whether you're building a website for your own business or developing ecommerce websites for clients, you can focus on creating a great website while Shoprivet handles the commerce workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your website is already built. You don't need to rebuild it just to start selling products.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shoprivet.io/app/signup" rel="noopener noreferrer"&gt;Create your free Shoprivet store&lt;/a&gt; and add a working shopping cart to your website.&lt;/p&gt;

&lt;p&gt;You can also &lt;a href="https://shoprivet.io/product-catalog-widget" rel="noopener noreferrer"&gt;explore the Shoprivet product catalog widget&lt;/a&gt; or &lt;a href="https://shoprivet.io/pricing" rel="noopener noreferrer"&gt;compare the available plans&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I am the developer behind Shoprivet. This tutorial describes the platform's documented ecommerce functionality. Always test your website integration, payment gateway configuration, inventory behavior, and order verification before accepting real customer payments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shoprivet</category>
      <category>ecommerce</category>
      <category>shoppingcart</category>
    </item>
    <item>
      <title>How to Add a Contact Form to Your Cloudflare Pages Website Without a Backend</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 27 Nov 2026 02:00:19 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-to-add-a-contact-form-to-your-cloudflare-pages-website-without-a-backend-l03</link>
      <guid>https://dev.to/allenarduino/how-to-add-a-contact-form-to-your-cloudflare-pages-website-without-a-backend-l03</guid>
      <description>&lt;p&gt;Cloudflare Pages is an excellent platform for hosting static websites, portfolios, landing pages, and client websites.&lt;/p&gt;

&lt;p&gt;You can deploy a website built with HTML, React, Astro, Vue, or other frontend technologies without maintaining your own web server.&lt;/p&gt;

&lt;p&gt;But there is one question that often comes up when building a website on Cloudflare Pages:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do you receive contact form submissions and email notifications without building a backend?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Unlike a traditional full-stack application, a static website does not automatically have a server-side application that processes incoming form submissions.&lt;/p&gt;

&lt;p&gt;You could implement your own solution using Cloudflare Workers, Pages Functions, a database, and an email delivery service.&lt;/p&gt;

&lt;p&gt;But if you just need a working contact form that collects customer enquiries, that may be more infrastructure than you need.&lt;/p&gt;

&lt;p&gt;In this tutorial, I will show you how to add a working contact form to your Cloudflare Pages website using &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You will be able to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Receive and store contact form submissions.&lt;/li&gt;
&lt;li&gt;Receive email notifications when someone contacts you.&lt;/li&gt;
&lt;li&gt;Protect your contact form against spam.&lt;/li&gt;
&lt;li&gt;Identify potential customers using AI lead classification.&lt;/li&gt;
&lt;li&gt;Manage customer enquiries through a built-in lead pipeline.&lt;/li&gt;
&lt;li&gt;Connect forms across multiple client websites.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All without writing your own Cloudflare Worker, configuring Pages Functions, or maintaining a separate database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does Cloudflare Pages Support Contact Forms?
&lt;/h2&gt;

&lt;p&gt;Cloudflare Pages supports hosting websites that contain HTML forms.&lt;/p&gt;

&lt;p&gt;However, deploying a contact form does not automatically give you a managed submission inbox, email notifications, or lead management functionality.&lt;/p&gt;

&lt;p&gt;Consider this simple HTML form:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Send Message&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The form displays correctly in the browser, but it still needs a submission destination.&lt;/p&gt;

&lt;p&gt;When someone clicks &lt;strong&gt;Send Message&lt;/strong&gt;, a service needs to receive the submitted information, process it, and make it available to the website owner.&lt;/p&gt;

&lt;p&gt;There are several ways to implement this on Cloudflare Pages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build a custom backend using Cloudflare Workers.&lt;/li&gt;
&lt;li&gt;Use Cloudflare Pages Functions to process submissions.&lt;/li&gt;
&lt;li&gt;Connect your website to an external form backend.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The third option is particularly useful if you want to keep your website static and avoid maintaining additional backend infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Handle Cloudflare Pages Form Submissions Without Workers
&lt;/h2&gt;

&lt;p&gt;Instead of building a server-side application, you can connect your contact form to a hosted form submission endpoint.&lt;/p&gt;

&lt;p&gt;Your Cloudflare Pages website continues to handle the frontend, while the form backend handles everything that happens after someone submits the form.&lt;/p&gt;

&lt;p&gt;The architecture looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Cloudflare Pages Website
          |
          v
     Contact Form
          |
      HTTP POST
          |
          v
Formgrid.dev Submission Endpoint
          |
          v
Validation and Spam Protection
          |
          v
   Accepted Submission
          |
    +-----+------+
    |            |
    v            v
Email          Lead
Notification   Dashboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This approach allows you to keep your existing website design, frontend framework, and Cloudflare Pages deployment workflow.&lt;/p&gt;

&lt;p&gt;You do not need to migrate your website to another hosting provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create a Free Formgrid.dev Account
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt; is an open-source form backend, visual form builder, and built-in lead management platform that helps developers and businesses collect and manage website enquiries without maintaining their own form submission infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw83f2kf1orziahc4bnef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw83f2kf1orziahc4bnef.png" alt="Formgrid.dev landing page showing form backend, form builder, and lead management functionality" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Visit the &lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Formgrid.dev signup page&lt;/a&gt; and create a free account using your Google account or email address.&lt;/p&gt;

&lt;p&gt;No credit card is required.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzz9kakwxjhyqlnllimrs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzz9kakwxjhyqlnllimrs.png" alt="Formgrid.dev signup page showing Google and email registration options" width="800" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you have signed up and completed any required verification, you will be directed to your dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create a New Form
&lt;/h2&gt;

&lt;p&gt;From your dashboard, click &lt;strong&gt;New Form&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Enter a name for your form, such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Cloudflare Pages Contact Form
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also add a description, although this is optional.&lt;/p&gt;

&lt;p&gt;Click &lt;strong&gt;Create Form&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4go06kae8so5taw4rixa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4go06kae8so5taw4rixa.png" alt="Formgrid.dev create-form dialog showing form name and project selection" width="800" height="602"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Create a form to receive submissions from your Cloudflare Pages website.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Once the form has been created, you will be directed to its details page.&lt;/p&gt;

&lt;p&gt;From here, you can either create a form using the visual form builder or connect your existing website form to the generated submission endpoint.&lt;/p&gt;

&lt;p&gt;For this tutorial, we will use the endpoint approach so that you can keep complete control over your website's design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Copy Your Form Backend Endpoint
&lt;/h2&gt;

&lt;p&gt;From your form's Overview page, locate your unique form submission endpoint.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6xcp5ymi5o7athceae7d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6xcp5ymi5o7athceae7d.png" alt="Formgrid.dev form overview showing the generated endpoint and copy action" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Copy the unique submission endpoint generated for your contact form.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Your endpoint will look something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://formgrid.dev/api/f/your-endpoint-slug
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every form has its own endpoint.&lt;/p&gt;

&lt;p&gt;Copy the actual endpoint from your dashboard. You will use it to connect your Cloudflare Pages contact form.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Connect Your HTML Contact Form
&lt;/h2&gt;

&lt;p&gt;If your website already has a contact form, you do not need to rebuild it.&lt;/p&gt;

&lt;p&gt;Simply update the form's &lt;code&gt;action&lt;/code&gt; attribute to point to your Formgrid.dev endpoint and set the method to &lt;code&gt;POST&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Here is a complete example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt;
  &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://formgrid.dev/api/f/your-endpoint-slug"&lt;/span&gt;
  &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Your Name&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
      &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;
      &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;
      &lt;span class="na"&gt;required&lt;/span&gt;
    &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Your Email&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
      &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
      &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
      &lt;span class="na"&gt;required&lt;/span&gt;
    &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"phone"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Phone Number (Optional)&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
      &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"tel"&lt;/span&gt;
      &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"phone"&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"phone"&lt;/span&gt;
    &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;How Can We Help?&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt;
      &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;
      &lt;span class="na"&gt;rows&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"5"&lt;/span&gt;
      &lt;span class="na"&gt;required&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Send Message
  &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;your-endpoint-slug&lt;/code&gt; with the actual endpoint generated for your form.&lt;/p&gt;

&lt;p&gt;The important parts are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;action&lt;/code&gt; attribute points to your Formgrid.dev endpoint.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;method&lt;/code&gt; is set to &lt;code&gt;POST&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Each input has a &lt;code&gt;name&lt;/code&gt; attribute.&lt;/li&gt;
&lt;li&gt;Required fields use the &lt;code&gt;required&lt;/code&gt; attribute for browser-side validation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;name&lt;/code&gt; attributes determine which field values are included in the submission.&lt;/p&gt;

&lt;p&gt;You can keep your existing CSS, Tailwind classes, responsive layout, and website branding.&lt;/p&gt;

&lt;p&gt;You do not need to add a Cloudflare Worker or create a Pages Function to forward the submission.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Handle Form Submissions With JavaScript (Optional)
&lt;/h2&gt;

&lt;p&gt;The standard HTML form approach is sufficient for many websites.&lt;/p&gt;

&lt;p&gt;However, you may want visitors to remain on the same page after submitting the form.&lt;/p&gt;

&lt;p&gt;For example, you might want to display:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A loading indicator while the form is being submitted.&lt;/li&gt;
&lt;li&gt;A success message when the submission is accepted.&lt;/li&gt;
&lt;li&gt;An error message if something goes wrong.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can achieve this using JavaScript and the Fetch API.&lt;/p&gt;

&lt;p&gt;First, create your contact form:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt;
  &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"contact-form"&lt;/span&gt;
  &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://formgrid.dev/api/f/your-endpoint-slug"&lt;/span&gt;
  &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Your Name&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;
    &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;
    &lt;span class="na"&gt;required&lt;/span&gt;
  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Your Email&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
    &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
    &lt;span class="na"&gt;required&lt;/span&gt;
  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Your Message&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt;
    &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;
    &lt;span class="na"&gt;required&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit-button"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Send Message
  &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"form-status"&lt;/span&gt; &lt;span class="na"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"status"&lt;/span&gt; &lt;span class="na"&gt;aria-live&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"polite"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then add the following JavaScript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"contact-form"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;submitButton&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"submit-button"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;statusMessage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"form-status"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"submit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;preventDefault&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;submitButton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;disabled&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;submitButton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;disabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;submitButton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Sending..."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;statusMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;formData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FormData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;formData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Accept&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Submission failed"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="n"&gt;statusMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
      &lt;span class="s2"&gt;"Thank you! Your message has been sent."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;statusMessage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
      &lt;span class="s2"&gt;"Unable to confirm submission. Please try again."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Contact form error:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;submitButton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;disabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;submitButton&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Send Message"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This implementation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prevents the browser from navigating away from the page.&lt;/li&gt;
&lt;li&gt;Sends the form data to your Formgrid.dev endpoint.&lt;/li&gt;
&lt;li&gt;Disables the submit button during submission.&lt;/li&gt;
&lt;li&gt;Displays success and error messages.&lt;/li&gt;
&lt;li&gt;Clears the form after a successful response.&lt;/li&gt;
&lt;li&gt;Preserves the entered information when a request fails.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use the current integration snippets in your Formgrid.dev dashboard to confirm the supported request format and response structure. If the endpoint returns an application-level success indicator, check that indicator before displaying the success message.&lt;/p&gt;

&lt;p&gt;If you enable CAPTCHA or other protections that require additional form fields, include those fields in your submission.&lt;/p&gt;

&lt;p&gt;This same approach can be adapted to React, Vue, Astro, Svelte, and other frontend technologies deployed on Cloudflare Pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Configure Email Notifications
&lt;/h2&gt;

&lt;p&gt;Most business owners do not want to log in to a dashboard every time someone submits their contact form.&lt;/p&gt;

&lt;p&gt;They want to receive an email immediately so they can respond to potential customers.&lt;/p&gt;

&lt;p&gt;By default, the email address associated with your Formgrid.dev account is used as your notification recipient.&lt;/p&gt;

&lt;p&gt;You can also configure a different recipient from your form's settings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" alt="Formgrid.dev notification settings showing recipient email configuration" width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Configure where contact form notifications should be sent.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For example, imagine you are hosting a roofing company's website on Cloudflare Pages.&lt;/p&gt;

&lt;p&gt;You can configure notifications to be sent directly to the roofing company's business email address.&lt;/p&gt;

&lt;p&gt;When a homeowner submits a quote request, the business can receive an email containing the submitted information.&lt;/p&gt;

&lt;p&gt;You do not need to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Configure an SMTP server.&lt;/li&gt;
&lt;li&gt;Create an email-sending Cloudflare Worker.&lt;/li&gt;
&lt;li&gt;Set up a separate Resend account.&lt;/li&gt;
&lt;li&gt;Maintain your own notification infrastructure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Formgrid.dev handles configured email notifications as part of the form submission workflow.&lt;/p&gt;

&lt;p&gt;If you are building websites for clients, this also means you do not have to receive their enquiries in your personal inbox and manually forward them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Protect Your Cloudflare Pages Contact Form Against Spam
&lt;/h2&gt;

&lt;p&gt;Once your contact form is publicly accessible, it may attract automated bots, unsolicited marketing messages, fake enquiries, and suspicious links.&lt;/p&gt;

&lt;p&gt;Hosting your website on Cloudflare Pages does not automatically protect an external form submission endpoint from every type of abuse.&lt;/p&gt;

&lt;p&gt;You still need appropriate spam protection for the form itself.&lt;/p&gt;

&lt;p&gt;Formgrid.dev takes a layered approach to spam protection.&lt;/p&gt;

&lt;p&gt;Available protection mechanisms include:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Protection&lt;/th&gt;
&lt;th&gt;What it helps address&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Honeypot protection&lt;/td&gt;
&lt;td&gt;Basic automated form submissions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate limiting&lt;/td&gt;
&lt;td&gt;Excessive and repeated submissions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Allowed Domains&lt;/td&gt;
&lt;td&gt;Unwanted use of your form endpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAPTCHA&lt;/td&gt;
&lt;td&gt;Suspicious automated interactions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Content-based spam detection&lt;/td&gt;
&lt;td&gt;Suspicious messages and submission patterns&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI lead classification&lt;/td&gt;
&lt;td&gt;Identifying likely spam, sales pitches, and genuine enquiries&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" alt="Formgrid.dev spam protection settings showing available form security controls" width="800" height="586"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Configure additional spam protection from your form settings.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Configure Allowed Domains
&lt;/h3&gt;

&lt;p&gt;If you want your form to receive submissions from a particular website, you can configure its allowed domains.&lt;/p&gt;

&lt;p&gt;For example, if your website is hosted at:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my-business.pages.dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can configure that domain in your form settings.&lt;/p&gt;

&lt;p&gt;If you have connected a custom domain to Cloudflare Pages, such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;example.com
www.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the actual domains associated with your website.&lt;/p&gt;

&lt;p&gt;Cloudflare Pages preview deployments may use different hostnames from your production website. Keep this in mind when testing domain restrictions.&lt;/p&gt;

&lt;p&gt;Allowed Domains provides an additional protection layer, but it should not be treated as complete security for a public submission endpoint.&lt;/p&gt;

&lt;h3&gt;
  
  
  Add Honeypot Protection
&lt;/h3&gt;

&lt;p&gt;Honeypot protection helps identify basic automated bots without requiring genuine visitors to solve a CAPTCHA challenge.&lt;/p&gt;

&lt;p&gt;It works by including an additional field that genuine visitors are not expected to complete.&lt;/p&gt;

&lt;p&gt;If you are using a custom HTML form, follow the honeypot integration instructions provided by Formgrid.dev.&lt;/p&gt;

&lt;h3&gt;
  
  
  Enable CAPTCHA Protection
&lt;/h3&gt;

&lt;p&gt;Formgrid.dev supports hCaptcha integration for custom HTML forms and Cloudflare Turnstile for forms created using its visual form builder.&lt;/p&gt;

&lt;p&gt;If you enable mandatory CAPTCHA for your custom contact form, make sure you also implement the corresponding frontend integration and include the required verification token.&lt;/p&gt;

&lt;p&gt;Do not simply enable mandatory CAPTCHA without updating your website.&lt;/p&gt;

&lt;p&gt;Otherwise, legitimate submissions may be rejected.&lt;/p&gt;

&lt;h3&gt;
  
  
  Use Content-Based Spam Detection
&lt;/h3&gt;

&lt;p&gt;CAPTCHA alone cannot identify every unwanted submission.&lt;/p&gt;

&lt;p&gt;For example, a real person submitting an unsolicited SEO offer could successfully complete a CAPTCHA challenge.&lt;/p&gt;

&lt;p&gt;Formgrid.dev uses additional submission checks to help identify suspicious content and spam patterns.&lt;/p&gt;

&lt;p&gt;The goal is to reduce unwanted submissions without unnecessarily preventing genuine customers from contacting your business.&lt;/p&gt;

&lt;p&gt;No public contact form is guaranteed to be completely spam-free, and some advanced protection features depend on your subscription plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Deploy Your Website to Cloudflare Pages
&lt;/h2&gt;

&lt;p&gt;Once you have connected your contact form, deploy your updated website to Cloudflare Pages.&lt;/p&gt;

&lt;p&gt;If your website is already connected to a Git repository, commit and push your changes to the branch associated with your deployment.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add .
git commit -m &lt;span class="s2"&gt;"Connect contact form to Formgrid.dev"&lt;/span&gt;
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If automatic deployments are enabled, Cloudflare Pages will build and deploy the updated website.&lt;/p&gt;

&lt;p&gt;If you use Direct Upload instead, build your website if necessary and upload the updated output using your existing deployment workflow.&lt;/p&gt;

&lt;p&gt;You can refer to the &lt;a href="https://developers.cloudflare.com/pages/" rel="noopener noreferrer"&gt;Cloudflare Pages documentation&lt;/a&gt; for deployment instructions specific to your framework.&lt;/p&gt;

&lt;p&gt;You do not need to change your build command, output directory, or hosting configuration solely to connect a standard HTML contact form to Formgrid.dev.&lt;/p&gt;

&lt;p&gt;Once the deployment is complete, open your published website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 9: Test Your Contact Form
&lt;/h2&gt;

&lt;p&gt;Submit a test enquiry from your published Cloudflare Pages website.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Name: Sarah Johnson

Email: sarah@example.com

Message:
Hello, I would like to request a quote
for a new website for my business.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use an email address you control when testing email-related functionality.&lt;/p&gt;

&lt;p&gt;After submitting the form, open your Formgrid.dev dashboard and confirm that the submission has been received.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ce2tkjdndex4f1gwkk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ce2tkjdndex4f1gwkk7.png" alt="Formgrid.dev submissions dashboard showing received contact form enquiries" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Verify that submissions from your Cloudflare Pages website appear in your dashboard.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You should also check that the configured notification recipient receives an email.&lt;/p&gt;

&lt;p&gt;Before handing over your website or making it available to customers, verify that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The form submits to the correct endpoint.&lt;/li&gt;
&lt;li&gt;All expected fields are stored.&lt;/li&gt;
&lt;li&gt;Email notifications are delivered.&lt;/li&gt;
&lt;li&gt;Success and error messages work correctly.&lt;/li&gt;
&lt;li&gt;Spam protection is configured correctly.&lt;/li&gt;
&lt;li&gt;The form works on desktop and mobile devices.&lt;/li&gt;
&lt;li&gt;The form works on your production domain.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A success message in the browser does not necessarily mean that an email notification has been successfully delivered.&lt;/p&gt;

&lt;p&gt;Always verify both the stored submission and email delivery.&lt;/p&gt;

&lt;p&gt;You now have a contact form connected to your Cloudflare Pages website without building your own backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happens After Someone Submits Your Contact Form?
&lt;/h2&gt;

&lt;p&gt;Getting a contact form to work is only the first step.&lt;/p&gt;

&lt;p&gt;Imagine you have built and deployed a website for a local construction company using Cloudflare Pages.&lt;/p&gt;

&lt;p&gt;The company receives 30 quote requests in a month.&lt;/p&gt;

&lt;p&gt;Each request represents a potential customer.&lt;/p&gt;

&lt;p&gt;If every enquiry simply arrives in an email inbox, the business may struggle to keep track of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which customers have already been contacted.&lt;/li&gt;
&lt;li&gt;Which customers are waiting for a quote.&lt;/li&gt;
&lt;li&gt;Which customers need a follow-up.&lt;/li&gt;
&lt;li&gt;Which enquiries have become paying customers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is where a traditional email-only contact form starts to become limiting.&lt;/p&gt;

&lt;p&gt;Formgrid.dev combines form submission processing with a built-in lead management system.&lt;/p&gt;

&lt;p&gt;When an accepted submission arrives, two things happen:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;An email notification is sent to the configured recipient when notifications are enabled.&lt;/li&gt;
&lt;li&gt;The enquiry appears in your Leads tab, where you can manage its progress.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" alt="Formgrid.dev lead pipeline showing New, Contacted, and Converted stages" width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Manage enquiries from your Cloudflare Pages website without connecting a separate CRM.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Instead of building a website that simply sends emails, you can build one that helps businesses manage potential customers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn Cloudflare Pages Form Submissions Into Customers
&lt;/h2&gt;

&lt;p&gt;Formgrid.dev provides a built-in lead pipeline with three default stages.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;New&lt;/td&gt;
&lt;td&gt;A recently received customer enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Contacted&lt;/td&gt;
&lt;td&gt;You have responded to or contacted the potential customer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Converted&lt;/td&gt;
&lt;td&gt;The enquiry has become a customer or reached a successful outcome&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Here is a demonstration of how the lead pipeline works:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fformgrid.dev%2Fgifs%2Flead-pipeline-demo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fformgrid.dev%2Fgifs%2Flead-pipeline-demo.gif" alt="Formgrid.dev lead management pipeline demonstration showing status updates, notes, and follow-up reminders" width="479" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Imagine a potential customer submits the following enquiry through your website:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hello, I am looking for a company to renovate my kitchen. Could you provide an estimate?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The enquiry appears in your Leads tab with the status &lt;strong&gt;New&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After calling the customer, you can update the status to &lt;strong&gt;Contacted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can also add notes such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Customer wants a complete kitchen renovation.

Discussed the estimated budget.

Site inspection scheduled for Thursday.

Follow up after sending the quotation.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" alt="Formgrid.dev lead details showing customer information, notes, and follow-up information" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Keep customer information and follow-up details attached to each enquiry.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can schedule a follow-up reminder to ensure that the potential customer is not forgotten.&lt;/p&gt;

&lt;p&gt;If the customer accepts the quotation, you can mark the lead as &lt;strong&gt;Converted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This is particularly useful for businesses where a single website enquiry could represent hundreds or thousands of dollars in potential revenue.&lt;/p&gt;

&lt;p&gt;For developers and agencies, it also means you can deliver more value to your clients than a contact form that simply forwards messages to an inbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  Identify Genuine Customer Enquiries With AI Lead Classification
&lt;/h2&gt;

&lt;p&gt;Not every submission from your Cloudflare Pages contact form will be a potential customer.&lt;/p&gt;

&lt;p&gt;Some people may be requesting support, while others may be promoting their own services or sending suspicious messages.&lt;/p&gt;

&lt;p&gt;Traditional CAPTCHA protection cannot reliably distinguish between these intentions.&lt;/p&gt;

&lt;p&gt;Formgrid.dev provides AI-powered lead classification to help businesses identify and prioritize incoming enquiries.&lt;/p&gt;

&lt;p&gt;Submissions can be categorized using labels such as:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Classification&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hot Lead&lt;/td&gt;
&lt;td&gt;A potentially valuable customer enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Likely Spam&lt;/td&gt;
&lt;td&gt;A suspicious or potentially unwanted submission&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sales Pitch&lt;/td&gt;
&lt;td&gt;Someone promoting their own product or service&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Support Request&lt;/td&gt;
&lt;td&gt;Someone requesting assistance&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For example, imagine receiving these four messages through your contact form.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hot Lead:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hi, I need a new website for my accounting business. Could you send me a quote?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Sales Pitch:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We offer affordable SEO services and backlink packages to improve your Google rankings.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Likely Spam:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Congratulations! You have been selected for an exclusive financial reward.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Support Request:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hello, I am having trouble accessing my account. Could you help me?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;All four messages could come from real people.&lt;/p&gt;

&lt;p&gt;However, they represent different intentions and require different responses.&lt;/p&gt;

&lt;p&gt;AI-powered lead classification gives you an additional signal to help identify which submissions deserve immediate attention.&lt;/p&gt;

&lt;p&gt;This can be particularly valuable for businesses receiving enquiries across multiple websites.&lt;/p&gt;

&lt;p&gt;AI classification complements traditional spam protection. It does not guarantee that every suspicious submission will be automatically blocked or quarantined.&lt;/p&gt;

&lt;p&gt;Classification availability and usage allowances depend on your subscription plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  An Alternative: Build Your Contact Form Without Writing HTML
&lt;/h2&gt;

&lt;p&gt;If you do not already have a contact form on your Cloudflare Pages website, you can also use the Formgrid.dev visual form builder.&lt;/p&gt;

&lt;p&gt;Instead of writing the form markup yourself, you can create a form using a drag-and-drop interface.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" alt="Formgrid.dev visual form builder showing customizable contact form fields" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can add fields such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name.&lt;/li&gt;
&lt;li&gt;Email address.&lt;/li&gt;
&lt;li&gt;Phone number.&lt;/li&gt;
&lt;li&gt;Message.&lt;/li&gt;
&lt;li&gt;Service selection.&lt;/li&gt;
&lt;li&gt;Project budget.&lt;/li&gt;
&lt;li&gt;File uploads.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Customize the appearance of your form and publish it.&lt;/p&gt;

&lt;p&gt;Once published, copy the available embed code and insert it into your Cloudflare Pages website.&lt;/p&gt;

&lt;p&gt;This approach is useful if you want to manage your form fields and settings independently from your website's source code.&lt;/p&gt;

&lt;p&gt;You have two options:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Form backend endpoint&lt;/td&gt;
&lt;td&gt;Developers who want complete control over their HTML and styling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Visual form builder&lt;/td&gt;
&lt;td&gt;Users who want to create and manage forms without writing code&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both approaches allow you to receive submissions and manage customer enquiries from your Formgrid.dev dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Managing Contact Forms Across Multiple Cloudflare Pages Websites
&lt;/h2&gt;

&lt;p&gt;If you are a freelance developer or web development agency, you may already be using Cloudflare Pages to host multiple client websites.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A roofing company's quote request form.&lt;/li&gt;
&lt;li&gt;A photographer's booking enquiry form.&lt;/li&gt;
&lt;li&gt;A restaurant's private event enquiry form.&lt;/li&gt;
&lt;li&gt;A consulting company's contact form.&lt;/li&gt;
&lt;li&gt;A real estate company's property enquiry form.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You could create and maintain a separate Cloudflare Worker or Pages Function for every website.&lt;/p&gt;

&lt;p&gt;However, each additional website introduces more configuration and maintenance responsibilities.&lt;/p&gt;

&lt;p&gt;You need to keep track of email delivery, spam protection, submission storage, and any backend changes.&lt;/p&gt;

&lt;p&gt;With Formgrid.dev, you can organize forms into separate projects, subject to your subscription plan.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" alt="Formgrid.dev project selector showing how different client websites can be organized into separate projects" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Organize forms and customer enquiries across multiple client websites.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Project&lt;/th&gt;
&lt;th&gt;Forms&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Roofing Company&lt;/td&gt;
&lt;td&gt;Contact Form, Quote Request&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Photography Studio&lt;/td&gt;
&lt;td&gt;Contact Form, Booking Enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restaurant&lt;/td&gt;
&lt;td&gt;Private Events, Catering Enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Consulting Company&lt;/td&gt;
&lt;td&gt;Contact Form, Consultation Request&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each form has its own submission endpoint and notification settings.&lt;/p&gt;

&lt;p&gt;You can configure each client's enquiries to be delivered to their own email address.&lt;/p&gt;

&lt;p&gt;This creates a repeatable workflow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create a client project
          |
Create a form
          |
Copy the submission endpoint
          |
Connect the Cloudflare Pages website
          |
Configure notifications and spam protection
          |
Test and hand over the website
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You do not have to rebuild the same submission infrastructure for every client.&lt;/p&gt;

&lt;p&gt;If your clients need dashboard access, Formgrid.dev also offers project collaboration options on its Business plan.&lt;/p&gt;

&lt;p&gt;This allows you to deliver a website alongside a system for managing incoming customer enquiries.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving From Netlify Forms to Cloudflare Pages?
&lt;/h2&gt;

&lt;p&gt;One common consideration when moving a static website from Netlify to Cloudflare Pages is how to handle existing contact forms.&lt;/p&gt;

&lt;p&gt;Netlify provides a managed form handling service that can process forms deployed on its platform.&lt;/p&gt;

&lt;p&gt;For example, your existing form might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"contact"&lt;/span&gt;
  &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;
  &lt;span class="na"&gt;data-netlify&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Send Message
  &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When you move your website to Cloudflare Pages, Netlify-specific form handling does not automatically continue working.&lt;/p&gt;

&lt;p&gt;You need to replace that submission workflow.&lt;/p&gt;

&lt;p&gt;With Formgrid.dev, you can update the form to use an external endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt;
  &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://formgrid.dev/api/f/your-endpoint-slug"&lt;/span&gt;
  &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Send Message
  &lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove any Netlify-specific submission scripts or attributes that are no longer needed.&lt;/p&gt;

&lt;p&gt;If your existing form uses JavaScript to submit to a Netlify-specific destination, update that submission logic as well.&lt;/p&gt;

&lt;p&gt;Your website's layout and styling can remain unchanged.&lt;/p&gt;

&lt;p&gt;After migrating, configure email notifications and spam protection, then test the entire submission workflow.&lt;/p&gt;

&lt;p&gt;Using a hosting-independent form backend also means that your form submission infrastructure does not have to change every time you switch hosting providers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cloudflare Workers vs Pages Functions vs a Hosted Form Backend
&lt;/h2&gt;

&lt;p&gt;Cloudflare Workers and Pages Functions are powerful tools.&lt;/p&gt;

&lt;p&gt;If you need complex server-side functionality, they may be the right solution for your application.&lt;/p&gt;

&lt;p&gt;However, there is a difference between implementing custom application logic and simply receiving customer enquiries.&lt;/p&gt;

&lt;p&gt;Here is a comparison of the three approaches.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Cloudflare Workers&lt;/th&gt;
&lt;th&gt;Pages Functions&lt;/th&gt;
&lt;th&gt;Formgrid.dev&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Custom backend code&lt;/td&gt;
&lt;td&gt;Required&lt;/td&gt;
&lt;td&gt;Required&lt;/td&gt;
&lt;td&gt;Not required for standard forms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Form submission endpoint&lt;/td&gt;
&lt;td&gt;Implement yourself&lt;/td&gt;
&lt;td&gt;Implement yourself&lt;/td&gt;
&lt;td&gt;Generated automatically&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Submission storage&lt;/td&gt;
&lt;td&gt;Configure separately&lt;/td&gt;
&lt;td&gt;Configure separately&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Email notifications&lt;/td&gt;
&lt;td&gt;Configure or implement&lt;/td&gt;
&lt;td&gt;Configure or implement&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spam protection&lt;/td&gt;
&lt;td&gt;Configure or implement&lt;/td&gt;
&lt;td&gt;Configure or implement&lt;/td&gt;
&lt;td&gt;Built-in protection options&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Submission dashboard&lt;/td&gt;
&lt;td&gt;Build or integrate&lt;/td&gt;
&lt;td&gt;Build or integrate&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lead management&lt;/td&gt;
&lt;td&gt;Build or integrate&lt;/td&gt;
&lt;td&gt;Build or integrate&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI lead classification&lt;/td&gt;
&lt;td&gt;Additional implementation&lt;/td&gt;
&lt;td&gt;Additional implementation&lt;/td&gt;
&lt;td&gt;Available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Follow-up reminders&lt;/td&gt;
&lt;td&gt;Additional implementation&lt;/td&gt;
&lt;td&gt;Additional implementation&lt;/td&gt;
&lt;td&gt;Available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Custom business logic&lt;/td&gt;
&lt;td&gt;Flexible&lt;/td&gt;
&lt;td&gt;Flexible&lt;/td&gt;
&lt;td&gt;Focused on form workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Workers and Pages Functions can be a good choice when you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Custom application logic.&lt;/li&gt;
&lt;li&gt;Specialized API endpoints.&lt;/li&gt;
&lt;li&gt;Authentication workflows.&lt;/li&gt;
&lt;li&gt;Complex database operations.&lt;/li&gt;
&lt;li&gt;Complete control over server-side processing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A dedicated form backend can be a better fit when your primary goal is to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Receive website enquiries.&lt;/li&gt;
&lt;li&gt;Send email notifications.&lt;/li&gt;
&lt;li&gt;Store form submissions.&lt;/li&gt;
&lt;li&gt;Protect forms against spam.&lt;/li&gt;
&lt;li&gt;Manage potential customers.&lt;/li&gt;
&lt;li&gt;Reduce ongoing maintenance.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not necessarily need to build a complete backend application just to make a contact form work.&lt;/p&gt;

&lt;h2&gt;
  
  
  When Should You Upgrade From a Free Form Backend Plan?
&lt;/h2&gt;

&lt;p&gt;If you are building a personal portfolio or testing a new website, a free form backend plan may be sufficient.&lt;/p&gt;

&lt;p&gt;However, the requirements of an active business website are often different.&lt;/p&gt;

&lt;p&gt;A business may need higher submission allowances, more advanced spam protection, automated confirmation emails, integrations, or additional notification recipients.&lt;/p&gt;

&lt;p&gt;An agency may also need to manage multiple client projects and give clients access to their own enquiries.&lt;/p&gt;

&lt;p&gt;Formgrid.dev offers free and paid plans for different requirements.&lt;/p&gt;

&lt;p&gt;Consider upgrading when you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Higher monthly submission allowances.&lt;/li&gt;
&lt;li&gt;Advanced spam protection and AI classification allowances.&lt;/li&gt;
&lt;li&gt;Custom email autoresponders.&lt;/li&gt;
&lt;li&gt;Additional notification recipients.&lt;/li&gt;
&lt;li&gt;Custom lead pipeline stages.&lt;/li&gt;
&lt;li&gt;Google Sheets and other integrations.&lt;/li&gt;
&lt;li&gt;Removal of form branding.&lt;/li&gt;
&lt;li&gt;Multiple client projects.&lt;/li&gt;
&lt;li&gt;Team and client collaboration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feature availability depends on the selected plan.&lt;/p&gt;

&lt;p&gt;You can compare the available features on the &lt;a href="https://formgrid.dev/pricing" rel="noopener noreferrer"&gt;Formgrid.dev pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The important question is not simply how much it costs to receive a form submission.&lt;/p&gt;

&lt;p&gt;It is how much time you spend maintaining the infrastructure and whether your business has the tools to follow up with potential customers.&lt;/p&gt;

&lt;p&gt;For a service business, converting even one additional customer can be worth considerably more than the cost of its form management software.&lt;/p&gt;

&lt;p&gt;Start with a single website, test the complete workflow, and choose a plan that matches your actual business requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting Cloudflare Pages Contact Forms
&lt;/h2&gt;

&lt;h3&gt;
  
  
  My Contact Form Does Not Submit
&lt;/h3&gt;

&lt;p&gt;First, check that the form's &lt;code&gt;action&lt;/code&gt; attribute points to your actual Formgrid.dev endpoint.&lt;/p&gt;

&lt;p&gt;Make sure the method is set to &lt;code&gt;POST&lt;/code&gt; and each input has a &lt;code&gt;name&lt;/code&gt; attribute.&lt;/p&gt;

&lt;p&gt;If you are using JavaScript, inspect the browser's Network tab to verify that the request is being sent.&lt;/p&gt;

&lt;p&gt;Check the actual response status and response body.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Contact Form Works Locally but Not on Cloudflare Pages
&lt;/h3&gt;

&lt;p&gt;Check whether you have configured Allowed Domains.&lt;/p&gt;

&lt;p&gt;Your local development environment may use a different hostname from your deployed website.&lt;/p&gt;

&lt;p&gt;Make sure your production domain is configured correctly.&lt;/p&gt;

&lt;p&gt;If you use JavaScript, also check for browser security errors, including CORS and Content Security Policy restrictions.&lt;/p&gt;

&lt;p&gt;A Content Security Policy may need to permit connections to &lt;code&gt;https://formgrid.dev&lt;/code&gt; through its &lt;code&gt;connect-src&lt;/code&gt; directive for JavaScript submissions, or its &lt;code&gt;form-action&lt;/code&gt; directive for standard HTML submissions.&lt;/p&gt;

&lt;p&gt;Avoid disabling your entire security policy just to make the form work.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Form Returns a CORS Error
&lt;/h3&gt;

&lt;p&gt;Cross-Origin Resource Sharing controls whether browser-based JavaScript can access responses from another origin.&lt;/p&gt;

&lt;p&gt;If your JavaScript submission produces a CORS error, verify that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You are using the correct public submission endpoint.&lt;/li&gt;
&lt;li&gt;Your website's domain is permitted.&lt;/li&gt;
&lt;li&gt;Your request matches the supported integration format.&lt;/li&gt;
&lt;li&gt;Your browser is not sending unnecessary custom headers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Refer to the integration snippets in your Formgrid.dev dashboard.&lt;/p&gt;

&lt;p&gt;Do not use &lt;code&gt;mode: "no-cors"&lt;/code&gt; simply to hide the error. An opaque response prevents your JavaScript from reliably confirming whether the submission succeeded.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Contact Form Shows Success but No Submission Appears
&lt;/h3&gt;

&lt;p&gt;Check whether your frontend displays a success message before the actual network request has completed.&lt;/p&gt;

&lt;p&gt;A success message should only appear after the submission endpoint confirms success.&lt;/p&gt;

&lt;p&gt;Inspect your browser's network requests and verify that the correct form endpoint is being used.&lt;/p&gt;

&lt;h3&gt;
  
  
  I Receive Submissions but No Email Notifications
&lt;/h3&gt;

&lt;p&gt;Open your form's notification settings and confirm that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Notifications are enabled.&lt;/li&gt;
&lt;li&gt;The recipient email address is correct.&lt;/li&gt;
&lt;li&gt;The notification has not been delivered to your spam folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also check whether the submission was marked as spam.&lt;/p&gt;

&lt;p&gt;A stored submission and a successfully delivered email notification are different things.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Contact Form Returns a 403 Error
&lt;/h3&gt;

&lt;p&gt;Review your form's security configuration.&lt;/p&gt;

&lt;p&gt;Possible causes include domain restrictions, CAPTCHA requirements, or other request validation failures.&lt;/p&gt;

&lt;p&gt;Inspect the actual error response before changing your settings.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Contact Form Returns a 429 Error
&lt;/h3&gt;

&lt;p&gt;A 429 response generally indicates that a rate limit has been reached.&lt;/p&gt;

&lt;p&gt;Avoid repeatedly submitting the form within a short period.&lt;/p&gt;

&lt;p&gt;Review your form's rate limits and account usage allowances.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Form Stopped Working After Enabling CAPTCHA
&lt;/h3&gt;

&lt;p&gt;If you enable mandatory CAPTCHA protection, your frontend must include the corresponding CAPTCHA integration and verification token.&lt;/p&gt;

&lt;p&gt;Follow the instructions in your Formgrid.dev dashboard and test the complete submission workflow again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I add a contact form to Cloudflare Pages without a backend?
&lt;/h3&gt;

&lt;p&gt;Yes. You can connect your contact form to a hosted form backend such as Formgrid.dev.&lt;/p&gt;

&lt;p&gt;Your website remains hosted on Cloudflare Pages, while Formgrid.dev handles submission processing, storage, and configured email notifications.&lt;/p&gt;

&lt;p&gt;You do not need to build or maintain your own backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Cloudflare Workers for contact forms?
&lt;/h3&gt;

&lt;p&gt;No. Cloudflare Workers are one way to implement contact form processing, but they are not required if you use an external form backend.&lt;/p&gt;

&lt;p&gt;You can connect your HTML form directly to a public submission endpoint.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Cloudflare Pages have built-in form handling like Netlify Forms?
&lt;/h3&gt;

&lt;p&gt;Cloudflare Pages does not provide the same managed HTML form handling workflow as Netlify Forms.&lt;/p&gt;

&lt;p&gt;You can implement form processing using Workers or Pages Functions, or connect your website to a dedicated form backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I receive contact form emails from Cloudflare Pages?
&lt;/h3&gt;

&lt;p&gt;Connect your contact form to a service that supports email notifications.&lt;/p&gt;

&lt;p&gt;With Formgrid.dev, you can configure the intended recipient from your form's settings.&lt;/p&gt;

&lt;p&gt;When an accepted submission arrives, a notification can be sent to that recipient.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Formgrid.dev with Astro on Cloudflare Pages?
&lt;/h3&gt;

&lt;p&gt;Yes. Astro websites can submit standard HTML forms or use JavaScript to send requests to a Formgrid.dev endpoint.&lt;/p&gt;

&lt;p&gt;You do not need to enable server-side rendering solely to process a standard contact form through an external backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Formgrid.dev with React or Vue on Cloudflare Pages?
&lt;/h3&gt;

&lt;p&gt;Yes. You can connect a React or Vue contact form to a Formgrid.dev endpoint using the Fetch API or another HTTP client.&lt;/p&gt;

&lt;p&gt;Follow the integration examples provided in your form's dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Cloudflare Turnstile to protect my contact form?
&lt;/h3&gt;

&lt;p&gt;Cloudflare Turnstile can be used to protect forms when its tokens are properly verified by a backend.&lt;/p&gt;

&lt;p&gt;Formgrid.dev supports Turnstile for forms created with its visual form builder and hCaptcha for custom HTML forms.&lt;/p&gt;

&lt;p&gt;If you are using a custom form, follow the supported CAPTCHA integration instructions in your dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is it safe to expose a form endpoint in frontend code?
&lt;/h3&gt;

&lt;p&gt;Public form submission endpoints are designed to receive submissions from website visitors.&lt;/p&gt;

&lt;p&gt;You can include your Formgrid.dev submission endpoint in your frontend.&lt;/p&gt;

&lt;p&gt;However, private API keys, administrative credentials, and other secrets should never be exposed in browser code.&lt;/p&gt;

&lt;p&gt;Configure appropriate spam protection for your public endpoint.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I receive Cloudflare Pages form submissions for free?
&lt;/h3&gt;

&lt;p&gt;Yes. Formgrid.dev provides a free plan with a monthly submission allowance.&lt;/p&gt;

&lt;p&gt;You can create a form endpoint and test your integration without providing a credit card.&lt;/p&gt;

&lt;p&gt;Check the &lt;a href="https://formgrid.dev/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt; for current usage limits and feature availability.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I manage multiple Cloudflare Pages websites from one account?
&lt;/h3&gt;

&lt;p&gt;Yes. Formgrid.dev allows you to organize forms into projects, with separate endpoints and notification settings for each form.&lt;/p&gt;

&lt;p&gt;Project allowances and collaboration features depend on your subscription plan.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a separate CRM to manage my website enquiries?
&lt;/h3&gt;

&lt;p&gt;Not necessarily.&lt;/p&gt;

&lt;p&gt;Formgrid.dev provides a built-in lead pipeline where you can track customer enquiries, update lead statuses, add notes, and schedule follow-up reminders.&lt;/p&gt;

&lt;p&gt;For businesses that primarily need to manage website enquiries, this can reduce the need for a separate CRM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Cloudflare Pages makes hosting websites straightforward.&lt;/p&gt;

&lt;p&gt;Your contact form should be just as straightforward.&lt;/p&gt;

&lt;p&gt;You should not have to build a separate API, configure a database, implement email delivery, and maintain spam filtering infrastructure every time you launch a business website.&lt;/p&gt;

&lt;p&gt;With Formgrid.dev, you can connect your existing contact form to a unique submission endpoint and let the platform handle the form processing workflow.&lt;/p&gt;

&lt;p&gt;But receiving submissions is only part of the value.&lt;/p&gt;

&lt;p&gt;You can also:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Receive email notifications.&lt;/li&gt;
&lt;li&gt;Protect your forms against spam.&lt;/li&gt;
&lt;li&gt;Identify potential customers using AI lead classification.&lt;/li&gt;
&lt;li&gt;Manage enquiries through a built-in lead pipeline.&lt;/li&gt;
&lt;li&gt;Schedule follow-up reminders.&lt;/li&gt;
&lt;li&gt;Organize forms across multiple client websites.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whether you are building a personal portfolio, a business website, or managing websites for multiple clients, you can keep your Cloudflare Pages hosting setup and avoid maintaining unnecessary backend infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't just build a contact form that sends emails. Build one that helps businesses turn enquiries into customers.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Create a free Formgrid.dev account&lt;/a&gt; and connect your first contact form.&lt;/p&gt;

&lt;p&gt;No credit card required.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I am the developer behind Formgrid.dev, an open-source form backend, visual form builder, and lead management platform.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloudflarechallenge</category>
      <category>cloudflare</category>
      <category>contactform</category>
      <category>formbackend</category>
    </item>
    <item>
      <title>How to Add a Working Contact Form to Your Lovable Website Without Supabase</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 27 Nov 2026 01:42:34 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-to-add-a-working-contact-form-to-lovable-without-supabase-or-resend-2n04</link>
      <guid>https://dev.to/allenarduino/how-to-add-a-working-contact-form-to-lovable-without-supabase-or-resend-2n04</guid>
      <description>&lt;p&gt;You have just built a beautiful website using Lovable.&lt;/p&gt;

&lt;p&gt;The design looks great, the pages are responsive, and your contact form has all the fields you need.&lt;/p&gt;

&lt;p&gt;But there is one problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where does the information go when someone submits the contact form?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Having a contact form on your website does not automatically mean that it can receive enquiries or send email notifications.&lt;/p&gt;

&lt;p&gt;You still need a way to process submissions, store them, and notify the appropriate person.&lt;/p&gt;

&lt;p&gt;You could set up Supabase, create database tables, configure server-side functions, and integrate an email delivery service like Resend.&lt;/p&gt;

&lt;p&gt;However, if you just need a working contact form for a business website, portfolio, or landing page, that may be more infrastructure than you need.&lt;/p&gt;

&lt;p&gt;In this tutorial, I will show you how to connect your Lovable contact form to &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt;, receive email notifications, protect your form against spam, and manage customer enquiries without setting up Supabase or Resend.&lt;/p&gt;

&lt;p&gt;You can keep your existing website design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Your Lovable Contact Form May Not Be Working
&lt;/h2&gt;

&lt;p&gt;AI website builders like Lovable make it easy to generate professional-looking websites from natural language prompts.&lt;/p&gt;

&lt;p&gt;However, generating a contact form is different from implementing a working form submission system.&lt;/p&gt;

&lt;p&gt;A functional contact form needs to handle several things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Collecting information from visitors.&lt;/li&gt;
&lt;li&gt;Sending the information to a backend.&lt;/li&gt;
&lt;li&gt;Validating incoming submissions.&lt;/li&gt;
&lt;li&gt;Storing submissions.&lt;/li&gt;
&lt;li&gt;Sending email notifications.&lt;/li&gt;
&lt;li&gt;Protecting the form against spam.&lt;/li&gt;
&lt;li&gt;Handling successful and failed submissions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Depending on how your website was generated, your contact form might only display a success message without actually sending the information anywhere.&lt;/p&gt;

&lt;p&gt;In other cases, Lovable may suggest connecting a backend service to handle form submissions.&lt;/p&gt;

&lt;p&gt;If you only need to receive and manage website enquiries, there is a simpler approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do You Need Supabase or Resend for a Lovable Contact Form?
&lt;/h2&gt;

&lt;p&gt;No. You do not necessarily need either service to make your contact form work.&lt;/p&gt;

&lt;p&gt;Supabase and Resend are useful tools, but they serve different purposes.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Primary purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Supabase&lt;/td&gt;
&lt;td&gt;Database, authentication, storage, and backend infrastructure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Resend&lt;/td&gt;
&lt;td&gt;Email delivery&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Formgrid.dev&lt;/td&gt;
&lt;td&gt;Form submission processing, email notifications, spam protection, and lead management&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Supabase is a good choice when you are building an application that requires a database, user authentication, or complex backend functionality.&lt;/p&gt;

&lt;p&gt;Resend is useful when you need to send transactional emails from your application.&lt;/p&gt;

&lt;p&gt;However, a standard business contact form does not necessarily require you to configure both services.&lt;/p&gt;

&lt;p&gt;A dedicated form backend can handle the submission workflow for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the Integration Works
&lt;/h2&gt;

&lt;p&gt;Instead of creating your own backend, you connect your Lovable contact form to a unique Formgrid.dev endpoint.&lt;/p&gt;

&lt;p&gt;The workflow looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Visitor fills out your Lovable contact form
                    |
                    v
Formgrid.dev submission endpoint
                    |
                    v
Submission processing and spam checks
                    |
                    v
Accepted submission
                    |
          +---------+---------+
          |                   |
          v                   v
Email notification       Lead dashboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your website continues to use the design generated by Lovable.&lt;/p&gt;

&lt;p&gt;Formgrid.dev handles the form submission infrastructure.&lt;/p&gt;

&lt;p&gt;You do not need to rebuild your website, create a database, or configure a separate email delivery service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create a Free Formgrid.dev Account
&lt;/h2&gt;

&lt;p&gt;Visit &lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt; and create an account using your Google account or email address.&lt;/p&gt;

&lt;p&gt;No credit card is required.&lt;/p&gt;

&lt;p&gt;Once you have signed up and completed any required verification, you will be directed to your dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt; is an open-source form backend, visual form builder, and lead management platform designed to help developers and businesses collect and manage website enquiries.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw83f2kf1orziahc4bnef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw83f2kf1orziahc4bnef.png" alt="Formgrid landing page screenshot" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzz9kakwxjhyqlnllimrs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzz9kakwxjhyqlnllimrs.png" alt="Formgrid signup page screenshot" width="800" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create a New Form
&lt;/h2&gt;

&lt;p&gt;From your dashboard, click &lt;strong&gt;New Form&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Give your form a name, such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Lovable Website Contact Form
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also add a description, although this is optional.&lt;/p&gt;

&lt;p&gt;Click &lt;strong&gt;Create Form&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4go06kae8so5taw4rixa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4go06kae8so5taw4rixa.png" alt="Formgrid.dev create-form dialog showing form name and project selection" width="800" height="602"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Create a form to receive submissions from your Lovable website.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Once the form has been created, you will be directed to its details page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Copy Your Form Backend Endpoint
&lt;/h2&gt;

&lt;p&gt;From your form's Overview page, locate your unique form submission endpoint.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6xcp5ymi5o7athceae7d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6xcp5ymi5o7athceae7d.png" alt="Formgrid.dev form overview showing the generated endpoint and copy action" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Copy the unique endpoint generated for your contact form.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Your endpoint will look something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://formgrid.dev/api/f/your-endpoint-slug
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every form has its own endpoint.&lt;/p&gt;

&lt;p&gt;Copy the actual endpoint from your dashboard because you will need it in the next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Connect Your Contact Form in Lovable
&lt;/h2&gt;

&lt;p&gt;Open your existing website project in &lt;a href="https://lovable.dev" rel="noopener noreferrer"&gt;Lovable&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If your website already has a contact form, you do not need to create another one.&lt;/p&gt;

&lt;p&gt;You can simply ask Lovable to update the existing form's submission logic while preserving its design.&lt;/p&gt;

&lt;p&gt;Copy the following prompt into your Lovable chat.&lt;/p&gt;

&lt;p&gt;Replace &lt;code&gt;your-endpoint-slug&lt;/code&gt; with the actual endpoint you copied from Formgrid.dev.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lovable Contact Form Integration Prompt
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Connect my existing contact form to the following
Formgrid.dev submission endpoint:

https://formgrid.dev/api/f/your-endpoint-slug

Keep the existing contact form design, styling,
layout, and input fields.

Requirements:

1. Submit the form data to the endpoint using
   an HTTP POST request.

2. Use the existing form field names, including
   name, email, phone, and message where applicable.

3. Validate required fields before submission.

4. Show a loading state while the request is
   being processed.

5. Disable the submit button during submission
   to prevent duplicate requests.

6. Display a success message only when the
   endpoint confirms a successful submission.

7. Display a helpful error message if the
   submission fails.

8. Clear the form fields after a successful
   submission, but preserve them if it fails.

9. Do not introduce Supabase, Resend, a database,
   or additional backend services for this form.

10. Follow the request format and response-handling
    examples provided in the Formgrid.dev dashboard.

Preserve the existing responsive design.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Illustrative mockup showing how to instruct Lovable to connect an existing contact form to a Formgrid.dev endpoint. This is not an actual screenshot of a tested Lovable project.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Lovable should update your existing contact form to send submissions to the provided endpoint.&lt;/p&gt;

&lt;p&gt;Review the generated changes and make sure it has not unnecessarily modified your website's design or other functionality.&lt;/p&gt;

&lt;p&gt;The generated implementation should be tested before publishing.&lt;/p&gt;

&lt;h3&gt;
  
  
  What If You Don't Already Have a Contact Form?
&lt;/h3&gt;

&lt;p&gt;If your Lovable website does not have a contact form yet, you can ask Lovable to create one and connect it to Formgrid.dev at the same time.&lt;/p&gt;

&lt;p&gt;Use the following prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create a modern, responsive contact section
that matches my existing website design.

Include the following fields:

- Full name
- Email address
- Phone number (optional)
- Message

Connect the form to this endpoint using POST:

https://formgrid.dev/api/f/your-endpoint-slug

Use the request format supported by Formgrid.dev.

Add required field validation, a loading state,
duplicate submission prevention, success feedback,
and error handling.

Only display a success message after the endpoint
confirms that the submission was successful.

Do not use Supabase or Resend for this form.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows you to create a contact form and connect it to a form backend using a single prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Configure Email Notifications
&lt;/h2&gt;

&lt;p&gt;Receiving form submissions is useful, but most businesses also want to receive an email whenever someone contacts them.&lt;/p&gt;

&lt;p&gt;By default, the email address associated with your Formgrid.dev account is used as your notification recipient.&lt;/p&gt;

&lt;p&gt;You can also configure a different recipient from your form's settings.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" alt="Formgrid.dev notification settings showing recipient email configuration" width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Configure where email notifications should be sent when someone submits your Lovable contact form.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For example, if you are building a website for a photography business, you can configure notifications to be sent directly to the photographer's business email address.&lt;/p&gt;

&lt;p&gt;If you are building a website for a client, you do not need to receive their enquiries in your own inbox and manually forward them.&lt;/p&gt;

&lt;p&gt;Configure the intended recipient, enable notifications, and save your settings.&lt;/p&gt;

&lt;p&gt;You do not need to create a Resend account, configure a Resend API key, or implement your own email-sending function for this workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Protect Your Lovable Contact Form Against Spam
&lt;/h2&gt;

&lt;p&gt;Once your website is publicly accessible, its contact form may attract unwanted submissions.&lt;/p&gt;

&lt;p&gt;These can include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automated bot submissions.&lt;/li&gt;
&lt;li&gt;Unsolicited marketing offers.&lt;/li&gt;
&lt;li&gt;Fake customer enquiries.&lt;/li&gt;
&lt;li&gt;Suspicious promotional links.&lt;/li&gt;
&lt;li&gt;Repeated submissions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Building a working contact form is important, but protecting it against spam is equally important.&lt;/p&gt;

&lt;p&gt;Formgrid.dev provides multiple layers of spam protection, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Honeypot protection.&lt;/li&gt;
&lt;li&gt;Rate limiting.&lt;/li&gt;
&lt;li&gt;Allowed Domains configuration.&lt;/li&gt;
&lt;li&gt;CAPTCHA integrations.&lt;/li&gt;
&lt;li&gt;Content-based spam detection.&lt;/li&gt;
&lt;li&gt;AI-powered lead classification.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" alt="Formgrid.dev spam protection settings showing available form security controls" width="800" height="586"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Configure additional spam protection for your Lovable contact form.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Configure Allowed Domains
&lt;/h3&gt;

&lt;p&gt;If your contact form should only receive submissions from your website, you can configure allowed domains in your form's settings.&lt;/p&gt;

&lt;p&gt;For example, if your website uses a Lovable subdomain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;your-website.lovable.app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have connected a custom domain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;example.com
www.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the actual domains associated with your website.&lt;/p&gt;

&lt;p&gt;Remember that your preview environment and published website may use different domains. Test your configuration accordingly.&lt;/p&gt;

&lt;p&gt;Allowed Domains adds another layer of protection, but it should not be treated as a complete security mechanism for a public submission endpoint.&lt;/p&gt;

&lt;h3&gt;
  
  
  Add CAPTCHA Protection
&lt;/h3&gt;

&lt;p&gt;Formgrid.dev supports hCaptcha integration for custom website forms.&lt;/p&gt;

&lt;p&gt;If you enable mandatory CAPTCHA protection, your Lovable contact form must also include the corresponding frontend integration and submit the required verification token.&lt;/p&gt;

&lt;p&gt;You can provide Lovable with the CAPTCHA integration instructions from your Formgrid.dev dashboard and ask it to update your form accordingly.&lt;/p&gt;

&lt;p&gt;Do not simply enable mandatory CAPTCHA without updating your website, as this can prevent legitimate submissions from being accepted.&lt;/p&gt;

&lt;p&gt;Some advanced spam protection features depend on your subscription plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Test Your Lovable Contact Form
&lt;/h2&gt;

&lt;p&gt;Before publishing your website, open the contact page in Lovable's preview environment and submit a test enquiry.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Name: Sarah Johnson

Email: sarah@example.com

Message:
Hello, I would like to learn more about
your website design services.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use an email address you control when testing email-related features.&lt;/p&gt;

&lt;p&gt;After submitting the form, open your Formgrid.dev dashboard and confirm that the submission has been received.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ce2tkjdndex4f1gwkk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ce2tkjdndex4f1gwkk7.png" alt="Formgrid.dev submissions dashboard showing received contact form enquiries" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Verify that submissions from your Lovable website appear in your Formgrid.dev dashboard.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You should also check that the configured notification recipient receives an email.&lt;/p&gt;

&lt;p&gt;Before moving on, verify the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The form submits to the correct endpoint.&lt;/li&gt;
&lt;li&gt;All expected fields appear in your dashboard.&lt;/li&gt;
&lt;li&gt;Email notifications are delivered.&lt;/li&gt;
&lt;li&gt;A success message appears after a successful submission.&lt;/li&gt;
&lt;li&gt;An appropriate error message appears when submission fails.&lt;/li&gt;
&lt;li&gt;The form does not submit multiple times when the button is clicked repeatedly.&lt;/li&gt;
&lt;li&gt;The form works on desktop and mobile devices.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A success message in Lovable does not necessarily prove that a submission was stored or that an email was delivered.&lt;/p&gt;

&lt;p&gt;Always verify the complete submission workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Publish Your Lovable Website
&lt;/h2&gt;

&lt;p&gt;Once you have confirmed that the contact form works correctly, publish your website using Lovable's publishing workflow.&lt;/p&gt;

&lt;p&gt;Open the published website and submit another test enquiry.&lt;/p&gt;

&lt;p&gt;This is important because a form that works in a preview environment may encounter different domain restrictions or configuration issues after deployment.&lt;/p&gt;

&lt;p&gt;If you have configured Allowed Domains in Formgrid.dev, make sure your published website's domain is included.&lt;/p&gt;

&lt;p&gt;Once the published website successfully submits enquiries and notifications are delivered, your contact form is ready to receive customer enquiries.&lt;/p&gt;

&lt;p&gt;You have now connected your Lovable website to a form backend without setting up Supabase or Resend.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happens After Someone Submits Your Lovable Contact Form?
&lt;/h2&gt;

&lt;p&gt;A working contact form is only the beginning.&lt;/p&gt;

&lt;p&gt;Imagine you have built a website for a local roofing company using Lovable.&lt;/p&gt;

&lt;p&gt;A homeowner visits the website and submits a quote request.&lt;/p&gt;

&lt;p&gt;With a traditional contact form, the business owner might simply receive an email.&lt;/p&gt;

&lt;p&gt;However, what happens if the owner receives 20 enquiries in a week?&lt;/p&gt;

&lt;p&gt;How do they remember which customers they have contacted, which customers need a follow-up, and which enquiries have turned into actual jobs?&lt;/p&gt;

&lt;p&gt;This is where Formgrid.dev's built-in lead management system becomes useful.&lt;/p&gt;

&lt;p&gt;When an accepted submission arrives, two things happen:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;An email notification is sent to the configured recipient when notifications are enabled.&lt;/li&gt;
&lt;li&gt;The enquiry appears in the Leads tab, where it can be managed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" alt="Formgrid.dev lead pipeline showing New, Contacted, and Converted stages" width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Manage enquiries from your Lovable website without connecting a separate CRM.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Manage Customer Enquiries With a Built-In Lead Pipeline
&lt;/h2&gt;

&lt;p&gt;Formgrid.dev provides three default lead stages:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;New&lt;/td&gt;
&lt;td&gt;A recently received customer enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Contacted&lt;/td&gt;
&lt;td&gt;You have responded to the potential customer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Converted&lt;/td&gt;
&lt;td&gt;The enquiry has become a customer or reached a successful outcome&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Here is a demonstration of how the lead pipeline works:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fformgrid.dev%2Fgifs%2Flead-pipeline-demo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fformgrid.dev%2Fgifs%2Flead-pipeline-demo.gif" alt="Formgrid.dev lead pipeline demonstration showing how enquiries can be organized after submission" width="479" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, a customer submits a quote request through your Lovable website.&lt;/p&gt;

&lt;p&gt;The enquiry appears in your Leads tab with the status &lt;strong&gt;New&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After responding to the customer, you can update the status to &lt;strong&gt;Contacted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can also add notes, such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Customer needs a website for a new restaurant.

Discussed the project requirements.

Send a proposal and follow up on Friday.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" alt="Formgrid.dev lead details showing notes and follow-up information" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Keep customer information, notes, and follow-up dates attached to each enquiry.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If the customer accepts your proposal, you can mark the enquiry as &lt;strong&gt;Converted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can also schedule follow-up reminders so that promising enquiries do not get forgotten.&lt;/p&gt;

&lt;p&gt;Instead of building a website that simply sends emails, you can build one that helps businesses manage potential customers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use AI to Identify Genuine Customer Enquiries
&lt;/h2&gt;

&lt;p&gt;Not every submission from your Lovable contact form will be a potential customer.&lt;/p&gt;

&lt;p&gt;Some visitors might be requesting support. Others might be promoting their own services or submitting spam.&lt;/p&gt;

&lt;p&gt;Formgrid.dev provides AI-powered lead classification to help identify the apparent intent behind incoming submissions.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Classification&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hot Lead&lt;/td&gt;
&lt;td&gt;A potentially valuable customer enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Likely Spam&lt;/td&gt;
&lt;td&gt;A suspicious or potentially unwanted submission&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sales Pitch&lt;/td&gt;
&lt;td&gt;Someone promoting their own product or service&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Support Request&lt;/td&gt;
&lt;td&gt;Someone requesting assistance&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For example, imagine receiving these two submissions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Submission 1:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hello, I need a website for my new business. Could you send me a quote?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Submission 2:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We offer guaranteed Google rankings and affordable backlink packages. Contact us today.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Both messages could have been submitted by real people.&lt;/p&gt;

&lt;p&gt;Traditional bot protection may not distinguish between them.&lt;/p&gt;

&lt;p&gt;AI-powered lead classification can help you identify the first as a potential customer enquiry and the second as a sales pitch.&lt;/p&gt;

&lt;p&gt;This allows businesses to prioritize genuine opportunities rather than manually sorting through every incoming message.&lt;/p&gt;

&lt;p&gt;AI classification complements spam protection. It does not guarantee that every suspicious submission will be blocked or quarantined.&lt;/p&gt;

&lt;p&gt;Availability and usage allowances depend on your subscription plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  An Alternative: Build Your Contact Form Visually
&lt;/h2&gt;

&lt;p&gt;You do not necessarily need Lovable to generate the contact form itself.&lt;/p&gt;

&lt;p&gt;Formgrid.dev also provides a drag-and-drop visual form builder.&lt;/p&gt;

&lt;p&gt;If you prefer to create and manage your contact form separately, you can build it using Formgrid.dev.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" alt="Formgrid.dev visual form builder with name, email, and message fields" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can add fields such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name.&lt;/li&gt;
&lt;li&gt;Email address.&lt;/li&gt;
&lt;li&gt;Phone number.&lt;/li&gt;
&lt;li&gt;Message.&lt;/li&gt;
&lt;li&gt;Service selection.&lt;/li&gt;
&lt;li&gt;Project budget.&lt;/li&gt;
&lt;li&gt;File uploads.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Customize the appearance of your form and publish it.&lt;/p&gt;

&lt;p&gt;Once published, copy the available embed code and provide it to Lovable.&lt;/p&gt;

&lt;p&gt;You can use a prompt like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Replace the existing contact form with the
following Formgrid.dev embed code.

[Paste the embed code here]

Keep the existing contact section, heading,
background, and surrounding layout.

Make sure the embedded form is responsive
and displays correctly on mobile devices.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The endpoint approach is usually preferable if you want to retain complete control over the contact form design generated by Lovable.&lt;/p&gt;

&lt;p&gt;The visual builder approach is useful if you want to manage the form's fields and configuration separately from your website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Managing Multiple Lovable Websites
&lt;/h2&gt;

&lt;p&gt;If you are a freelancer or agency building websites with Lovable, you may eventually need to manage contact forms for multiple clients.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A roofing company's quote request form.&lt;/li&gt;
&lt;li&gt;A photographer's booking enquiry form.&lt;/li&gt;
&lt;li&gt;A restaurant's private event enquiry form.&lt;/li&gt;
&lt;li&gt;A consulting company's contact form.&lt;/li&gt;
&lt;li&gt;A gym's membership enquiry form.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not need to configure a separate Supabase database and email integration for every website.&lt;/p&gt;

&lt;p&gt;Formgrid.dev allows you to organize forms into separate projects, subject to your subscription plan.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" alt="Formgrid.dev project selector showing how different client websites can be organized into separate projects" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each client can have their own project, form endpoints, notification recipients, and lead records.&lt;/p&gt;

&lt;p&gt;This gives you a repeatable workflow for connecting contact forms across multiple Lovable websites.&lt;/p&gt;

&lt;p&gt;Instead of rebuilding the same submission infrastructure for every client, you can create a new form, copy its endpoint, and connect it to the corresponding website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lovable Contact Form: Supabase and Resend vs a Dedicated Form Backend
&lt;/h2&gt;

&lt;p&gt;There is nothing wrong with using Supabase and Resend.&lt;/p&gt;

&lt;p&gt;They are useful services, particularly when your application needs more advanced backend functionality.&lt;/p&gt;

&lt;p&gt;However, the right solution depends on what you are building.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Supabase + Resend&lt;/th&gt;
&lt;th&gt;Formgrid.dev&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Store contact form submissions&lt;/td&gt;
&lt;td&gt;Requires database setup&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Receive email notifications&lt;/td&gt;
&lt;td&gt;Requires email integration&lt;/td&gt;
&lt;td&gt;Built-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Submission endpoint&lt;/td&gt;
&lt;td&gt;Requires implementation&lt;/td&gt;
&lt;td&gt;Generated automatically&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spam protection&lt;/td&gt;
&lt;td&gt;Requires configuration or implementation&lt;/td&gt;
&lt;td&gt;Built-in protection options&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;View submissions&lt;/td&gt;
&lt;td&gt;Database interface or custom dashboard&lt;/td&gt;
&lt;td&gt;Built-in dashboard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lead management&lt;/td&gt;
&lt;td&gt;Requires implementation or another service&lt;/td&gt;
&lt;td&gt;Built-in lead pipeline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI lead classification&lt;/td&gt;
&lt;td&gt;Requires additional implementation&lt;/td&gt;
&lt;td&gt;Available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Follow-up reminders&lt;/td&gt;
&lt;td&gt;Requires additional implementation&lt;/td&gt;
&lt;td&gt;Available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Custom application backend&lt;/td&gt;
&lt;td&gt;Suitable&lt;/td&gt;
&lt;td&gt;Not a general-purpose backend&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Supabase may be the better choice if your Lovable application needs user accounts, complex database relationships, custom business logic, or other application-specific functionality.&lt;/p&gt;

&lt;p&gt;Resend may be the better choice if you primarily need a programmable email delivery service.&lt;/p&gt;

&lt;p&gt;But if your main requirement is to collect website enquiries, receive notifications, protect forms against spam, and manage leads, a dedicated form backend can simplify the setup considerably.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting Your Lovable Contact Form
&lt;/h2&gt;

&lt;h3&gt;
  
  
  My Contact Form Shows Success, but I Don't Receive Any Submissions
&lt;/h3&gt;

&lt;p&gt;Ask Lovable to review the form submission logic.&lt;/p&gt;

&lt;p&gt;Make sure it is actually sending an HTTP POST request to your Formgrid.dev endpoint.&lt;/p&gt;

&lt;p&gt;A success message should only be displayed after the endpoint confirms a successful submission.&lt;/p&gt;

&lt;p&gt;Check your browser's network requests to verify that the form is communicating with the correct endpoint.&lt;/p&gt;

&lt;p&gt;Also check the Formgrid.dev dashboard to confirm whether the submission was stored.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Submission Appears in the Dashboard, but I Don't Receive an Email
&lt;/h3&gt;

&lt;p&gt;Open your form's notification settings and verify that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Email notifications are enabled.&lt;/li&gt;
&lt;li&gt;The recipient email address is correct.&lt;/li&gt;
&lt;li&gt;The notification has not been delivered to your spam folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A successfully stored submission and a successfully delivered notification are different things.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Form Works in Lovable Preview but Not After Publishing
&lt;/h3&gt;

&lt;p&gt;Check whether you have configured Allowed Domains.&lt;/p&gt;

&lt;p&gt;Your preview environment may use a different domain from your published website.&lt;/p&gt;

&lt;p&gt;Make sure the published domain is included in your allowed-domain settings.&lt;/p&gt;

&lt;p&gt;Also inspect the browser's network requests for any submission errors.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Form Stopped Working After Enabling CAPTCHA
&lt;/h3&gt;

&lt;p&gt;Mandatory CAPTCHA protection requires the corresponding frontend integration.&lt;/p&gt;

&lt;p&gt;Make sure your Lovable website generates and includes the required verification token when submitting the form.&lt;/p&gt;

&lt;p&gt;Provide Lovable with the current CAPTCHA integration instructions from your Formgrid.dev dashboard and ask it to update the implementation.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Contact Form Returns a 403 Error
&lt;/h3&gt;

&lt;p&gt;Review your form's security settings, including allowed domains and CAPTCHA requirements.&lt;/p&gt;

&lt;p&gt;Make sure your website is sending all required information.&lt;/p&gt;

&lt;p&gt;Inspect the actual error response rather than assuming that every 403 error has the same cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Contact Form Returns a 429 Error
&lt;/h3&gt;

&lt;p&gt;A 429 response generally indicates that a rate limit has been reached.&lt;/p&gt;

&lt;p&gt;Avoid repeatedly submitting the form within a short period.&lt;/p&gt;

&lt;p&gt;Review your form's rate limits and account usage allowances.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I create a Lovable contact form without Supabase?
&lt;/h3&gt;

&lt;p&gt;Yes. You can connect your Lovable contact form to a hosted form backend such as Formgrid.dev.&lt;/p&gt;

&lt;p&gt;This allows you to receive and store form submissions without configuring a Supabase database specifically for your contact form.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can Lovable send contact form emails without Resend?
&lt;/h3&gt;

&lt;p&gt;Yes. You can connect your form to a service that provides built-in email notifications.&lt;/p&gt;

&lt;p&gt;Formgrid.dev handles notification delivery, so you do not need to configure a separate Resend integration for standard contact form notifications.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a backend for my Lovable contact form?
&lt;/h3&gt;

&lt;p&gt;A contact form needs somewhere to send and process its data.&lt;/p&gt;

&lt;p&gt;However, you do not need to build or maintain that backend yourself.&lt;/p&gt;

&lt;p&gt;A hosted form backend provides a submission endpoint that your website can use.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I keep my existing Lovable contact form design?
&lt;/h3&gt;

&lt;p&gt;Yes. You can connect your existing form to a Formgrid.dev endpoint while preserving its layout, styling, and input fields.&lt;/p&gt;

&lt;p&gt;You only need to update how the form submits its data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is it safe to include a Formgrid.dev endpoint in frontend code?
&lt;/h3&gt;

&lt;p&gt;Form submission endpoints are designed to receive public form submissions.&lt;/p&gt;

&lt;p&gt;You can include your form's public submission endpoint in your frontend.&lt;/p&gt;

&lt;p&gt;However, private API keys, administrative credentials, and other secrets should never be exposed in browser code.&lt;/p&gt;

&lt;p&gt;Configure appropriate spam protection for your public form.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Formgrid.dev if my Lovable website already uses Supabase?
&lt;/h3&gt;

&lt;p&gt;Yes. You do not need to remove Supabase from your entire application.&lt;/p&gt;

&lt;p&gt;You can continue using Supabase for authentication, database functionality, and other application features while using Formgrid.dev specifically for your contact form.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I protect my Lovable contact form against spam?
&lt;/h3&gt;

&lt;p&gt;Yes. Formgrid.dev provides several spam protection mechanisms, including honeypots, rate limiting, allowed domains, CAPTCHA integrations, and content-based spam checks.&lt;/p&gt;

&lt;p&gt;It also provides AI-powered lead classification to help identify potentially unwanted submissions.&lt;/p&gt;

&lt;p&gt;Some features require additional frontend configuration or a paid plan.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I receive contact form submissions for free?
&lt;/h3&gt;

&lt;p&gt;Yes. Formgrid.dev offers a free plan with a monthly submission allowance.&lt;/p&gt;

&lt;p&gt;You can create an account, generate a form endpoint, and test the integration without providing a credit card.&lt;/p&gt;

&lt;p&gt;Check the &lt;a href="https://formgrid.dev/pricing" rel="noopener noreferrer"&gt;Formgrid.dev pricing page&lt;/a&gt; for current limits and feature availability.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I manage enquiries from multiple Lovable websites?
&lt;/h3&gt;

&lt;p&gt;Yes. Formgrid.dev allows you to organize forms into projects, with separate endpoints and notification settings for each form.&lt;/p&gt;

&lt;p&gt;Project and usage allowances depend on your subscription plan.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a separate CRM for my Lovable website?
&lt;/h3&gt;

&lt;p&gt;Not necessarily.&lt;/p&gt;

&lt;p&gt;Formgrid.dev includes a built-in lead management pipeline that allows you to track enquiries, update lead statuses, add notes, and schedule follow-up reminders.&lt;/p&gt;

&lt;p&gt;For businesses that primarily need to manage website enquiries, this can reduce the need for a separate CRM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Lovable makes it easy to build beautiful websites without writing every line of code yourself.&lt;/p&gt;

&lt;p&gt;However, a beautiful contact form is not enough if customer enquiries are not being received, stored, or followed up.&lt;/p&gt;

&lt;p&gt;You do not necessarily need to configure Supabase, Resend, database tables, and server-side functions just to make a standard contact form work.&lt;/p&gt;

&lt;p&gt;With Formgrid.dev, you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connect your existing Lovable contact form to a unique endpoint.&lt;/li&gt;
&lt;li&gt;Receive and store form submissions.&lt;/li&gt;
&lt;li&gt;Receive email notifications.&lt;/li&gt;
&lt;li&gt;Protect your forms against spam.&lt;/li&gt;
&lt;li&gt;Identify potential customers with AI lead classification.&lt;/li&gt;
&lt;li&gt;Manage enquiries through a built-in lead pipeline.&lt;/li&gt;
&lt;li&gt;Track follow-ups and conversions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All without building and maintaining your own form submission infrastructure.&lt;/p&gt;

&lt;p&gt;Whether you are building a portfolio, a business website, a landing page, or websites for multiple clients, you can focus on building the website while Formgrid.dev handles the form submission workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't just build a beautiful website. Build one that helps businesses capture and convert customer enquiries.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Try Formgrid.dev for free&lt;/a&gt;. No credit card required.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I am the developer behind Formgrid.dev, an open-source form backend, visual form builder, and lead management platform.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>lovable</category>
      <category>supabase</category>
      <category>contactform</category>
      <category>aigeneratedwebsite</category>
    </item>
    <item>
      <title>Why Your Contact Form Still Gets Spam Even With reCAPTCHA</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 27 Nov 2026 00:54:15 +0000</pubDate>
      <link>https://dev.to/allenarduino/why-your-contact-form-still-gets-spam-even-with-recaptcha-4n4h</link>
      <guid>https://dev.to/allenarduino/why-your-contact-form-still-gets-spam-even-with-recaptcha-4n4h</guid>
      <description>&lt;p&gt;You added Google reCAPTCHA to your contact form, tested it, and deployed your website. You thought the spam problem was finally solved.&lt;/p&gt;

&lt;p&gt;Then the emails started coming in again.&lt;/p&gt;

&lt;p&gt;Fake enquiries, suspicious links, unsolicited SEO offers, cryptocurrency promotions, and messages from people who clearly have no interest in your services.&lt;/p&gt;

&lt;p&gt;If this sounds familiar, you are not alone. Many developers and business owners continue to receive contact form spam even after implementing reCAPTCHA.&lt;/p&gt;

&lt;p&gt;The problem is not necessarily that reCAPTCHA is broken. The problem is that &lt;strong&gt;CAPTCHA alone is not a complete spam protection system.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this article, we will look at why spam continues to get through, how to strengthen your contact form's spam protection, and how to manage genuine customer enquiries without building and maintaining your own backend infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Does Google reCAPTCHA Actually Do?
&lt;/h2&gt;

&lt;p&gt;Google reCAPTCHA is a security service designed to help websites detect suspicious and automated interactions.&lt;/p&gt;

&lt;p&gt;Depending on the version you use, it may ask visitors to complete a challenge or analyze their interactions in the background to determine how suspicious a request appears.&lt;/p&gt;

&lt;p&gt;Two familiar versions are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;reCAPTCHA v2:&lt;/strong&gt; Visitors may need to click an "I'm not a robot" checkbox or complete an additional challenge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;reCAPTCHA v3:&lt;/strong&gt; Assigns a risk score to an interaction without requiring the visitor to complete a visible challenge.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both approaches can help reduce automated abuse.&lt;/p&gt;

&lt;p&gt;However, there is an important distinction between detecting bots and detecting spam.&lt;/p&gt;

&lt;p&gt;A submission can come from a real human and still be spam. Similarly, an automated submission may not always be identified as suspicious.&lt;/p&gt;

&lt;p&gt;Passing a CAPTCHA challenge does not automatically submit a genuine customer enquiry.&lt;/p&gt;

&lt;h2&gt;
  
  
  6 Reasons Your Contact Form Still Gets Spam Despite reCAPTCHA
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Not All Spam Comes From Bots
&lt;/h3&gt;

&lt;p&gt;One of the biggest misconceptions about contact form spam is that it always comes from automated scripts.&lt;/p&gt;

&lt;p&gt;Consider this message:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hello, I noticed your website is not ranking well on Google. We offer affordable SEO services and can help you reach the first page. Please contact us for more information.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This message could have been submitted by a real person.&lt;/p&gt;

&lt;p&gt;That person can complete a reCAPTCHA challenge just like any genuine customer.&lt;/p&gt;

&lt;p&gt;From a bot detection perspective, the interaction may appear legitimate. From a business perspective, it is an unwanted sales pitch.&lt;/p&gt;

&lt;p&gt;Other common examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unsolicited marketing offers.&lt;/li&gt;
&lt;li&gt;Cryptocurrency promotions.&lt;/li&gt;
&lt;li&gt;Fake business opportunities.&lt;/li&gt;
&lt;li&gt;Promotional links.&lt;/li&gt;
&lt;li&gt;Fraudulent enquiries.&lt;/li&gt;
&lt;li&gt;Irrelevant service advertisements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CAPTCHA alone cannot reliably determine whether someone submitting your form is actually interested in your business.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Automated Spam Is Becoming More Sophisticated
&lt;/h3&gt;

&lt;p&gt;Not every spam bot behaves like a simple script that fills out every available input field.&lt;/p&gt;

&lt;p&gt;Modern automated systems can imitate normal browser interactions. CAPTCHA-solving services can also help abusive submissions pass challenges.&lt;/p&gt;

&lt;p&gt;This makes relying on a single protection mechanism unreliable.&lt;/p&gt;

&lt;p&gt;CAPTCHA is still useful, but it should be part of a broader protection strategy rather than your only line of defence.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Your reCAPTCHA Token May Not Be Verified on the Backend
&lt;/h3&gt;

&lt;p&gt;Adding a reCAPTCHA widget to your frontend does not automatically protect your form submission endpoint.&lt;/p&gt;

&lt;p&gt;Your backend must verify the token before accepting the submission.&lt;/p&gt;

&lt;p&gt;A properly implemented CAPTCHA flow looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Visitor completes the form
          |
CAPTCHA generates a token
          |
Form data and token reach the backend
          |
Backend verifies the token
          |
Valid request continues to further checks
Invalid request is rejected
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your backend accepts submissions without verifying the token, the presence of a CAPTCHA widget provides little protection against direct requests to your submission endpoint.&lt;/p&gt;

&lt;p&gt;Client-side validation is useful for improving the user experience, but security checks must also happen on the server.&lt;/p&gt;

&lt;p&gt;Google provides documentation on &lt;a href="https://developers.google.com/recaptcha/docs/verify" rel="noopener noreferrer"&gt;server-side reCAPTCHA verification&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Your reCAPTCHA v3 Score Threshold May Be Too Permissive
&lt;/h3&gt;

&lt;p&gt;Unlike the traditional checkbox challenge, reCAPTCHA v3 returns a score between 0.0 and 1.0.&lt;/p&gt;

&lt;p&gt;A higher score generally indicates that an interaction is more likely to be legitimate, while a lower score indicates more suspicious activity.&lt;/p&gt;

&lt;p&gt;Your application decides what to do with that score.&lt;/p&gt;

&lt;p&gt;If your acceptance threshold is too permissive, suspicious submissions may still get through.&lt;/p&gt;

&lt;p&gt;If your threshold is too strict, you may prevent genuine customers from contacting you.&lt;/p&gt;

&lt;p&gt;There is no universal threshold that works perfectly for every website.&lt;/p&gt;

&lt;p&gt;You need to evaluate the scores your website receives and decide how to handle suspicious interactions without unnecessarily blocking legitimate visitors.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. CAPTCHA Does Not Fully Understand the Content of Your Submission
&lt;/h3&gt;

&lt;p&gt;Imagine your contact form receives these two messages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Submission A:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Name: Sarah Johnson
Email: sarah@example.com

Message:
Hi, I would like to request a quote for a new
website for my photography business.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Submission B:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Name: Marketing Team
Email: marketing@example.com

Message:
Guaranteed traffic and instant business growth.
Visit our promotional website to claim your offer.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both submissions could pass a CAPTCHA challenge.&lt;/p&gt;

&lt;p&gt;However, they represent very different intentions.&lt;/p&gt;

&lt;p&gt;The first is a potential customer enquiry. The second is an unsolicited promotional message.&lt;/p&gt;

&lt;p&gt;To distinguish between these types of submissions, you need protection that considers the submitted content, not just the interaction that produced it.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. You Are Relying on a Single Layer of Protection
&lt;/h3&gt;

&lt;p&gt;A contact form protected only by CAPTCHA has one main mechanism for identifying suspicious interactions.&lt;/p&gt;

&lt;p&gt;If that mechanism fails to identify an abusive request, there may be nothing else preventing the submission from reaching your inbox or CRM.&lt;/p&gt;

&lt;p&gt;A more effective approach combines several independent protection mechanisms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CAPTCHA verification.&lt;/li&gt;
&lt;li&gt;Honeypot fields.&lt;/li&gt;
&lt;li&gt;Rate limiting.&lt;/li&gt;
&lt;li&gt;Server-side validation.&lt;/li&gt;
&lt;li&gt;Content-based spam detection.&lt;/li&gt;
&lt;li&gt;AI-powered submission classification.&lt;/li&gt;
&lt;li&gt;Spam quarantine and review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each layer addresses a different part of the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Switching From reCAPTCHA to Another CAPTCHA May Not Be Enough
&lt;/h2&gt;

&lt;p&gt;When developers continue receiving spam despite using reCAPTCHA, their first instinct is often to switch to another CAPTCHA provider.&lt;/p&gt;

&lt;p&gt;Popular alternatives include &lt;a href="https://www.cloudflare.com/products/turnstile/" rel="noopener noreferrer"&gt;Cloudflare Turnstile&lt;/a&gt; and &lt;a href="https://www.hcaptcha.com/" rel="noopener noreferrer"&gt;hCaptcha&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Both are useful options for protecting public forms.&lt;/p&gt;

&lt;p&gt;Cloudflare Turnstile can provide bot protection without requiring most visitors to solve traditional visual puzzles. hCaptcha provides challenge-based and other bot protection capabilities.&lt;/p&gt;

&lt;p&gt;However, switching CAPTCHA providers does not necessarily solve every type of spam.&lt;/p&gt;

&lt;p&gt;A real person submitting an unsolicited sales pitch can still pass a CAPTCHA challenge.&lt;/p&gt;

&lt;p&gt;A suspicious message can still arrive from an interaction that appears legitimate.&lt;/p&gt;

&lt;p&gt;The better question is not simply:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which CAPTCHA provider should I use?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happens when an unwanted submission passes my CAPTCHA protection?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is where layered spam protection becomes important.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Protect Your Contact Form With Multiple Layers of Spam Protection
&lt;/h2&gt;

&lt;p&gt;Instead of relying on one mechanism, you can combine several protection methods to reduce unwanted submissions.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Protection method&lt;/th&gt;
&lt;th&gt;What it helps address&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CAPTCHA&lt;/td&gt;
&lt;td&gt;Suspicious automated interactions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Honeypot fields&lt;/td&gt;
&lt;td&gt;Basic automated form submissions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate limiting&lt;/td&gt;
&lt;td&gt;Repeated and excessive submissions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server-side validation&lt;/td&gt;
&lt;td&gt;Invalid or malformed submissions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Content-based filtering&lt;/td&gt;
&lt;td&gt;Suspicious messages and known spam patterns&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI classification&lt;/td&gt;
&lt;td&gt;Identifying likely spam, sales pitches, and genuine enquiries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spam quarantine&lt;/td&gt;
&lt;td&gt;Keeping detected spam out of normal business workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Let's look at how these work together.&lt;/p&gt;

&lt;h3&gt;
  
  
  Honeypot Protection
&lt;/h3&gt;

&lt;p&gt;A honeypot is an additional form field that genuine visitors are not expected to fill out.&lt;/p&gt;

&lt;p&gt;Basic automated bots may attempt to populate it alongside the other form fields.&lt;/p&gt;

&lt;p&gt;When that happens, the backend can treat the submission as suspicious.&lt;/p&gt;

&lt;p&gt;The advantage of honeypot protection is that it does not require genuine visitors to solve an additional challenge.&lt;/p&gt;

&lt;p&gt;However, more sophisticated bots may recognize and avoid honeypot fields, so this should not be your only protection mechanism.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rate Limiting
&lt;/h3&gt;

&lt;p&gt;Rate limiting controls how frequently requests can be made to your form submission endpoint.&lt;/p&gt;

&lt;p&gt;For example, if a single source repeatedly submits your contact form within a short period, rate limiting can help prevent it from flooding your system.&lt;/p&gt;

&lt;p&gt;This helps protect your inbox, submission storage, and backend resources from excessive requests.&lt;/p&gt;

&lt;h3&gt;
  
  
  Server-Side Validation
&lt;/h3&gt;

&lt;p&gt;Your backend should validate incoming submissions before processing them.&lt;/p&gt;

&lt;p&gt;This includes checking that required information is present, submitted values are acceptable, and requests meet your application's requirements.&lt;/p&gt;

&lt;p&gt;Frontend validation alone is not sufficient because requests can reach your backend independently of your website's interface.&lt;/p&gt;

&lt;h3&gt;
  
  
  Content-Based Spam Detection
&lt;/h3&gt;

&lt;p&gt;Content-based spam detection examines the information submitted through your form.&lt;/p&gt;

&lt;p&gt;It can help identify suspicious patterns, unusual field values, promotional messages, and potential scams.&lt;/p&gt;

&lt;p&gt;For example, a name field containing a suspicious promotional link may deserve additional scrutiny.&lt;/p&gt;

&lt;p&gt;However, not every message containing a link is spam.&lt;/p&gt;

&lt;p&gt;A genuine customer may need to share their website, portfolio, or project reference.&lt;/p&gt;

&lt;p&gt;Effective spam filtering needs to consider context rather than blindly rejecting every submission containing a URL.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI-Powered Lead Classification
&lt;/h3&gt;

&lt;p&gt;Traditional spam protection helps identify suspicious requests. AI-powered lead classification goes a step further by analyzing the apparent intent behind a submission.&lt;/p&gt;

&lt;p&gt;For example, a business might receive four different types of messages through the same contact form:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A potential customer requesting a quote.&lt;/li&gt;
&lt;li&gt;Someone promoting their own SEO services.&lt;/li&gt;
&lt;li&gt;An existing customer requesting support.&lt;/li&gt;
&lt;li&gt;A suspicious message containing a fraudulent offer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All four submissions could pass CAPTCHA verification.&lt;/p&gt;

&lt;p&gt;AI classification can help distinguish between them, allowing businesses to prioritize genuine customer enquiries rather than manually sorting through every message.&lt;/p&gt;

&lt;p&gt;AI classification is not perfect, but it can be a useful additional layer alongside traditional spam protection and human review.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Formgrid.dev Strengthens Contact Form Spam Protection
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt; is an open-source form backend, visual form builder, and built-in lead management platform that helps developers and businesses collect and manage form submissions without maintaining their own backend infrastructure.&lt;/p&gt;

&lt;p&gt;One of the challenges I have encountered while building Formgrid.dev is that detecting automated submissions is only one part of solving the spam problem.&lt;/p&gt;

&lt;p&gt;A contact form can have CAPTCHA enabled and still receive promotional messages, suspicious links, and fake customer enquiries.&lt;/p&gt;

&lt;p&gt;At the same time, aggressive spam filtering can accidentally block genuine customers.&lt;/p&gt;

&lt;p&gt;For example, a customer requesting a website redesign might include a link to their existing website. That should not automatically make their enquiry spam.&lt;/p&gt;

&lt;p&gt;This is why Formgrid.dev takes a layered approach to spam protection.&lt;/p&gt;

&lt;p&gt;Rather than relying exclusively on CAPTCHA, Formgrid.dev combines several protection mechanisms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Honeypot protection:&lt;/strong&gt; Helps identify basic automated form submissions without interrupting genuine visitors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rate limiting:&lt;/strong&gt; Helps prevent excessive submissions from flooding your forms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allowed Domains:&lt;/strong&gt; Helps restrict submissions to approved websites.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CAPTCHA integrations:&lt;/strong&gt; Adds another layer of protection against automated abuse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Content-based spam detection:&lt;/strong&gt; Examines suspicious submission patterns and content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI-powered lead classification:&lt;/strong&gt; Helps distinguish genuine enquiries from sales pitches, support requests, and likely spam.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spam management:&lt;/strong&gt; Provides a dedicated area for reviewing submissions marked as spam.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" alt="Formgrid.dev spam protection settings showing available form security controls" width="800" height="586"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Configure spam protection according to your website's requirements.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Formgrid.dev supports Cloudflare Turnstile for forms created with the visual form builder and hCaptcha for custom HTML forms.&lt;/p&gt;

&lt;p&gt;The goal is not to promise that your forms will never receive spam. No public contact form can guarantee that.&lt;/p&gt;

&lt;p&gt;The goal is to reduce unwanted submissions, make suspicious messages easier to identify, and help businesses focus on genuine customer enquiries.&lt;/p&gt;

&lt;p&gt;Some advanced protection and classification features depend on your subscription plan.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Create a free Formgrid.dev account&lt;/a&gt;.&lt;/strong&gt; No credit card required.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Set Up a Contact Form With Spam Protection Using Formgrid.dev
&lt;/h2&gt;

&lt;p&gt;Let's walk through how to create a contact form, connect it to your website, configure spam protection, and manage incoming enquiries.&lt;/p&gt;

&lt;p&gt;You do not need to build your own backend, configure a database, or set up a separate email delivery service.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Create a Free Formgrid.dev Account
&lt;/h3&gt;

&lt;p&gt;Go to &lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;formgrid.dev&lt;/a&gt; and sign up using your Google account or email address.&lt;/p&gt;

&lt;p&gt;No credit card is required.&lt;/p&gt;

&lt;p&gt;Once you have signed up and completed any required verification, you will be directed to your dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw83f2kf1orziahc4bnef.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw83f2kf1orziahc4bnef.png" alt="Formgrid landing page screenshot" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzz9kakwxjhyqlnllimrs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzz9kakwxjhyqlnllimrs.png" alt="Formgrid signup page screenshot" width="800" height="622"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Create a New Form
&lt;/h3&gt;

&lt;p&gt;From your dashboard, click &lt;strong&gt;New Form&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Enter a name for your form, such as &lt;code&gt;Website Contact Form&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can also add a description, although this is optional.&lt;/p&gt;

&lt;p&gt;Click &lt;strong&gt;Create Form&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4go06kae8so5taw4rixa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4go06kae8so5taw4rixa.png" alt="Formgrid.dev create-form dialog showing form name and project selection" width="800" height="602"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Give your contact form a name and create it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You will be directed to your form's details page.&lt;/p&gt;

&lt;p&gt;From here, you have two options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Copy your form backend endpoint and connect it to your existing website.&lt;/li&gt;
&lt;li&gt;Create a form using the drag-and-drop form builder.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 3: Connect Your Contact Form
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Option A: Connect an Existing HTML Form
&lt;/h4&gt;

&lt;p&gt;If you already have a contact form on your website, you do not need to rebuild it.&lt;/p&gt;

&lt;p&gt;From your form's Overview tab, copy your unique endpoint URL.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6xcp5ymi5o7athceae7d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6xcp5ymi5o7athceae7d.png" alt="Formgrid.dev form overview showing the generated endpoint and copy action" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Copy the unique submission endpoint generated for your form.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Your endpoint will look something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://formgrid.dev/api/f/your-endpoint-slug
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the endpoint as the &lt;code&gt;action&lt;/code&gt; attribute of your HTML form.&lt;/p&gt;

&lt;p&gt;Here is a simple example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt;
  &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://formgrid.dev/api/f/your-endpoint-slug"&lt;/span&gt;
  &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Your Name&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;
    &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;
    &lt;span class="na"&gt;required&lt;/span&gt;
  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Your Email&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
    &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;
    &lt;span class="na"&gt;required&lt;/span&gt;
  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Your Message&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt;
    &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;
    &lt;span class="na"&gt;required&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Send Message&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;your-endpoint-slug&lt;/code&gt; with the actual endpoint generated for your form.&lt;/p&gt;

&lt;p&gt;If you already have a styled HTML form, you can keep your existing layout, CSS, Tailwind classes, and input fields.&lt;/p&gt;

&lt;p&gt;Make sure each input has a &lt;code&gt;name&lt;/code&gt; attribute so its value is included in the submission.&lt;/p&gt;

&lt;p&gt;Formgrid.dev handles the backend processing, submission storage, and configured email notifications.&lt;/p&gt;

&lt;p&gt;If you are using React, Next.js, Vue, or another frontend framework, you can also submit your form using JavaScript. Refer to the code snippets provided in your form's Overview page.&lt;/p&gt;

&lt;p&gt;If you enable mandatory CAPTCHA protection, make sure your frontend includes the corresponding CAPTCHA integration and verification token.&lt;/p&gt;

&lt;h4&gt;
  
  
  Option B: Use the Visual Form Builder
&lt;/h4&gt;

&lt;p&gt;If you do not want to write HTML, you can create your contact form using the Formgrid.dev visual form builder.&lt;/p&gt;

&lt;p&gt;Open the form builder from your form's details page and add the fields you need.&lt;/p&gt;

&lt;p&gt;For a simple contact form, you can include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name.&lt;/li&gt;
&lt;li&gt;Email address.&lt;/li&gt;
&lt;li&gt;Phone number.&lt;/li&gt;
&lt;li&gt;Message.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" alt="Formgrid.dev visual form builder with name, email, and message fields" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Build and customize your contact form without writing code.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can customize the appearance of your form and configure its settings.&lt;/p&gt;

&lt;p&gt;Once you have finished building your form, publish it.&lt;/p&gt;

&lt;p&gt;You can then share its hosted link or embed it directly on your website.&lt;/p&gt;

&lt;p&gt;Whether you use a custom HTML form or the visual form builder, your accepted submissions can be managed from the same dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Configure Spam Protection
&lt;/h3&gt;

&lt;p&gt;Open your form's settings and locate the spam protection options.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" alt="Formgrid.dev spam protection settings showing CAPTCHA, allowed domains, and available security controls" width="800" height="586"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Depending on your form type and subscription plan, you can configure additional protection options.&lt;/p&gt;

&lt;h4&gt;
  
  
  Enable CAPTCHA Protection
&lt;/h4&gt;

&lt;p&gt;If you are using the visual form builder, you can configure Cloudflare Turnstile protection where available.&lt;/p&gt;

&lt;p&gt;If you are using a custom HTML form, Formgrid.dev supports hCaptcha integration.&lt;/p&gt;

&lt;p&gt;For custom HTML forms, make sure you complete the frontend CAPTCHA integration as well as the corresponding configuration in Formgrid.dev.&lt;/p&gt;

&lt;p&gt;Simply enabling mandatory CAPTCHA without updating your frontend can prevent legitimate submissions from being accepted.&lt;/p&gt;

&lt;h4&gt;
  
  
  Configure Allowed Domains
&lt;/h4&gt;

&lt;p&gt;If your form is intended to receive submissions from a specific website, configure its allowed domains.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;example.com
www.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use your actual website domains and follow the format required by the settings.&lt;/p&gt;

&lt;p&gt;This adds another layer of protection against unwanted use of your form endpoint, although domain restrictions should not be treated as complete security for a public endpoint.&lt;/p&gt;

&lt;h4&gt;
  
  
  Use Additional Spam Protection
&lt;/h4&gt;

&lt;p&gt;Formgrid.dev also provides honeypot protection, rate limiting, and backend spam checks to help identify suspicious submissions and excessive requests.&lt;/p&gt;

&lt;p&gt;If you are using a custom HTML form, follow the integration instructions for any protection mechanism that requires additional frontend configuration.&lt;/p&gt;

&lt;p&gt;You can combine these mechanisms with CAPTCHA instead of relying on CAPTCHA alone.&lt;/p&gt;

&lt;p&gt;You do not have to write and maintain your own spam filtering infrastructure for every website you build.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Configure Email Notifications
&lt;/h3&gt;

&lt;p&gt;By default, the email address you used to create your Formgrid.dev account is used as your notification recipient.&lt;/p&gt;

&lt;p&gt;If you want submissions delivered to another email address, you can configure that in your form's notification settings.&lt;/p&gt;

&lt;p&gt;For example, if you are building a website for a client, you can configure notifications to be sent directly to the client's email address.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" alt="Formgrid.dev notification settings showing recipient email configuration" width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Configure where incoming customer enquiry notifications should be sent.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Make sure email notifications are enabled and the recipient address is correct.&lt;/p&gt;

&lt;p&gt;You do not need to configure a separate email delivery service just to receive notifications when someone submits your contact form.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Test Your Contact Form
&lt;/h3&gt;

&lt;p&gt;Open your website or published form and submit a test enquiry.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Name: Sarah Johnson
Email: sarah@example.com

Message:
Hello, I would like to request a quote for
a new website for my business.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use an email address you control when testing email-related features.&lt;/p&gt;

&lt;p&gt;After submitting the form, open your Formgrid.dev dashboard and check that the submission has been received.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ce2tkjdndex4f1gwkk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ce2tkjdndex4f1gwkk7.png" alt="Formgrid.dev submissions dashboard showing received contact form enquiries" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Verify that your contact form submissions are being stored correctly.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Also check that the configured notification recipient receives an email.&lt;/p&gt;

&lt;p&gt;If you have enabled CAPTCHA or domain restrictions, test the form again to confirm that your security settings are working as expected.&lt;/p&gt;

&lt;p&gt;A successful browser message does not necessarily mean that an email notification was successfully delivered. Always verify both the stored submission and email delivery.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use AI Lead Classification to Identify Genuine Customer Enquiries
&lt;/h2&gt;

&lt;p&gt;One of the limitations of traditional CAPTCHA protection is that it cannot reliably distinguish between a potential customer and someone trying to sell you something.&lt;/p&gt;

&lt;p&gt;Both may be real people. Both may successfully complete a CAPTCHA challenge.&lt;/p&gt;

&lt;p&gt;But they represent very different types of submissions.&lt;/p&gt;

&lt;p&gt;Formgrid.dev includes AI-powered lead classification to help businesses understand the apparent intent behind incoming submissions.&lt;/p&gt;

&lt;p&gt;Submissions can be categorized using labels such as:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Classification&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hot Lead&lt;/td&gt;
&lt;td&gt;A potentially valuable customer enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Likely Spam&lt;/td&gt;
&lt;td&gt;A suspicious or potentially unwanted submission&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sales Pitch&lt;/td&gt;
&lt;td&gt;Someone promoting their own product or service&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Support Request&lt;/td&gt;
&lt;td&gt;Someone requesting assistance&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Imagine you run a web development agency and receive these four messages through your contact form:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hot Lead&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hi, I need a new website for my construction business. Could you send me a quote?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Sales Pitch&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We offer affordable backlink packages to improve your website's Google rankings.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Likely Spam&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Congratulations! You have been selected for an exclusive financial reward. Visit our website to claim it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Support Request&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hello, I am having trouble accessing the website dashboard. Could you help me?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Without classification, you may need to open and read every submission before deciding which ones require your attention.&lt;/p&gt;

&lt;p&gt;With AI-powered classification, you have an additional signal to help prioritize genuine customer enquiries.&lt;/p&gt;

&lt;p&gt;This becomes particularly useful when your website receives a large number of submissions.&lt;/p&gt;

&lt;p&gt;Instead of spending time sorting through promotional messages and suspicious enquiries, you can focus more attention on potential customers.&lt;/p&gt;

&lt;p&gt;AI classification complements traditional spam protection rather than replacing it.&lt;/p&gt;

&lt;p&gt;It is also important to understand that a submission classified as &lt;strong&gt;Likely Spam&lt;/strong&gt; is not necessarily automatically blocked or quarantined. Classification and spam enforcement serve different purposes.&lt;/p&gt;

&lt;p&gt;AI classification is available subject to your plan's usage allowances.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happens After Someone Submits Your Form?
&lt;/h2&gt;

&lt;p&gt;Protecting your contact form from spam is important, but receiving genuine enquiries is only the beginning.&lt;/p&gt;

&lt;p&gt;What happens after a potential customer contacts you?&lt;/p&gt;

&lt;p&gt;Do you remember to respond?&lt;/p&gt;

&lt;p&gt;Do you follow up after sending a quote?&lt;/p&gt;

&lt;p&gt;Can you tell which enquiries eventually become paying customers?&lt;/p&gt;

&lt;p&gt;With a traditional contact form, every submission may simply arrive as another email in your inbox.&lt;/p&gt;

&lt;p&gt;As more messages arrive, important customer enquiries can become difficult to track.&lt;/p&gt;

&lt;p&gt;Formgrid.dev combines form submission handling with a built-in lead management pipeline.&lt;/p&gt;

&lt;p&gt;When an accepted submission arrives, two things happen:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;An email notification is sent to your configured recipient when notifications are enabled.&lt;/li&gt;
&lt;li&gt;The enquiry appears in your Leads tab, where you can manage its progress.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" alt="Formgrid.dev lead pipeline showing New, Contacted, and Converted stages" width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Manage customer enquiries directly from your Formgrid.dev dashboard.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You do not need to connect a separate CRM just to keep track of your website enquiries.&lt;/p&gt;

&lt;h3&gt;
  
  
  Track Enquiries From New to Converted
&lt;/h3&gt;

&lt;p&gt;Formgrid.dev includes three default lead stages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;New:&lt;/strong&gt; A recently received enquiry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contacted:&lt;/strong&gt; You have responded to or contacted the potential customer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Converted:&lt;/strong&gt; The enquiry has become a customer or reached a successful outcome.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is a demonstration of how the lead pipeline works:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fformgrid.dev%2Fgifs%2Flead-pipeline-demo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fformgrid.dev%2Fgifs%2Flead-pipeline-demo.gif" alt="Formgrid.dev lead pipeline demonstration showing status updates, notes, and follow-up reminders" width="479" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Imagine you run a web development agency.&lt;/p&gt;

&lt;p&gt;A potential customer submits a contact form requesting a quote for a new website.&lt;/p&gt;

&lt;p&gt;The enquiry appears in your Leads tab with the status &lt;strong&gt;New&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After contacting the customer, you can change the status to &lt;strong&gt;Contacted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can also add a note such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Customer needs a five-page business website.

Sent an initial estimate.

Follow up on Friday to discuss the proposal.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the customer accepts your proposal, you can mark the lead as &lt;strong&gt;Converted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" alt="Formgrid.dev lead details showing notes and follow-up information" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Keep customer information, conversation notes, and follow-up dates attached to each enquiry.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can also schedule follow-up reminders so that promising customer enquiries do not get forgotten.&lt;/p&gt;

&lt;p&gt;This is particularly useful for freelancers, agencies, and service businesses where a single website enquiry could represent a valuable project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review Suspicious Submissions Without Losing Genuine Enquiries
&lt;/h2&gt;

&lt;p&gt;One of the challenges with spam protection is finding the right balance between blocking unwanted messages and allowing genuine customers to contact you.&lt;/p&gt;

&lt;p&gt;Aggressive filtering can sometimes identify legitimate enquiries as suspicious.&lt;/p&gt;

&lt;p&gt;For example, a customer might include a website link in their message because they want you to review their existing website.&lt;/p&gt;

&lt;p&gt;That does not automatically make the submission spam.&lt;/p&gt;

&lt;p&gt;Formgrid.dev provides a dedicated Spam area where submissions marked as spam can be reviewed.&lt;/p&gt;

&lt;p&gt;If a legitimate enquiry has been incorrectly marked as spam, you can review and restore it where appropriate.&lt;/p&gt;

&lt;p&gt;This gives you more control over suspicious submissions rather than automatically discarding every unusual message.&lt;/p&gt;

&lt;p&gt;The objective of spam protection should not simply be to block as many submissions as possible. It should also help ensure that genuine customers can still reach your business.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a Form Backend With Built-In Spam Protection Can Be a Better Approach
&lt;/h2&gt;

&lt;p&gt;If you are a developer, you can certainly build your own contact form backend and implement spam protection yourself.&lt;/p&gt;

&lt;p&gt;However, CAPTCHA verification is only one part of the infrastructure you will need to maintain.&lt;/p&gt;

&lt;p&gt;You may also need to handle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Server-side validation.&lt;/li&gt;
&lt;li&gt;Spam filtering rules.&lt;/li&gt;
&lt;li&gt;Rate limiting.&lt;/li&gt;
&lt;li&gt;Email delivery.&lt;/li&gt;
&lt;li&gt;Submission storage.&lt;/li&gt;
&lt;li&gt;Spam review and recovery.&lt;/li&gt;
&lt;li&gt;AI-powered submission classification.&lt;/li&gt;
&lt;li&gt;A dashboard for viewing submissions.&lt;/li&gt;
&lt;li&gt;Lead tracking.&lt;/li&gt;
&lt;li&gt;Follow-up reminders.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each of these introduces additional development and maintenance responsibilities.&lt;/p&gt;

&lt;p&gt;The more client websites you manage, the more valuable a reusable solution becomes.&lt;/p&gt;

&lt;p&gt;With Formgrid.dev, you can use the same form backend integration approach across multiple websites while organizing their forms and submissions into separate projects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" alt="Formgrid.dev project selector showing how different client websites can be organized into separate projects" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Manage forms for different websites without building a separate backend for every client.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For example, if you manage websites for a roofing company, a photography studio, and a consulting business, each business can have its own project, forms, notification recipients, and lead records, subject to your plan's allowances.&lt;/p&gt;

&lt;p&gt;You do not need to maintain a separate form processing system for every client website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Contact Form Spam Protection Mistakes
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Relying Only on Frontend Validation
&lt;/h3&gt;

&lt;p&gt;HTML attributes such as &lt;code&gt;required&lt;/code&gt; and &lt;code&gt;type="email"&lt;/code&gt; improve the form experience, but they are not sufficient security mechanisms.&lt;/p&gt;

&lt;p&gt;Your backend must also validate incoming submissions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Assuming CAPTCHA Eliminates All Spam
&lt;/h3&gt;

&lt;p&gt;CAPTCHA can reduce automated abuse, but it cannot guarantee that every accepted submission is a genuine customer enquiry.&lt;/p&gt;

&lt;p&gt;Combine it with other protection mechanisms.&lt;/p&gt;

&lt;h3&gt;
  
  
  Blocking Every Message That Contains a Link
&lt;/h3&gt;

&lt;p&gt;Many legitimate customers include links in their messages.&lt;/p&gt;

&lt;p&gt;Blocking every submission containing a URL can cause you to lose genuine business opportunities.&lt;/p&gt;

&lt;p&gt;Use contextual spam detection instead of blanket restrictions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Making Your Form Too Difficult to Complete
&lt;/h3&gt;

&lt;p&gt;Adding excessive challenges and unnecessary verification steps can frustrate genuine visitors.&lt;/p&gt;

&lt;p&gt;A contact form should be easy for potential customers to complete while still having appropriate protection behind the scenes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ignoring What Happens After Spam Is Detected
&lt;/h3&gt;

&lt;p&gt;Identifying suspicious submissions is only part of the solution.&lt;/p&gt;

&lt;p&gt;You also need a way to review them, distinguish them from genuine enquiries, and prevent unwanted messages from overwhelming your normal business workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Contact Form Spam Protection Checklist
&lt;/h2&gt;

&lt;p&gt;Before launching your contact form, check the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] CAPTCHA protection is configured correctly, if enabled.&lt;/li&gt;
&lt;li&gt;[ ] CAPTCHA tokens are verified on the backend.&lt;/li&gt;
&lt;li&gt;[ ] Honeypot protection is available or configured.&lt;/li&gt;
&lt;li&gt;[ ] Rate limiting is enabled.&lt;/li&gt;
&lt;li&gt;[ ] Incoming submissions are validated on the server.&lt;/li&gt;
&lt;li&gt;[ ] Content-based spam checks are in place.&lt;/li&gt;
&lt;li&gt;[ ] Email notification recipients are configured correctly.&lt;/li&gt;
&lt;li&gt;[ ] Genuine submissions are stored in a dashboard.&lt;/li&gt;
&lt;li&gt;[ ] Suspicious submissions can be reviewed.&lt;/li&gt;
&lt;li&gt;[ ] Genuine customer enquiries can be tracked and followed up.&lt;/li&gt;
&lt;li&gt;[ ] The form has been tested on desktop and mobile devices.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not necessarily need to build every component yourself.&lt;/p&gt;

&lt;p&gt;A managed form backend can handle much of this infrastructure for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why am I still getting spam with Google reCAPTCHA?
&lt;/h3&gt;

&lt;p&gt;Google reCAPTCHA helps detect suspicious and automated interactions, but it cannot reliably identify every unwanted message.&lt;/p&gt;

&lt;p&gt;Spam can come from real people, sophisticated automated systems, or requests that your backend does not properly validate.&lt;/p&gt;

&lt;p&gt;Combining CAPTCHA with rate limiting, honeypot protection, and content-based spam filtering can provide stronger protection.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does reCAPTCHA stop all contact form spam?
&lt;/h3&gt;

&lt;p&gt;No. reCAPTCHA can reduce automated abuse, but no CAPTCHA solution can guarantee that all spam will be prevented.&lt;/p&gt;

&lt;p&gt;Human-generated spam and suspicious submissions that pass CAPTCHA verification may still reach your contact form.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Cloudflare Turnstile better than Google reCAPTCHA?
&lt;/h3&gt;

&lt;p&gt;Cloudflare Turnstile is a useful alternative to reCAPTCHA, particularly if you want to reduce the need for visitors to solve visual challenges.&lt;/p&gt;

&lt;p&gt;However, the best option depends on your website, implementation, traffic, and protection requirements.&lt;/p&gt;

&lt;p&gt;Neither service should be treated as a complete spam filtering system on its own.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I protect my contact form without CAPTCHA?
&lt;/h3&gt;

&lt;p&gt;Yes. Honeypot fields, rate limiting, server-side validation, and content-based spam filtering can help reduce spam without requiring visitors to complete a CAPTCHA challenge.&lt;/p&gt;

&lt;p&gt;However, public forms experiencing significant automated abuse may benefit from adding CAPTCHA as another protection layer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can AI detect contact form spam?
&lt;/h3&gt;

&lt;p&gt;AI can help identify suspicious messages, unsolicited sales pitches, and other unwanted submissions by analyzing their content.&lt;/p&gt;

&lt;p&gt;Formgrid.dev uses AI-powered lead classification to help categorize submissions as Hot Lead, Likely Spam, Sales Pitch, or Support Request.&lt;/p&gt;

&lt;p&gt;However, AI classification is not always accurate and should complement other protection mechanisms.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I stop contact form spam without losing genuine customer enquiries?
&lt;/h3&gt;

&lt;p&gt;Use multiple layers of protection rather than relying on aggressive blocking rules.&lt;/p&gt;

&lt;p&gt;Avoid automatically rejecting every message containing links or unusual words.&lt;/p&gt;

&lt;p&gt;Where possible, review suspicious submissions separately so that legitimate customer enquiries can be recovered if they are incorrectly marked as spam.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Formgrid.dev support spam protection?
&lt;/h3&gt;

&lt;p&gt;Yes. Formgrid.dev provides multiple spam protection mechanisms, including honeypot protection, rate limiting, CAPTCHA integrations, domain restrictions, and additional submission checks.&lt;/p&gt;

&lt;p&gt;It also provides AI-powered lead classification and spam review capabilities, with certain features subject to plan availability.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Formgrid.dev with my existing contact form?
&lt;/h3&gt;

&lt;p&gt;Yes. You can connect an existing HTML contact form to a Formgrid.dev endpoint without rebuilding its frontend.&lt;/p&gt;

&lt;p&gt;Formgrid.dev can also be integrated into websites built with React, Next.js, Vue, Astro, and other web technologies.&lt;/p&gt;

&lt;p&gt;If you do not have an existing form, you can create one using the visual form builder.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a separate CRM to manage my form submissions?
&lt;/h3&gt;

&lt;p&gt;Not necessarily.&lt;/p&gt;

&lt;p&gt;Formgrid.dev includes a built-in lead management pipeline where you can track enquiries through New, Contacted, and Converted stages, add notes, and schedule follow-up reminders.&lt;/p&gt;

&lt;p&gt;For businesses that primarily need to manage website enquiries, this can reduce the need for a separate CRM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;If your contact form still gets spam even with reCAPTCHA, switching to another CAPTCHA provider is not necessarily the answer.&lt;/p&gt;

&lt;p&gt;CAPTCHA helps detect suspicious interactions, but it does not fully determine whether a submission represents a genuine customer enquiry.&lt;/p&gt;

&lt;p&gt;A better approach is to combine multiple layers of protection, including CAPTCHA, honeypot fields, rate limiting, server-side validation, content-based spam detection, and AI-powered classification.&lt;/p&gt;

&lt;p&gt;And once genuine enquiries arrive, you need a reliable way to manage them.&lt;/p&gt;

&lt;p&gt;That is what I wanted to achieve with Formgrid.dev: a form backend that does more than receive submissions.&lt;/p&gt;

&lt;p&gt;You can connect your existing contact form or build one visually, configure spam protection, receive email notifications, identify potential customers with AI lead classification, and manage enquiries through a built-in lead pipeline.&lt;/p&gt;

&lt;p&gt;All without building and maintaining your own form backend infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Spend less time sorting through spam and more time responding to genuine customers.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Try Formgrid.dev for free&lt;/a&gt;. No credit card required.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I am the developer behind Formgrid.dev, an open-source form backend, visual form builder, and lead management platform.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>security</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How I Built a Spam Protection System for My Form Backend</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Tue, 24 Nov 2026 13:54:29 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-i-built-a-spam-protection-system-for-my-form-backend-5bk0</link>
      <guid>https://dev.to/allenarduino/how-i-built-a-spam-protection-system-for-my-form-backend-5bk0</guid>
      <description>&lt;p&gt;One of the more interesting backend engineering problems I've encountered recently wasn't about detecting spam. My application was already detecting it, yet suspicious submissions were still reaching users and triggering email notifications.&lt;/p&gt;

&lt;p&gt;The problem surfaced while I was building &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt;, my SaaS product that provides developers and businesses with an open-source form backend, a visual form builder, and a built-in lead management system.&lt;/p&gt;

&lt;p&gt;What initially appeared to be a spam detection problem turned out to be a much broader engineering problem. Improving the detection rules alone wouldn't have been enough. I needed to understand how the entire submission pipeline worked, from the moment an HTTP request reached the server to the point where notifications and integrations were triggered.&lt;/p&gt;

&lt;p&gt;The idea behind the form backend is simple. Developers connect their HTML forms or frontend applications to an endpoint, and Formgrid.dev handles everything that happens after a visitor submits a form: storing the submission, sending email notifications, managing leads, triggering webhooks, and synchronizing data with external services such as Google Sheets and Notion.&lt;/p&gt;

&lt;p&gt;This means developers can build functional contact forms, enquiry forms, and lead generation forms without having to build and maintain their own backend infrastructure.&lt;/p&gt;

&lt;p&gt;But when you expose public endpoints that accept arbitrary user input, you inherit a problem that almost every form backend eventually has to deal with: automated spam.&lt;/p&gt;

&lt;p&gt;Some submissions contained financial reward claims, suspicious URLs embedded in name fields, randomly generated email addresses, and values that made little sense in the context of the form.&lt;/p&gt;

&lt;p&gt;What made this particularly interesting was that the platform's AI classification system was already identifying these submissions as likely spam. Yet they were still appearing in customers' lead pipelines and triggering email notifications.&lt;/p&gt;

&lt;p&gt;From a customer's perspective, a system that tells you something is spam but still delivers it to your inbox hasn't really solved the problem.&lt;/p&gt;

&lt;p&gt;I needed to understand why that was happening, how the existing spam protection worked, and how to improve it without accidentally blocking legitimate customer enquiries.&lt;/p&gt;

&lt;p&gt;This post walks through the engineering behind that investigation, the architectural decisions I made, and the lessons I learned about building reliable spam protection for public-facing APIs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The real cost of spam in a SaaS application
&lt;/h2&gt;

&lt;p&gt;Spam is easy to think of as an inconvenience. Someone submits unwanted content, the recipient deletes it, and life goes on.&lt;/p&gt;

&lt;p&gt;But in a SaaS application that processes form submissions on behalf of other businesses, the consequences extend beyond an untidy inbox.&lt;/p&gt;

&lt;p&gt;A single form submission can trigger several operations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A database write.&lt;/li&gt;
&lt;li&gt;An email notification to the form owner.&lt;/li&gt;
&lt;li&gt;An automated response to the submitter.&lt;/li&gt;
&lt;li&gt;An AI classification request.&lt;/li&gt;
&lt;li&gt;A webhook to an external application.&lt;/li&gt;
&lt;li&gt;A synchronization operation with Google Sheets, Notion, or another integration.&lt;/li&gt;
&lt;li&gt;Additional background processing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The application doesn't necessarily know whether the submission represents a potential customer or an automated bot. Unless the submission pipeline makes that distinction early enough, both are treated as legitimate events.&lt;/p&gt;

&lt;p&gt;Consider a hypothetical application receiving 10,000 spam submissions. If each submission triggers five downstream operations, that's potentially 50,000 unnecessary operations.&lt;/p&gt;

&lt;p&gt;The cost isn't just database storage. It includes email delivery, external API requests, background processing, AI inference, and infrastructure resources.&lt;/p&gt;

&lt;p&gt;There's also a cost that is harder to measure: customer trust.&lt;/p&gt;

&lt;p&gt;A business using a form backend expects to receive enquiries from potential customers, not spend time filtering fraudulent financial messages and suspicious links.&lt;/p&gt;

&lt;p&gt;At the same time, incorrectly blocking a legitimate submission could mean that a business loses a potential customer without ever knowing that the enquiry existed.&lt;/p&gt;

&lt;p&gt;That creates an interesting engineering constraint. The objective isn't simply to maximize the number of spam submissions detected. It's to reduce unwanted submissions while preserving legitimate ones.&lt;/p&gt;

&lt;p&gt;Those are two different problems, and optimizing for one without considering the other can make the product worse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why detecting spam wasn't enough
&lt;/h2&gt;

&lt;p&gt;Formgrid.dev already had an AI-powered classification system that could categorize incoming submissions based on their content.&lt;/p&gt;

&lt;p&gt;A submission could be classified as a hot lead, a support request, a sales pitch, or likely spam.&lt;/p&gt;

&lt;p&gt;This was useful for helping customers understand and prioritize incoming enquiries, but classification and enforcement are fundamentally different responsibilities.&lt;/p&gt;

&lt;p&gt;Consider a simplified classification result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;SubmissionAnalysis&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;priority&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An AI classifier might return:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;analysis&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Likely Spam"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;priority&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Low"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Suspicious promotional content containing a link."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That tells the application something about the submission. It doesn't necessarily tell the application what to do with it.&lt;/p&gt;

&lt;p&gt;If the submission has already been stored as a normal lead and the notification pipeline is allowed to continue, assigning a spam category doesn't prevent anything.&lt;/p&gt;

&lt;p&gt;The distinction becomes clearer when you separate classification metadata from enforcement state:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;Submission&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;aiCategory&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;aiPriority&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;spamReason&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI category describes the submission.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;isSpam&lt;/code&gt; property determines whether the submission should participate in the normal processing pipeline.&lt;/p&gt;

&lt;p&gt;A submission can therefore have the following state:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;aiCategory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Likely Spam"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From the application's perspective, this is still an active submission.&lt;/p&gt;

&lt;p&gt;It can appear in the lead pipeline, trigger notifications, and synchronize with external services.&lt;/p&gt;

&lt;p&gt;This separation isn't inherently a design mistake. There are good reasons not to let an AI classifier make enforcement decisions automatically.&lt;/p&gt;

&lt;p&gt;The important thing is that the application needs an explicit mechanism for deciding when a submission should be quarantined.&lt;/p&gt;

&lt;p&gt;A classification is information. Enforcement is a decision.&lt;/p&gt;

&lt;p&gt;Confusing the two can leave a system appearing to protect its users while allowing the unwanted behavior to continue.&lt;/p&gt;

&lt;h2&gt;
  
  
  The production configuration problem
&lt;/h2&gt;

&lt;p&gt;Before introducing new spam detection rules, I investigated the existing submission pipeline.&lt;/p&gt;

&lt;p&gt;I traced the request from the public endpoint through the controller, submission service, spam detection logic, database persistence, and notification processing.&lt;/p&gt;

&lt;p&gt;The existing implementation already had a rule-based spam detector. It ran before the submission was stored and before downstream operations were triggered.&lt;/p&gt;

&lt;p&gt;There was also an existing quarantine mechanism.&lt;/p&gt;

&lt;p&gt;So why were suspicious submissions still reaching customers?&lt;/p&gt;

&lt;p&gt;The investigation revealed an important configuration detail: the production environment had spam detection running in dry-run mode.&lt;/p&gt;

&lt;p&gt;The enforcement logic was effectively equivalent to this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;spamResult&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;runSpamChecks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;isDryRun&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SPAM_DRY_RUN&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;enforceSpamBlock&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;spamResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;isDryRun&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When dry-run mode is enabled, the application can detect a suspicious submission without enforcing the result.&lt;/p&gt;

&lt;p&gt;The detector might return:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"url_in_content"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But the submission is still persisted as a normal submission because enforcement is disabled.&lt;/p&gt;

&lt;p&gt;This is intentional behavior for a dry-run mechanism. It allows developers to observe what a new security rule would do without immediately affecting users.&lt;/p&gt;

&lt;p&gt;The problem is that a detection mechanism running in observation mode isn't providing active protection.&lt;/p&gt;

&lt;p&gt;I reproduced the suspicious submission patterns locally and confirmed that the existing detector recognized them. The production configuration explained how detected spam could still reach the normal processing pipeline, although I didn't independently reconstruct the complete deployment history of every affected submission.&lt;/p&gt;

&lt;p&gt;This was an important reminder that debugging a production system requires more than reading its source code.&lt;/p&gt;

&lt;p&gt;The behavior of an application is determined by its code, configuration, infrastructure, and execution environment together.&lt;/p&gt;

&lt;p&gt;A function can be completely correct in isolation while the system containing it behaves differently from what you expect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I didn't want AI to make the final decision
&lt;/h2&gt;

&lt;p&gt;Since Formgrid.dev already had AI-powered submission classification, an obvious solution would have been to automatically quarantine everything classified as likely spam.&lt;/p&gt;

&lt;p&gt;That would have been relatively straightforward to implement.&lt;/p&gt;

&lt;p&gt;But I wasn't comfortable making AI the final authority over whether a customer's enquiry should reach them.&lt;/p&gt;

&lt;p&gt;There are several reasons for this.&lt;/p&gt;

&lt;h3&gt;
  
  
  False positives have real consequences
&lt;/h3&gt;

&lt;p&gt;A message that looks promotional might be a legitimate partnership enquiry.&lt;/p&gt;

&lt;p&gt;A message containing financial terminology might be intended for an accounting firm.&lt;/p&gt;

&lt;p&gt;A message containing several URLs might be a developer sharing technical documentation or a prospective customer providing examples of websites they like.&lt;/p&gt;

&lt;p&gt;An AI model might interpret these patterns differently depending on the surrounding context.&lt;/p&gt;

&lt;p&gt;For an application handling business enquiries, incorrectly filtering a genuine message can be more damaging than allowing an occasional unwanted submission through.&lt;/p&gt;

&lt;h3&gt;
  
  
  Developers need to test their forms
&lt;/h3&gt;

&lt;p&gt;Formgrid.dev is a developer tool.&lt;/p&gt;

&lt;p&gt;Developers regularly submit arbitrary content while integrating a form with their applications.&lt;/p&gt;

&lt;p&gt;A test submission might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Test User"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"developer@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Testing form submission"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Others might submit short messages, unusual field values, placeholder content, or links.&lt;/p&gt;

&lt;p&gt;These submissions are intentional.&lt;/p&gt;

&lt;p&gt;If a developer submits a test form and receives no notification because an AI model silently classified it as spam, the developer might assume that the integration is broken.&lt;/p&gt;

&lt;p&gt;A spam protection mechanism should account for how developers actually use the product.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI introduces additional operational dependencies
&lt;/h3&gt;

&lt;p&gt;An AI-powered enforcement mechanism can introduce inference costs, external service dependencies, latency, and additional failure modes.&lt;/p&gt;

&lt;p&gt;If the classification provider is unavailable, the application needs to decide whether to accept the submission, reject it, or wait for classification.&lt;/p&gt;

&lt;p&gt;That decision becomes part of the availability model of the submission endpoint.&lt;/p&gt;

&lt;p&gt;For obvious spam patterns, I didn't need that complexity.&lt;/p&gt;

&lt;p&gt;A deterministic rule can identify certain suspicious combinations locally without making an external API request.&lt;/p&gt;

&lt;p&gt;I decided to retain AI as a classification and prioritization mechanism while using rule-based detection for high-confidence spam enforcement.&lt;/p&gt;

&lt;p&gt;This isn't an argument that AI is unsuitable for spam detection. It's about assigning responsibilities to the mechanisms best suited to them.&lt;/p&gt;

&lt;p&gt;AI is useful for interpreting ambiguous content. Deterministic rules are useful when a decision needs to be predictable, inexpensive, explainable, and easy to test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why CAPTCHA alone isn't the answer
&lt;/h2&gt;

&lt;p&gt;CAPTCHA is often the first thing developers think of when discussing form spam.&lt;/p&gt;

&lt;p&gt;It can be effective, particularly when combined with server-side verification. But a form backend has different constraints from a single application that controls its entire frontend.&lt;/p&gt;

&lt;p&gt;Formgrid.dev supports hosted forms, embedded forms, and custom HTML forms.&lt;/p&gt;

&lt;p&gt;Developers can build their own interfaces and submit data directly to the backend using JavaScript or ordinary HTTP requests.&lt;/p&gt;

&lt;p&gt;The application cannot assume that every submission originated from a frontend it controls.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;formEndpoint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;formData&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any public endpoint that accepts this request must assume that automated clients can also send requests to it.&lt;/p&gt;

&lt;p&gt;Client-side validation alone cannot establish whether a request is legitimate.&lt;/p&gt;

&lt;p&gt;CAPTCHA, honeypots, rate limiting, and content analysis each address different aspects of the problem.&lt;/p&gt;

&lt;h3&gt;
  
  
  Honeypots
&lt;/h3&gt;

&lt;p&gt;A honeypot is a hidden field that legitimate visitors are not expected to populate.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"company_website_confirmation"&lt;/span&gt;
  &lt;span class="na"&gt;tabindex&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"-1"&lt;/span&gt;
  &lt;span class="na"&gt;autocomplete&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"off"&lt;/span&gt;
  &lt;span class="na"&gt;hidden&lt;/span&gt;
&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The backend can treat a populated honeypot as a suspicious signal.&lt;/p&gt;

&lt;p&gt;This is inexpensive and doesn't interrupt legitimate visitors, but sophisticated bots can omit the field entirely.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rate limiting
&lt;/h3&gt;

&lt;p&gt;Rate limiting controls how frequently a client can submit requests.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;allowed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;rateLimiter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;consume&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;clientKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;allowed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;429&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Too many requests"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This helps prevent high-frequency abuse.&lt;/p&gt;

&lt;p&gt;However, rate limiting doesn't necessarily tell you whether an individual submission contains spam. A bot submitting one suspicious message every few minutes might remain within the permitted request rate.&lt;/p&gt;

&lt;h3&gt;
  
  
  CAPTCHA
&lt;/h3&gt;

&lt;p&gt;CAPTCHA introduces an additional verification step to establish whether a request is likely to originate from a legitimate visitor.&lt;/p&gt;

&lt;p&gt;It can reduce automated submissions, but making it mandatory introduces integration requirements and potentially additional friction for users.&lt;/p&gt;

&lt;h3&gt;
  
  
  Content analysis
&lt;/h3&gt;

&lt;p&gt;Content analysis examines what was actually submitted.&lt;/p&gt;

&lt;p&gt;It can detect suspicious URLs, promotional scam patterns, malformed values, and other combinations that are inconsistent with the expected purpose of a form field.&lt;/p&gt;

&lt;p&gt;None of these mechanisms is a complete solution on its own.&lt;/p&gt;

&lt;p&gt;The better approach is layered protection, where different mechanisms address different abuse patterns.&lt;/p&gt;

&lt;p&gt;For the problem I was investigating, improving server-side content analysis was the most direct way to address the suspicious submissions without introducing new frontend requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with blocking every URL
&lt;/h2&gt;

&lt;p&gt;The existing spam detector had a relatively broad URL detection rule.&lt;/p&gt;

&lt;p&gt;The idea was understandable. Many automated spam submissions contain links directing recipients to suspicious websites.&lt;/p&gt;

&lt;p&gt;However, treating the presence of a URL as sufficient evidence of spam creates a serious problem.&lt;/p&gt;

&lt;p&gt;Consider this legitimate enquiry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Daniel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daniel@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"I'd like a website similar to https://example.com."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or a form designed to collect website information:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Sarah"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"I'm interested in your services."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both contain URLs. Neither is inherently spam.&lt;/p&gt;

&lt;p&gt;Now compare those with a submission where a financial reward claim and an external link appear in the first-name field.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"firstName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Claim your $3000 reward at https://example.com/reward"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"lastName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"x7k2p9"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"visitor@example.com"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The URL isn't the only suspicious part of this submission.&lt;/p&gt;

&lt;p&gt;It's the combination of the URL, promotional language, and the fact that the content appears in a field intended to contain a person's name.&lt;/p&gt;

&lt;p&gt;The meaning of a value depends on the context in which it appears.&lt;/p&gt;

&lt;p&gt;A URL in a website field is expected.&lt;/p&gt;

&lt;p&gt;A URL in a message field can be legitimate.&lt;/p&gt;

&lt;p&gt;A URL accompanied by a financial reward claim in a first-name field is much more suspicious.&lt;/p&gt;

&lt;p&gt;The detector needed to understand the role of each field rather than treating every submitted value identically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building a field-aware spam detection engine
&lt;/h2&gt;

&lt;p&gt;One of the challenges of building a general-purpose form backend is that you don't control the shape of every incoming payload.&lt;/p&gt;

&lt;p&gt;One developer might use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"firstName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Daniel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daniel@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hello"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Another might use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"customer_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Daniel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"contact_email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daniel@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"project_description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hello"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A third might use dynamically generated field identifiers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"field_abc123"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Daniel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"field_def456"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daniel@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"field_ghi789"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hello"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A detector that assumes every form contains fields called &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;email&lt;/code&gt;, and &lt;code&gt;message&lt;/code&gt; won't work reliably across all these integrations.&lt;/p&gt;

&lt;p&gt;Fortunately, forms created using the Formgrid.dev visual form builder already have field metadata.&lt;/p&gt;

&lt;p&gt;The backend can use the form's schema to understand whether a submitted value belongs to a name field, email field, website field, textarea, or another input type.&lt;/p&gt;

&lt;p&gt;Custom HTML forms may not have the same structured metadata, so the detector also needs a fallback based on recognizable field names.&lt;/p&gt;

&lt;p&gt;Conceptually, I divided fields into five roles:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;FieldRole&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"name"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"email"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"message"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"other"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The detector can then classify each field before evaluating its content.&lt;/p&gt;

&lt;p&gt;Here's a simplified example of that approach:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;FieldMetadata&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;classifyField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="nc"&gt;FieldMetadata&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;FieldRole&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;normalizedKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;z0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"url"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"link"&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"textarea"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;fullname&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;firstname&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;lastname&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;customername&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalizedKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;website&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;homepage&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;websiteurl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalizedKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;emailaddress&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;contactemail&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalizedKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;comments&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;enquiry&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;inquiry&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalizedKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"other"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The production implementation is more comprehensive, but the principle is the same: use available schema metadata first, then fall back to field-name heuristics when necessary.&lt;/p&gt;

&lt;p&gt;Unknown fields should be handled conservatively.&lt;/p&gt;

&lt;p&gt;The absence of metadata shouldn't automatically make a submission suspicious.&lt;/p&gt;

&lt;p&gt;This approach allows the spam detector to apply different rules depending on what a field is intended to contain, while maintaining compatibility with existing form integrations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Normalizing input before evaluating it
&lt;/h2&gt;

&lt;p&gt;A spam detector shouldn't assume that suspicious content will arrive in a consistent format.&lt;/p&gt;

&lt;p&gt;URLs and promotional messages can appear in encoded, obfuscated, or visually altered forms.&lt;/p&gt;

&lt;p&gt;A detector that only checks for the literal string &lt;code&gt;https://&lt;/code&gt; will miss other representations of the same content.&lt;/p&gt;

&lt;p&gt;For example, URLs may appear without a scheme, with encoded characters, or with altered protocol spelling.&lt;/p&gt;

&lt;p&gt;This is why normalization is an important part of processing untrusted input.&lt;/p&gt;

&lt;p&gt;The general objective is to convert different representations of the same content into a more consistent representation before applying detection rules.&lt;/p&gt;

&lt;p&gt;A simplified normalization function might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;normalizeInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;normalize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"NFKC"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;u200B&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;\&lt;span class="n"&gt;u200D&lt;/span&gt;\&lt;span class="n"&gt;uFEFF&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Unicode normalization helps standardize certain visually equivalent character representations.&lt;/p&gt;

&lt;p&gt;Removing zero-width characters prevents invisible characters from interfering with straightforward pattern matching.&lt;/p&gt;

&lt;p&gt;Depending on the application, normalization can also include HTML entity decoding and safe handling of percent-encoded input.&lt;/p&gt;

&lt;p&gt;However, there's an important distinction between normalizing a value for analysis and modifying the original submission.&lt;/p&gt;

&lt;p&gt;I want the detector to evaluate a normalized representation of the content, but I don't want the normalization process to silently change what the customer submitted.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;originalValue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;submittedValue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;normalizedValue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;normalizeInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;originalValue&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;evaluateSpamSignals&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalizedValue&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The original value can still be preserved for storage and review.&lt;/p&gt;

&lt;p&gt;This separation is useful beyond spam detection. Search engines, moderation systems, duplicate detection mechanisms, and input validation pipelines often benefit from distinguishing raw data from its normalized analytical representation.&lt;/p&gt;

&lt;p&gt;Normalization is also not a substitute for output escaping, input validation, or other application security controls. Those responsibilities still need to be handled independently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using compound signals instead of individual keywords
&lt;/h2&gt;

&lt;p&gt;Another mistake that's easy to make when implementing a spam detector is assuming that certain words are inherently suspicious.&lt;/p&gt;

&lt;p&gt;Consider the following words:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Balance&lt;/li&gt;
&lt;li&gt;Payment&lt;/li&gt;
&lt;li&gt;Account&lt;/li&gt;
&lt;li&gt;Reward&lt;/li&gt;
&lt;li&gt;Sign in&lt;/li&gt;
&lt;li&gt;Credit&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These words frequently appear in spam messages, but they also appear in legitimate business communication.&lt;/p&gt;

&lt;p&gt;A financial services company might receive enquiries containing all of them.&lt;/p&gt;

&lt;p&gt;Blocking submissions simply because they contain financial terminology would be a poor design.&lt;/p&gt;

&lt;p&gt;Instead, I wanted the detector to consider combinations of signals.&lt;/p&gt;

&lt;p&gt;A promotional financial claim combined with an external link is more informative than either signal independently.&lt;/p&gt;

&lt;p&gt;Here's an illustrative implementation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;containsPromotionalScamLink&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;normalized&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;normalizeInput&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;hasUrl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;containsUrlLikeValue&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalized&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;hasRewardClaim&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="nf"&gt;b&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;claim&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;reward&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;credited&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;waiting&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalized&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;hasFinancialAmount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;$€£&lt;span class="p"&gt;]&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;*/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalized&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;hasAccountPrompt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="nf"&gt;b&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sign&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;verify&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;account&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;normalized&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;hasUrl&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;hasRewardClaim&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hasFinancialAmount&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;hasAccountPrompt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a simplified example rather than the exact production rule, but it demonstrates the principle.&lt;/p&gt;

&lt;p&gt;The presence of a URL alone is insufficient.&lt;/p&gt;

&lt;p&gt;The presence of a financial amount alone is insufficient.&lt;/p&gt;

&lt;p&gt;The presence of certain promotional claims alongside other suspicious characteristics provides stronger evidence.&lt;/p&gt;

&lt;p&gt;This is known as compound-signal detection.&lt;/p&gt;

&lt;p&gt;It allows the system to make decisions based on relationships between characteristics rather than treating every individual characteristic as conclusive.&lt;/p&gt;

&lt;p&gt;The exact combination of signals matters, and even compound rules can produce false positives. That's why each rule needs regression coverage and production observation before being trusted with automatic enforcement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I moved away from domain-only blocking
&lt;/h2&gt;

&lt;p&gt;During the implementation, I initially considered treating links from certain frequently abused services as suspicious.&lt;/p&gt;

&lt;p&gt;The problem is that a service can be used by both legitimate users and spammers.&lt;/p&gt;

&lt;p&gt;Telegram, for example, can be used for community invitations, customer support, project coordination, and legitimate business communication.&lt;/p&gt;

&lt;p&gt;A publishing platform can host both useful technical documentation and fraudulent promotional content.&lt;/p&gt;

&lt;p&gt;A URL redirection service can be used to share ordinary links.&lt;/p&gt;

&lt;p&gt;The fact that a service appears in a spam submission doesn't mean every submission containing a link from that service is spam.&lt;/p&gt;

&lt;p&gt;I revised the detector so that a recognized domain alone would not automatically cause quarantine when it appeared in an ordinary message field.&lt;/p&gt;

&lt;p&gt;The domain could contribute context, but the enforcement decision needed stronger evidence.&lt;/p&gt;

&lt;p&gt;This is particularly important for a general-purpose developer tool because the platform serves customers across different industries.&lt;/p&gt;

&lt;p&gt;A domain that looks unusual in one business context might be entirely normal in another.&lt;/p&gt;

&lt;p&gt;Hard-coded domain restrictions can appear effective against the incidents that inspired them while quietly rejecting legitimate traffic elsewhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Designing the submission pipeline
&lt;/h2&gt;

&lt;p&gt;The location of spam detection within the application architecture is just as important as the detection algorithm itself.&lt;/p&gt;

&lt;p&gt;Consider a simplified submission pipeline:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Incoming HTTP request
        |
        v
Validate submission
        |
        v
Save submission
        |
        v
Send email notification
        |
        v
Trigger integrations
        |
        v
Analyze content
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If spam detection happens after the application has already sent notifications and triggered integrations, the unwanted side effects have already occurred.&lt;/p&gt;

&lt;p&gt;The application might subsequently identify the submission as spam, but it cannot undo an email that has already been delivered.&lt;/p&gt;

&lt;p&gt;Moving detection earlier in the pipeline changes what the system can prevent.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Incoming HTTP request
        |
        v
Validate and normalize input
        |
        v
Evaluate spam signals
        |
        v
Is enforcement required?
        |
        +---------------------------+
        |                           |
       Yes                          No
        |                           |
        v                           v
Save as quarantined          Save as normal
        |                           |
        v                           v
Stop downstream              Continue normal
processing                   processing
        |                           |
        v                           v
Spam folder                  Leads, notifications,
                             AI and integrations
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The spam decision becomes a gate that determines whether the submission is eligible for normal processing.&lt;/p&gt;

&lt;p&gt;Here's a simplified TypeScript representation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;submitToForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Form&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;spamResult&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;runSpamChecks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fieldMetadata&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;dryRun&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SPAM_DRY_RUN&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;shouldQuarantine&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="n"&gt;spamResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;dryRun&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;submission&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;submissionRepository&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;formId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;shouldQuarantine&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;spamReason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;shouldQuarantine&lt;/span&gt;
      &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;spamResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reason&lt;/span&gt;
      &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;shouldQuarantine&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;enqueueSubmissionProcessing&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important part isn't the specific repository implementation or background job mechanism.&lt;/p&gt;

&lt;p&gt;It's the control flow.&lt;/p&gt;

&lt;p&gt;A quarantined submission is persisted, but it does not proceed into the normal notification and integration pipeline.&lt;/p&gt;

&lt;p&gt;That prevents unnecessary downstream work instead of merely labeling the result after the work has already happened.&lt;/p&gt;

&lt;p&gt;The existing Formgrid.dev submission pipeline already had much of this structure. My work focused on improving the detection rules, verifying that the enforcement gate behaved correctly, and testing the operations that should be suppressed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quarantine instead of permanent deletion
&lt;/h2&gt;

&lt;p&gt;When an application detects spam, it has several possible responses.&lt;/p&gt;

&lt;p&gt;It can reject the request, discard the submission, accept it normally, or store it in a separate quarantine state.&lt;/p&gt;

&lt;p&gt;For Formgrid.dev, I preferred quarantine.&lt;/p&gt;

&lt;p&gt;A quarantined submission is stored with an explicit state:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;spamReason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"promo_scam_link"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The submission remains available for review, but it doesn't appear in the customer's normal lead pipeline.&lt;/p&gt;

&lt;p&gt;The normal Leads query can exclude spam:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;leads&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;prisma&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findMany&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;where&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;formId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Spam folder can retrieve quarantined submissions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;spam&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;prisma&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findMany&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;where&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;formId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a customer discovers that a submission was incorrectly classified, the application can restore it using an authorized operation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;prisma&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;updateMany&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;where&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;submissionId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;formId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;authorizedFormId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;spamReason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The authorization requirement matters. A customer should only be able to restore submissions belonging to forms they are permitted to manage.&lt;/p&gt;

&lt;p&gt;Quarantine provides several advantages.&lt;/p&gt;

&lt;p&gt;First, the customer doesn't permanently lose access to the submitted information.&lt;/p&gt;

&lt;p&gt;Second, the engineering team has a way to investigate false positives.&lt;/p&gt;

&lt;p&gt;Third, the system can make an enforcement decision without treating that decision as irreversible.&lt;/p&gt;

&lt;p&gt;Fourth, the reason associated with the quarantine provides useful context when investigating why a submission was flagged.&lt;/p&gt;

&lt;p&gt;There is a trade-off: storing quarantined submissions still consumes database resources.&lt;/p&gt;

&lt;p&gt;At larger scales, a system may need retention policies, storage quotas, or other controls to prevent the quarantine itself from becoming a resource exhaustion problem.&lt;/p&gt;

&lt;p&gt;But for a form backend where legitimate enquiries can have significant business value, recoverability is an important property.&lt;/p&gt;

&lt;p&gt;One additional consideration is that restoring a submission doesn't automatically mean previously suppressed notifications and integrations have been replayed. Those operations require an explicit recovery policy.&lt;/p&gt;

&lt;p&gt;Restoring data and replaying side effects are separate responsibilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Preventing downstream side effects
&lt;/h2&gt;

&lt;p&gt;A form submission isn't just a database record. It's an event that can cause other parts of the system to perform work.&lt;/p&gt;

&lt;p&gt;This means spam protection must be considered in the context of the application's side effects.&lt;/p&gt;

&lt;p&gt;In Formgrid.dev, a normal submission can participate in operations such as email notifications, automated responses, AI classification, webhooks, and external integrations.&lt;/p&gt;

&lt;p&gt;The enforcement path needs to prevent quarantined submissions from initiating those operations.&lt;/p&gt;

&lt;p&gt;An early return in the submission service is a useful first layer of protection.&lt;/p&gt;

&lt;p&gt;However, in applications with background workers, asynchronous processing, and deferred operations, checking the submission state only at the original HTTP request boundary may not always be sufficient.&lt;/p&gt;

&lt;p&gt;Consider a hypothetical notification worker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;processNotificationJob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;submissionId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;submission&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;submissionRepository&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;submissionId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;submission&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;notificationService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The worker independently checks whether the submission is eligible for processing.&lt;/p&gt;

&lt;p&gt;This is an example of defense in depth.&lt;/p&gt;

&lt;p&gt;The submission service should avoid scheduling unnecessary work in the first place, while downstream consumers can provide an additional safeguard.&lt;/p&gt;

&lt;p&gt;Reloading the submission from the database can also be useful when its state might have changed between job creation and job execution.&lt;/p&gt;

&lt;p&gt;That doesn't eliminate every possible concurrency problem. For example, a submission could still be marked as spam after a worker checks its state but before an external email provider accepts the request.&lt;/p&gt;

&lt;p&gt;More complex systems may require stronger coordination, explicit job cancellation, or carefully defined processing states.&lt;/p&gt;

&lt;p&gt;But the architectural principle remains useful: enforce important business invariants at the boundaries where irreversible side effects occur.&lt;/p&gt;

&lt;p&gt;During the review of Formgrid.dev, I also examined deferred file-upload processing and notification jobs to verify that quarantined submissions would not proceed through those paths.&lt;/p&gt;

&lt;p&gt;The objective was not merely to hide spam from the dashboard. It was to prevent spam from consuming the resources and external services associated with legitimate submissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a spam detector should explain its decisions
&lt;/h2&gt;

&lt;p&gt;A detector that returns only a boolean can tell the application whether a submission is suspicious.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// Detection logic&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But it cannot tell an engineer why the decision was made.&lt;/p&gt;

&lt;p&gt;A more useful result includes a reason:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;SpamResult&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"url_in_content"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"promo_scam_link"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reason codes make the detector easier to observe, test, and maintain.&lt;/p&gt;

&lt;p&gt;If a particular rule starts producing a large number of detections after a deployment, the engineering team can investigate that rule rather than treating the detector as a black box.&lt;/p&gt;

&lt;p&gt;They also make it possible to write more precise regression tests.&lt;/p&gt;

&lt;p&gt;Instead of simply asserting that a submission was flagged, a test can verify that it was flagged for the expected reason.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"url_in_content"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That distinction matters because a test can pass for the wrong reason.&lt;/p&gt;

&lt;p&gt;A suspicious submission might be detected because of its email address rather than the URL pattern the test was intended to verify.&lt;/p&gt;

&lt;p&gt;Checking the reason helps establish that the specific rule under investigation actually works.&lt;/p&gt;

&lt;p&gt;Structured reasons are also valuable for observability.&lt;/p&gt;

&lt;p&gt;Rather than logging complete submission contents, which may contain sensitive personal information, an application can record detection counts and reason codes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Spam detection"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;dryRun&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"observe"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"enforce"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This provides operational visibility while reducing the need to expose customer data in application logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The importance of dry-run mode
&lt;/h2&gt;

&lt;p&gt;The production configuration that explained the original behavior was also an important mechanism for deploying the improved detector safely.&lt;/p&gt;

&lt;p&gt;Dry-run mode allows the application to evaluate a decision without immediately enforcing it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;runSpamChecks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Spam detected"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;dryRun&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"observe"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"enforce"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;shouldQuarantine&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;dryRun&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When dry-run mode is enabled, the application can record what it would have classified as spam while allowing the existing processing behavior to continue.&lt;/p&gt;

&lt;p&gt;This is useful because test environments cannot reproduce every variation of real production traffic.&lt;/p&gt;

&lt;p&gt;A detector can pass every unit test and still behave unexpectedly when customers submit content from industries or use cases that weren't represented in the test dataset.&lt;/p&gt;

&lt;p&gt;Dry-run mode gives engineers an opportunity to observe those decisions before allowing them to affect users.&lt;/p&gt;

&lt;p&gt;It also separates two operations that are often unnecessarily coupled:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Deploying new code.&lt;/li&gt;
&lt;li&gt;Activating new behavior.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Deploying an improved spam detector doesn't have to mean immediately quarantining every submission it identifies.&lt;/p&gt;

&lt;p&gt;The code can be deployed first, observed, and then activated when there is sufficient confidence in its behavior.&lt;/p&gt;

&lt;p&gt;This is a form of shadow evaluation and controlled feature rollout.&lt;/p&gt;

&lt;p&gt;The same technique can be applied to fraud detection, pricing rules, authorization policies, recommendation systems, and data migration logic.&lt;/p&gt;

&lt;p&gt;Whenever a new decision mechanism could negatively affect users, there is value in evaluating its decisions before making them authoritative.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing a spam detector properly
&lt;/h2&gt;

&lt;p&gt;Testing a spam detector involves more than checking whether obvious spam gets detected.&lt;/p&gt;

&lt;p&gt;A detector that classifies every submission as spam would achieve perfect detection of spam in a dataset, but it would be completely unusable.&lt;/p&gt;

&lt;p&gt;The legitimate submissions are just as important as the suspicious ones.&lt;/p&gt;

&lt;p&gt;I approached testing across several layers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Unit tests for individual detection rules
&lt;/h3&gt;

&lt;p&gt;The first layer verifies the behavior of the detection functions independently.&lt;/p&gt;

&lt;p&gt;For example, a suspicious URL in a name field should be detected:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;it&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"detects suspicious URLs in name fields"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;runSpamChecks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;firstName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="s2"&gt;"Claim your $3000 reward https://example.com/reward"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;lastName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Visitor"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"visitor@example.com"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"url_in_content"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A legitimate URL in a message field should be accepted:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;it&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"allows legitimate URLs in message fields"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;runSpamChecks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Daniel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"daniel@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="s2"&gt;"Please review the documentation at https://example.com/docs"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A website field should accept a URL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;it&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"allows URLs in website fields"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;runSpamChecks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Sarah"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sarah@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;website&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://example.com"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These tests establish that the detector understands the difference between suspicious content and expected field values.&lt;/p&gt;

&lt;h3&gt;
  
  
  Testing legitimate developer submissions
&lt;/h3&gt;

&lt;p&gt;Because the application is a developer tool, normal integration testing needs explicit coverage.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;it&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"allows ordinary test submissions"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;runSpamChecks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Test User"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"developer@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Testing form submission"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This might look like a trivial test, but it protects an important product behavior.&lt;/p&gt;

&lt;p&gt;A developer testing an integration should not accidentally encounter a security rule that makes the integration appear broken.&lt;/p&gt;

&lt;h3&gt;
  
  
  Testing unexpected but legitimate content
&lt;/h3&gt;

&lt;p&gt;The review also exposed some less obvious problems in existing detection rules.&lt;/p&gt;

&lt;p&gt;For example, an aggressive arrow-detection rule could classify technical messages containing JavaScript syntax as spam.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;transform&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A developer might legitimately paste something like this into a support enquiry.&lt;/p&gt;

&lt;p&gt;Similarly, a Unicode regular expression using the &lt;code&gt;Emoji&lt;/code&gt; property can match certain ASCII digits because those digits participate in emoji sequences.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;containsEmoji&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;Emoji&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;containsEmoji&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"12"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That behavior can be surprising if the intended rule is to detect pictographic emoji.&lt;/p&gt;

&lt;p&gt;A more targeted Unicode property is useful for that specific purpose:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;containsPictograph&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;/&lt;/span&gt;\&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;Extended_Pictographic&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This isn't a complete solution for detecting every possible emoji sequence, but it avoids the specific problem of treating ordinary digits as emoji characters.&lt;/p&gt;

&lt;p&gt;The implementation review tightened these rules and added coverage for legitimate technical messages, international names, short natural replies, and ordinary links.&lt;/p&gt;

&lt;p&gt;These are examples of why input validation deserves careful testing even when the implementation appears straightforward.&lt;/p&gt;

&lt;p&gt;A regular expression can be syntactically correct and still be semantically wrong for the product using it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Regression tests based on actual incidents
&lt;/h3&gt;

&lt;p&gt;The suspicious submissions that motivated the investigation were reproduced locally using representative payloads.&lt;/p&gt;

&lt;p&gt;This is one of the most useful habits in debugging production systems.&lt;/p&gt;

&lt;p&gt;When you encounter an unexpected production behavior, convert that behavior into a reproducible test before or alongside the fix.&lt;/p&gt;

&lt;p&gt;Otherwise, the implementation may solve the immediate problem without protecting against its reintroduction later.&lt;/p&gt;

&lt;p&gt;The regression tests covered the original suspicious patterns, including promotional financial claims, URLs in name fields, and obfuscated or schemeless links.&lt;/p&gt;

&lt;p&gt;They also covered legitimate content that the previous detector could incorrectly classify.&lt;/p&gt;

&lt;p&gt;The objective was to preserve the useful behavior of the existing detector while correcting its overly broad assumptions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Testing enforcement rather than detection alone
&lt;/h3&gt;

&lt;p&gt;A detector returning &lt;code&gt;isSpam: true&lt;/code&gt; doesn't prove that the application actually protects its customers.&lt;/p&gt;

&lt;p&gt;The submission pipeline itself needs tests.&lt;/p&gt;

&lt;p&gt;A simplified regression test might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;it&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"quarantines spam without sending notifications"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SPAM_DRY_RUN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"false"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;submission&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;submissionService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;submitToForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;suspiciousPayload&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;notificationService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;send&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="ow"&gt;not&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toHaveBeenCalled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;webhookService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dispatch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="ow"&gt;not&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toHaveBeenCalled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;integrationService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sync&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="ow"&gt;not&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toHaveBeenCalled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The opposite behavior also needs coverage.&lt;/p&gt;

&lt;p&gt;When dry-run mode is enabled, detection should not unexpectedly activate quarantine.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;it&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"observes spam without enforcing in dry-run mode"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SPAM_DRY_RUN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;submission&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;submissionService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;submitToForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;suspiciousPayload&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;submission&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSpam&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In an actual test suite, environment variables should be restored between tests so that one test's configuration doesn't influence another.&lt;/p&gt;

&lt;p&gt;These tests protect the system's behavior, not just the implementation of a particular detection function.&lt;/p&gt;

&lt;p&gt;All notification and integration assertions were performed using mocks. There was no need to send real emails or trigger customer integrations to verify the control flow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Evaluating false positives and false negatives
&lt;/h2&gt;

&lt;p&gt;There are four possible outcomes when a spam detector evaluates a submission.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Actual submission&lt;/th&gt;
&lt;th&gt;Detector decision&lt;/th&gt;
&lt;th&gt;Outcome&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Spam&lt;/td&gt;
&lt;td&gt;Spam&lt;/td&gt;
&lt;td&gt;True positive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Legitimate&lt;/td&gt;
&lt;td&gt;Legitimate&lt;/td&gt;
&lt;td&gt;True negative&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Legitimate&lt;/td&gt;
&lt;td&gt;Spam&lt;/td&gt;
&lt;td&gt;False positive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spam&lt;/td&gt;
&lt;td&gt;Legitimate&lt;/td&gt;
&lt;td&gt;False negative&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A false positive occurs when a legitimate submission is incorrectly classified as spam.&lt;/p&gt;

&lt;p&gt;A false negative occurs when an actual spam submission passes through the detector.&lt;/p&gt;

&lt;p&gt;Both matter, but their relative cost depends on the application.&lt;/p&gt;

&lt;p&gt;For a form backend used to collect business enquiries, false positives deserve particular attention.&lt;/p&gt;

&lt;p&gt;A missed spam message is inconvenient.&lt;/p&gt;

&lt;p&gt;A missed customer enquiry can represent lost revenue.&lt;/p&gt;

&lt;p&gt;Two useful metrics for evaluating detection systems are precision and recall.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Precision = True positives /
            (True positives + False positives)

Recall = True positives /
         (True positives + False negatives)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Precision answers the question: of all submissions classified as spam, how many were actually spam?&lt;/p&gt;

&lt;p&gt;Recall answers a different question: of all actual spam submissions, how many did the detector identify?&lt;/p&gt;

&lt;p&gt;A more aggressive detector may improve recall while reducing precision.&lt;/p&gt;

&lt;p&gt;A more conservative detector may improve precision while allowing additional spam to pass through.&lt;/p&gt;

&lt;p&gt;The right balance depends on the cost of each type of error.&lt;/p&gt;

&lt;p&gt;As part of the validation process, I created a synthetic evaluation corpus containing both legitimate and suspicious submissions.&lt;/p&gt;

&lt;p&gt;The final local results were:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Synthetic evaluation cases&lt;/td&gt;
&lt;td&gt;18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Legitimate submissions&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spam submissions&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;False positives&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;False negatives&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Relevant automated tests passed&lt;/td&gt;
&lt;td&gt;61&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TypeScript type checking&lt;/td&gt;
&lt;td&gt;Passed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The results were encouraging, but it's important to understand what they mean.&lt;/p&gt;

&lt;p&gt;Eighteen synthetic cases are not sufficient to establish a production accuracy rate.&lt;/p&gt;

&lt;p&gt;The detector performed correctly on the cases represented in that dataset. That doesn't mean it will perform perfectly across every possible submission.&lt;/p&gt;

&lt;p&gt;Historical production submissions were not evaluated during this implementation stage.&lt;/p&gt;

&lt;p&gt;The actual production false-positive and false-negative rates therefore remain unverified.&lt;/p&gt;

&lt;p&gt;This distinction matters because engineering confidence should come from evidence, not from extending limited test results into claims they cannot support.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why alternative entry points matter
&lt;/h2&gt;

&lt;p&gt;One of the more useful findings from reviewing the application was that not every submission necessarily enters the system through the same service.&lt;/p&gt;

&lt;p&gt;The main public submission flow handles ordinary hosted, embedded, and custom HTML forms.&lt;/p&gt;

&lt;p&gt;However, applications evolve.&lt;/p&gt;

&lt;p&gt;A form backend might later introduce authenticated API imports, payment confirmation flows, administrative operations, or other mechanisms that create submission records.&lt;/p&gt;

&lt;p&gt;Each additional entry point creates a question: does it enforce the same business rules as the main submission pipeline?&lt;/p&gt;

&lt;p&gt;Consider the following architecture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Public form endpoint
        |
        v
Submission service
        |
        v
Spam checks
        |
        v
Database
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now imagine introducing another entry point:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Payment confirmation
        |
        v
Database
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or an authenticated API import:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Public API
        |
        v
Database
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The main submission service may have excellent spam protection, but that doesn't automatically mean every other path has the same guarantees.&lt;/p&gt;

&lt;p&gt;During the review, I identified alternative submission paths that did not use the same heuristic spam checks.&lt;/p&gt;

&lt;p&gt;I documented them as follow-up work rather than silently expanding the scope of the existing implementation.&lt;/p&gt;

&lt;p&gt;That was a deliberate decision.&lt;/p&gt;

&lt;p&gt;An authenticated import operation may have different requirements from an anonymous public form submission.&lt;/p&gt;

&lt;p&gt;A payment confirmation flow may need to preserve transaction-related information even when associated form content appears suspicious.&lt;/p&gt;

&lt;p&gt;Applying the same rules indiscriminately could introduce unintended behavior.&lt;/p&gt;

&lt;p&gt;The longer-term architectural question is whether the application should centralize submission eligibility policies while allowing different entry points to apply explicitly defined rules.&lt;/p&gt;

&lt;p&gt;This is a common problem in growing backend applications.&lt;/p&gt;

&lt;p&gt;Business invariants that initially exist in one service can become inconsistent as new controllers, workers, and integration paths are introduced.&lt;/p&gt;

&lt;p&gt;Reviewing every entry point is often more valuable than adding another validation rule to the most obvious one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rate limiting and distributed systems
&lt;/h2&gt;

&lt;p&gt;Although content detection was the main focus of this investigation, rate limiting remains an important part of protecting public APIs.&lt;/p&gt;

&lt;p&gt;A simple rate limiter can be implemented using an in-memory map.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Map&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a single running process, this can be sufficient for basic request tracking.&lt;/p&gt;

&lt;p&gt;But if the application scales horizontally across multiple backend instances, each process maintains its own independent map.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Incoming requests
        |
        v
Load balancer
        |
        +---------------------------+
        |                           |
        v                           v
Backend instance A           Backend instance B
Local request counter        Local request counter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A client might send requests to both instances without either individual instance observing the complete request volume.&lt;/p&gt;

&lt;p&gt;The effective rate limit becomes dependent on how requests are distributed.&lt;/p&gt;

&lt;p&gt;This is where shared infrastructure such as Redis becomes useful.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Incoming requests
        |
        v
Load balancer
        |
        +---------------------------+
        |                           |
        v                           v
Backend instance A           Backend instance B
        |                           |
        +-------------+-------------+
                      |
                      v
               Shared Redis state
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both backend instances can consult a shared rate-limiting state.&lt;/p&gt;

&lt;p&gt;A simplified Redis-based fixed-window limiter might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;consumeRateLimit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;redis&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Redis&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;windowSeconds&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;redis&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;eval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`
      local count = redis.call("INCR", KEYS[1])

      if count == 1 then
        redis.call("EXPIRE", KEYS[1], ARGV[1])
      end

      return count
    `&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;windowSeconds&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The increment and expiration logic are executed together atomically.&lt;/p&gt;

&lt;p&gt;This avoids a failure mode where a counter is incremented but its expiration is never established because the application fails between two separate Redis commands.&lt;/p&gt;

&lt;p&gt;A fixed-window limiter still has limitations, including bursts around window boundaries. More demanding systems might use sliding-window algorithms or token buckets.&lt;/p&gt;

&lt;p&gt;There are also additional considerations around trusted proxy configuration, shared IP addresses, per-form quotas, and what happens when Redis is unavailable.&lt;/p&gt;

&lt;p&gt;I didn't introduce a distributed rate-limiting rewrite as part of this spam protection implementation. It's a separate infrastructure improvement worth considering as the platform scales.&lt;/p&gt;

&lt;p&gt;The broader lesson is that abuse prevention mechanisms need to match the application's deployment architecture.&lt;/p&gt;

&lt;p&gt;A mechanism that works correctly inside one process may not provide the same guarantees across several processes.&lt;/p&gt;

&lt;h2&gt;
  
  
  A controlled production rollout
&lt;/h2&gt;

&lt;p&gt;After completing the implementation and local validation, the next decision was whether to immediately enable enforcement in production.&lt;/p&gt;

&lt;p&gt;The tempting approach would be to deploy the code and switch the spam protection setting at the same time.&lt;/p&gt;

&lt;p&gt;But a security feature that can suppress legitimate customer enquiries deserves a more controlled release process.&lt;/p&gt;

&lt;p&gt;The rollout plan separates deployment from enforcement:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Deploy the improved spam detection code while keeping dry-run mode enabled.&lt;/li&gt;
&lt;li&gt;Verify that production is running the intended release.&lt;/li&gt;
&lt;li&gt;Observe detection reasons and volumes against real submission traffic.&lt;/li&gt;
&lt;li&gt;Investigate suspicious patterns and potential false positives.&lt;/li&gt;
&lt;li&gt;Enable quarantine enforcement once the results justify doing so.&lt;/li&gt;
&lt;li&gt;Verify that quarantined submissions appear in the Spam folder rather than the normal lead pipeline.&lt;/li&gt;
&lt;li&gt;Confirm that notifications and integrations are suppressed for quarantined submissions.&lt;/li&gt;
&lt;li&gt;Continue monitoring and restore incorrectly classified submissions when necessary.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The rollback mechanism is equally important.&lt;/p&gt;

&lt;p&gt;If the new rules behave unexpectedly, enforcement can be disabled by returning the application to dry-run mode and restarting or redeploying the service as required.&lt;/p&gt;

&lt;p&gt;The detection logic can continue to run without automatically quarantining submissions.&lt;/p&gt;

&lt;p&gt;Previously quarantined records still need to be reviewed and restored separately.&lt;/p&gt;

&lt;p&gt;That is another reason I preferred quarantine over deletion.&lt;/p&gt;

&lt;p&gt;At the time of writing, the implementation and local validation are complete, but the controlled production enforcement rollout is still pending.&lt;/p&gt;

&lt;p&gt;I haven't claimed that the new detector has eliminated production spam or measured its production accuracy because those conclusions require evidence from the actual deployment.&lt;/p&gt;

&lt;p&gt;A successful test suite establishes confidence in the scenarios it covers. Production observation establishes confidence in how the system behaves under real conditions.&lt;/p&gt;

&lt;p&gt;Both are necessary.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this taught me about backend engineering
&lt;/h2&gt;

&lt;p&gt;This investigation started with suspicious messages appearing in customers' lead pipelines.&lt;/p&gt;

&lt;p&gt;It turned into a review of input normalization, field metadata, deterministic detection, asynchronous processing, production configuration, data recoverability, testing, and release engineering.&lt;/p&gt;

&lt;p&gt;Several lessons stood out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Detection and enforcement are different responsibilities.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Identifying an unwanted event doesn't prevent it from producing side effects. The application needs an explicit decision about whether that event should continue through the system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Context matters more than isolated patterns.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A URL, a financial term, or a short message is not inherently spam. Understanding the purpose of the field and the relationship between signals produces more meaningful decisions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Protecting legitimate users is part of security engineering.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A security mechanism that regularly prevents legitimate users from completing their intended actions is not necessarily successful.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The placement of a check matters as much as the check itself.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Detecting spam before triggering external services can prevent unnecessary processing. Detecting it afterward can only describe what has already happened.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Recoverability is an architectural property.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Quarantining data instead of deleting it makes incorrect decisions easier to investigate and recover from.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Production configuration is part of the system.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The behavior of an application cannot be understood from its source code alone. Environment variables, feature flags, deployment versions, and infrastructure configuration can fundamentally change what the code does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tests need to verify business behavior.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A passing detection test doesn't establish that emails, webhooks, and integrations are suppressed. Those outcomes require their own assertions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deployment and activation don't have to happen together.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Dry-run modes and feature flags allow engineers to introduce new decision mechanisms without immediately exposing customers to their consequences.&lt;/p&gt;

&lt;p&gt;These principles extend far beyond spam protection.&lt;/p&gt;

&lt;p&gt;They apply to fraud detection, payment processing, authorization systems, notification platforms, content moderation, and almost any backend system where an incoming event can trigger downstream operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;The most interesting part of building Formgrid.dev hasn't always been implementing new features.&lt;/p&gt;

&lt;p&gt;Sometimes it's investigating why an existing feature isn't producing the outcome I expected.&lt;/p&gt;

&lt;p&gt;In this case, the solution wasn't to introduce a more powerful AI model, add another external service, or rewrite the entire submission system.&lt;/p&gt;

&lt;p&gt;It was to understand the existing architecture, identify where detection and enforcement differed, improve the quality of the rules, verify the downstream behavior, and establish a safer deployment process.&lt;/p&gt;

&lt;p&gt;That's one of the things I find particularly interesting about backend engineering.&lt;/p&gt;

&lt;p&gt;The challenge is rarely just making a function return the correct value. It's making sure that the entire system behaves correctly when that value influences other operations.&lt;/p&gt;

&lt;p&gt;For a SaaS product, those operations ultimately affect real people and real businesses.&lt;/p&gt;

&lt;p&gt;Every unnecessary notification consumes someone's attention. Every unnecessary integration request consumes resources. Every legitimate enquiry incorrectly filtered could represent a lost business opportunity.&lt;/p&gt;

&lt;p&gt;Good engineering requires understanding those consequences before deciding how the system should behave.&lt;/p&gt;

&lt;p&gt;If you're building a public-facing API, a form backend, or any application that accepts untrusted user input, I would encourage you to look beyond the detection algorithm itself.&lt;/p&gt;

&lt;p&gt;Ask where the decision is enforced, what side effects it prevents, how incorrect decisions can be recovered from, and how you can safely introduce changes without disrupting the people who depend on your application.&lt;/p&gt;

&lt;p&gt;Those questions are often more important than the particular regular expression, AI model, or security library you choose.&lt;/p&gt;

&lt;p&gt;If you've encountered similar challenges while building spam protection or abuse prevention systems, I'd genuinely like to hear how you approached them. Reach me at &lt;a href="mailto:allen@formgrid.dev"&gt;allen@formgrid.dev&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Allen, a full-stack software engineer and the founder of &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt;, an open-source form backend, form builder, website builder, and lead management platform, and &lt;a href="https://sheetrocket.com" rel="noopener noreferrer"&gt;Sheetrocket&lt;/a&gt;. This tool turns Google Sheets into REST APIs and embeddable widgets. I write about backend engineering, system design, infrastructure, and the lessons I learn from building real software products. More at &lt;a href="https://jonesstack.com" rel="noopener noreferrer"&gt;jonesstack.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>spamprotection</category>
      <category>formbackend</category>
      <category>botprotection</category>
    </item>
    <item>
      <title>How to Build a Business Website With AI and Manage Customer Enquiries in One Place</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Sun, 22 Nov 2026 16:03:37 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-to-build-a-business-website-with-ai-and-manage-customer-enquiries-in-one-place-2l7</link>
      <guid>https://dev.to/allenarduino/how-to-build-a-business-website-with-ai-and-manage-customer-enquiries-in-one-place-2l7</guid>
      <description>&lt;p&gt;Your next customer might already be looking for a business like yours.&lt;/p&gt;

&lt;p&gt;They find your website, like what they see, and fill out a form asking for a quote. That should start a conversation. Instead, the enquiry lands in a crowded inbox, gets buried under other emails, and a week later you can't remember whether anyone replied.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The expensive part isn't building the website. It's losing track of the people who want to hire you.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Imagine having one place to do all of this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Create a complete website with AI&lt;/strong&gt;, without starting from a blank page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Let visitors request quotes, ask questions, or enquire about bookings&lt;/strong&gt; using forms on your site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;See each enquiry in a lead dashboard&lt;/strong&gt;, rather than hunting through emails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Record conversations and follow-up dates&lt;/strong&gt;, so promising enquiries don't depend on your memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Track enquiries from New to Contacted to Converted&lt;/strong&gt;, so you know what happened next.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's the workflow &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt; brings together: an AI website builder, forms, and a built-in lead pipeline.&lt;/p&gt;

&lt;p&gt;In this tutorial, I'll show you how to build a website that does more than look professional. It gives potential customers a way to reach you and gives you a system to manage those opportunities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Build your first website with Formgrid.dev&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqp0we8cy7dheiq75nge7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqp0we8cy7dheiq75nge7.png" alt="Formgrid.dev AI website builder marketing page showing the website creation and enquiry management experience" width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Screenshot placeholder 01: Replace with the real Formgrid website builder marketing or product overview screenshot.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A Good-Looking Website Isn't Enough If Enquiries Slip Through the Cracks
&lt;/h2&gt;

&lt;p&gt;Let's use a makeup and fashion brand as an example.&lt;/p&gt;

&lt;p&gt;One visitor wants makeup for a wedding. Another wants to enquire about a custom outfit. A third wants to know whether the brand is available for an upcoming event.&lt;/p&gt;

&lt;p&gt;You have three potential customers, but three different conversations to manage. If all you have is an email notification, you'll still need to work out who replied, who needs a follow-up, and which enquiry turned into paid work.&lt;/p&gt;

&lt;p&gt;That is where the real cost of a disconnected website can show up: &lt;strong&gt;missed follow-ups, duplicated work, and uncertainty about your next customer.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here's the workflow you actually want:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A visitor discovers your website and requests a service.&lt;/li&gt;
&lt;li&gt;Their enquiry is captured in a form connected to your project.&lt;/li&gt;
&lt;li&gt;You open the enquiry, review the details, and contact them.&lt;/li&gt;
&lt;li&gt;You add a note and a follow-up date when needed.&lt;/li&gt;
&lt;li&gt;You move the lead from &lt;strong&gt;New → Contacted → Converted&lt;/strong&gt; as the conversation progresses.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You don't need an enterprise sales system to do this. You need a practical workflow that fits the way a service business operates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The goal isn't more form submissions. It's turning more of the enquiries you already receive into real conversations and customers.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is Formgrid.dev?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid.dev&lt;/a&gt; combines an AI-powered website builder, form tools, and a built-in lead management dashboard.&lt;/p&gt;

&lt;p&gt;You can use it to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate a multi-page website by describing your business to AI.&lt;/li&gt;
&lt;li&gt;Start with a professionally designed website template instead.&lt;/li&gt;
&lt;li&gt;Customize pages, sections, text, images, navigation, and styling in a visual editor.&lt;/li&gt;
&lt;li&gt;Add enquiry forms directly to your website or connect existing Formgrid forms.&lt;/li&gt;
&lt;li&gt;Publish your website to a public URL.&lt;/li&gt;
&lt;li&gt;Organize accepted enquiries in a lead pipeline with notes and follow-up dates.&lt;/li&gt;
&lt;li&gt;Manage separate projects for different businesses or client websites.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The website builder is especially useful for &lt;strong&gt;service businesses that depend on enquiries&lt;/strong&gt;, such as photographers, contractors, consultants, real estate professionals, and local service providers.&lt;/p&gt;

&lt;p&gt;It's also useful for developers and freelancers who want to deliver a website with form handling and lead management already connected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important distinction:&lt;/strong&gt; Formgrid supports booking &lt;em&gt;requests&lt;/em&gt; and enquiries. It is not, at the time of writing, a calendar-based appointment scheduler with live availability and automatic slot confirmation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create Your Account and Open the Website Dashboard
&lt;/h2&gt;

&lt;p&gt;Start by &lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;signing up for Formgrid.dev&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;After account creation and any required email verification or login steps, Formgrid creates a default project called &lt;strong&gt;My Project&lt;/strong&gt;. Projects keep your websites, forms, and submissions organized.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu1pc8a1xc58z5s85mix7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu1pc8a1xc58z5s85mix7.png" alt="Formgrid.dev landing page" width="799" height="441"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpzmhbvnb9buuf6ie6xh0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpzmhbvnb9buuf6ie6xh0.png" alt="Formgrid.dev signup page" width="800" height="621"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Screenshot placeholder 02: Signup screen, without personal information.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Once you're in the dashboard, look for &lt;strong&gt;Websites&lt;/strong&gt; in the sidebar. This is where you can create and manage websites for the selected project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fndwwvo7aghzaa56a94fr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fndwwvo7aghzaa56a94fr.png" alt="Formgrid.dev dashboard with My Project selected and Websites visible in the sidebar" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're just starting, you can use the default project. If you later manage websites for different clients, separate projects help keep their forms and enquiries apart.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Choose How to Build Your Website
&lt;/h2&gt;

&lt;p&gt;Formgrid gives you two main starting points: &lt;strong&gt;generate a website with AI&lt;/strong&gt; or &lt;strong&gt;choose a template&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6wz0wqrflrxqo84ziqdw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6wz0wqrflrxqo84ziqdw.png" alt="Formgrid.dev Websites dashboard with AI generation and template creation options" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Option A: Generate a Website With AI
&lt;/h3&gt;

&lt;p&gt;If you have a business idea but don't want to start from a blank canvas, choose the AI website generation option.&lt;/p&gt;

&lt;p&gt;Describe your business, the services you offer, and the kind of website you want. The more specific your description, the easier it is to evaluate whether the generated content fits your business.&lt;/p&gt;

&lt;p&gt;For example, a makeup and fashion brand might start with a prompt like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Create a modern, elegant, mobile-friendly website for a makeup and fashion brand. Include a homepage, makeup services, fashion collections, about page, and contact page. Showcase bridal makeup, event makeup, and custom fashion designs. Use a premium editorial style with strong images and clear calls to action such as “Enquire About Bridal Makeup” and “Request a Custom Outfit”. Make it easy for visitors to send booking enquiries and request quotes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Formgrid's AI generation workflow is designed to produce a &lt;strong&gt;multi-page website draft&lt;/strong&gt;, including page content, navigation, and styling, which you can then open in the visual editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffhacr347yb3zsgeh50vh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffhacr347yb3zsgeh50vh.png" alt="Formgrid.dev AI website generation prompt interface" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhk8k3baduf1iublegt0u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhk8k3baduf1iublegt0u.png" alt="Formgrid.dev AI-generated multi-page business website in the editor" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Treat AI-generated content as a starting point. Review service descriptions, prices, contact details, claims, and images before publishing. Your website should accurately represent your business.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option B: Start With a Website Template
&lt;/h3&gt;

&lt;p&gt;If you'd rather choose a design first, browse the &lt;a href="https://formgrid.dev/website-templates" rel="noopener noreferrer"&gt;Formgrid website templates&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Templates are useful when you want a ready-made structure and prefer editing existing sections rather than describing everything in a prompt.&lt;/p&gt;

&lt;p&gt;You can preview a template, choose one that fits your business, and create your own editable copy. Your edits won't change the original template.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvgtvfbooj7eqa4jissuo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvgtvfbooj7eqa4jissuo.png" alt="Formgrid.dev public website template gallery" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fomcx0lfe91crndxobg52.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fomcx0lfe91crndxobg52.png" alt="Formgrid.dev website template preview 1" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxu79cel57i10e642n5el.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxu79cel57i10e642n5el.png" alt="Formgrid.dev website template preview 2" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Screenshot placeholder 08: Preview of a real business website template.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which option should you choose?&lt;/strong&gt; Use AI when you want a website tailored to a written description. Use a template when you find a design you like and want to customize it yourself. Both paths lead into the website editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Customize Your Website in the Visual Editor
&lt;/h2&gt;

&lt;p&gt;Once your website is created, open it in Formgrid's visual editor.&lt;/p&gt;

&lt;p&gt;You can adjust text, images, sections, pages, navigation, buttons, and styling. The editor also includes desktop, tablet, and mobile preview modes, so you can inspect how the site looks across screen sizes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0nuwtbzr7morcwoqas6r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0nuwtbzr7morcwoqas6r.png" alt="Formgrid.dev visual website editor showing page sections and editing controls1" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F775rvyqmz22twbpfq3mk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F775rvyqmz22twbpfq3mk.png" alt="Formgrid.dev visual website editor showing page sections and editing controls2" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnchafqky8awoym2gk3uz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnchafqky8awoym2gk3uz.png" alt="Formgrid.dev visual website editor showing page sections and editing controls3" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozw4miomxkd20233dbi8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozw4miomxkd20233dbi8.png" alt="Formgrid.dev visual website editor showing page sections and editing controls4" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fji397qgr3tqtwskanlnq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fji397qgr3tqtwskanlnq.png" alt="Formgrid.dev visual website editor showing page sections and editing controls5" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh06hz7iw46wyosstvd3p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh06hz7iw46wyosstvd3p.png" alt="Formgrid.dev visual website editor showing page sections and editing controls6" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are a few things worth checking before publishing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Headline:&lt;/strong&gt; Does the first screen clearly explain what your business does?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Services:&lt;/strong&gt; Can visitors quickly understand what they can enquire about?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calls to action:&lt;/strong&gt; Are buttons such as “Request a Quote” or “Contact Us” easy to find?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Navigation:&lt;/strong&gt; Can visitors move between the important pages?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile layout:&lt;/strong&gt; Is the website readable and usable on a phone?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contact information:&lt;/strong&gt; Are your business details accurate?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For an enquiry-focused website, your goal isn't simply to make every section look impressive. It's to help visitors understand your services and take the next step.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxf67me2akbto07dlo2to.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxf67me2akbto07dlo2to.png" alt="Formgrid.dev website mobile preview" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Remember to save your changes before leaving the editor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A useful rule when designing your site:&lt;/strong&gt; Don't make visitors guess what to do next. A makeup artist might use &lt;strong&gt;Enquire About Bridal Makeup&lt;/strong&gt;; a fashion brand might use &lt;strong&gt;Request a Custom Outfit&lt;/strong&gt;; a consultant might use &lt;strong&gt;Enquire About a Consultation&lt;/strong&gt;. Choose one clear primary action and make it easy to find.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Create a Form in Formgrid and Connect It to Your Website
&lt;/h2&gt;

&lt;p&gt;Here's the step that turns a beautiful website into a working enquiry system: &lt;strong&gt;create a form in Formgrid, then connect the form on your website to it.&lt;/strong&gt; This gives incoming enquiries a destination in your Formgrid dashboard instead of leaving you with a form that looks good but doesn't collect anything.&lt;/p&gt;

&lt;h3&gt;
  
  
  First, create your enquiry form in Formgrid
&lt;/h3&gt;

&lt;p&gt;From your dashboard, open the &lt;strong&gt;Forms&lt;/strong&gt; section in the same project as your website and create a form. Give it a name that makes sense to you. For our makeup and fashion brand, we'll call it &lt;strong&gt;Makeup &amp;amp; Fashion Enquiries&lt;/strong&gt;. You could just as easily use &lt;em&gt;Bridal Makeup Requests&lt;/em&gt;, &lt;em&gt;Customer Enquiries&lt;/em&gt;, or &lt;em&gt;Quote Requests&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The name helps you recognize which enquiries belong to which form, especially when you manage more than one website or service.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0co2rje0q8js6rwjmoio.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0co2rje0q8js6rwjmoio.png" alt="Creating a new form in the Formgrid dashboard and entering the name Makeup and Fashion Enquiries" width="799" height="445"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpf6do9prryn6pxjxhdit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpf6do9prryn6pxjxhdit.png" alt="The newly created Makeup and Fashion Enquiries form in Formgrid" width="799" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Screenshot placeholder 11B: Show the created form in Formgrid, ready to receive submissions.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Next, connect the website's enquiry form to it
&lt;/h3&gt;

&lt;p&gt;Return to the &lt;strong&gt;Websites&lt;/strong&gt; section and open your makeup and fashion website in the visual editor. Select the enquiry form on the page, or add a form section if the page doesn't have one yet. The sample form is on the contact page in the builder. Navigate to Pages on the right panel and go to the Contact page&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fufbuz90fy8k4jyb4lryy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fufbuz90fy8k4jyb4lryy.png" alt="Pages tab in the right panel" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the form's settings, configure its &lt;strong&gt;form action or Formgrid form connection&lt;/strong&gt; and select the &lt;strong&gt;Makeup &amp;amp; Fashion Enquiries&lt;/strong&gt; form you created. This links the form visitors see on your website to the form that stores submissions in Formgrid. The exact label in the editor may vary, so use the actual connection control shown in your screenshot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv6tqwzv2zwvbuj4ppogn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv6tqwzv2zwvbuj4ppogn.png" alt="Selecting the enquiry form block in the Formgrid website builder" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43brayl1q0yllys1mazg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F43brayl1q0yllys1mazg.png" alt="Linking the website form action to the Makeup and Fashion Enquiries form in Formgrid" width="799" height="349"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Screenshot placeholder 11D: This is the key screenshot. Show the form action or connection selector pointing to the Formgrid form created in the previous step.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why this matters:&lt;/strong&gt; You don't have to build a submission API, database, or separate admin dashboard. Once the published form is correctly connected, accepted enquiries can appear in the existing Formgrid submissions and Leads view, where you can review and follow up with potential customers.&lt;/p&gt;

&lt;p&gt;Before publishing, save the website and verify that the connection persists. After publishing, submit a test enquiry and confirm it appears under the correct form and project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example: A Quote Request Form
&lt;/h3&gt;

&lt;p&gt;For our makeup and fashion brand, a useful enquiry form might ask for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full name&lt;/li&gt;
&lt;li&gt;Email address&lt;/li&gt;
&lt;li&gt;Phone number (optional)&lt;/li&gt;
&lt;li&gt;Service of interest (bridal makeup, event makeup, custom outfit, or general enquiry)&lt;/li&gt;
&lt;li&gt;Preferred event date (if applicable)&lt;/li&gt;
&lt;li&gt;A message describing what the customer needs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This gives the business enough context to reply with availability, pricing information, or the next steps without making the visitor complete a long questionnaire.&lt;/p&gt;

&lt;p&gt;The goal is to collect enough information to respond meaningfully without making the form unnecessarily long.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Booking enquiry vs confirmed booking:&lt;/strong&gt; A visitor can request a booking through a form, but that doesn't automatically reserve an appointment slot. If you need live availability, payments, or automatic appointment confirmation, verify those capabilities separately.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Happens When Someone Submits?
&lt;/h3&gt;

&lt;p&gt;When a visitor submits an accepted enquiry through a properly connected published form, the submission is stored under its associated Formgrid form and project. You can then review it in the dashboard and manage it as a lead.&lt;/p&gt;

&lt;p&gt;This means you don't have to create your own database tables, submission endpoint, and custom admin dashboard just to collect and review enquiries.&lt;/p&gt;

&lt;p&gt;Formgrid also provides form notification and spam protection features, subject to configuration and plan limits. Before going live, test that submissions are accepted and notifications reach the intended recipient.&lt;/p&gt;

&lt;h3&gt;
  
  
  See It in Action: A Customer Enquires About Makeup and Fashion Services
&lt;/h3&gt;

&lt;p&gt;Let's follow a realistic example from the visitor's perspective. Imagine we've created and published a website for a makeup and fashion brand. A visitor likes the bridal makeup portfolio and wants to enquire about makeup for an upcoming wedding.&lt;/p&gt;

&lt;p&gt;Instead of making the visitor search for an email address or send an unstructured direct message, the website presents a clear &lt;strong&gt;Enquire Now&lt;/strong&gt; form.&lt;/p&gt;

&lt;p&gt;Here's what a completed example could look like:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Form field&lt;/th&gt;
&lt;th&gt;Example visitor response&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Full name&lt;/td&gt;
&lt;td&gt;Olivia Bennett&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Email&lt;/td&gt;
&lt;td&gt;&lt;a href="mailto:olivia.bennett@example.com"&gt;olivia.bennett@example.com&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Service&lt;/td&gt;
&lt;td&gt;Bridal makeup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phone Number&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Preferred date&lt;/td&gt;
&lt;td&gt;19th December 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Message&lt;/td&gt;
&lt;td&gt;Hey! I'm getting married on December 19th in Manhattan and would love to book bridal makeup for myself and three bridesmaids. Could you please share your availability, pricing, and bridal package options? I'd also like to schedule a makeup trial before the wedding.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thank you!&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;The example details above are fictional demonstration data.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F55da0kev302y9syuia43.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F55da0kev302y9syuia43.png" alt="A filled enquiry form on a Formgrid-built makeup and fashion brand website" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Because we connected the website form to &lt;strong&gt;Makeup &amp;amp; Fashion Enquiries&lt;/strong&gt;, this test submission has a clear destination in Formgrid. The important detail isn't the form itself. It's that the visitor can take action &lt;strong&gt;while they're interested&lt;/strong&gt;, and the business receives structured information that is easier to respond to.&lt;/p&gt;

&lt;p&gt;We'll follow this same enquiry after publishing to show how it appears in Formgrid's dashboard and email notifications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Publish Your Business Website
&lt;/h2&gt;

&lt;p&gt;Once you've reviewed your content, tested the layout, and configured your enquiry form, you're ready to publish.&lt;/p&gt;

&lt;p&gt;Formgrid supports public website URLs. Paid plans also support custom domains, so you can connect a domain that represents your business.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fowy358x89i4ytlxfn7z7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fowy358x89i4ytlxfn7z7.png" alt="Formgrid.dev website publishing interface1" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After publishing, open the public website in a separate browser session. Check the navigation, images, mobile layout, and form. Don't assume everything works simply because the editor preview looks correct.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa9fvnenhr4cl1dsaqh4l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa9fvnenhr4cl1dsaqh4l.png" alt="Formgrid.dev website published success modal" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fumszf0yx92p5r6psat0z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fumszf0yx92p5r6psat0z.png" alt="Published Formgrid business website with a prominent enquiry call to action" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before sharing the link:&lt;/strong&gt; Submit a test enquiry and verify that it appears in the correct form dashboard. Confirm the success message and email notifications if enabled.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Manage Customer Enquiries From the Built-In Lead Dashboard
&lt;/h2&gt;

&lt;p&gt;Publishing your website is the beginning of the customer journey, not the end.&lt;/p&gt;

&lt;p&gt;Now return to the visitor who filled out the bridal makeup enquiry form. Their message was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hi! I'm looking for bridal makeup for my wedding. Could you share your packages and let me know if you're available?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You receive an enquiry, but you still need to respond, keep track of the conversation, and follow up if the person doesn't book immediately.&lt;/p&gt;

&lt;h3&gt;
  
  
  From Website Form to Actual Submission
&lt;/h3&gt;

&lt;p&gt;After the visitor clicks &lt;strong&gt;Submit&lt;/strong&gt;, the website should display the configured success state. Behind the scenes, Formgrid processes the enquiry through the website's form and saves accepted submissions to the correct project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F55da0kev302y9syuia43.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F55da0kev302y9syuia43.png" alt="A filled enquiry form on a Formgrid-built makeup and fashion brand website" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fld4hf4mqkcam03ww516c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fld4hf4mqkcam03ww516c.png" alt="Successful submission of the makeup and fashion brand enquiry form" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, the business owner opens the Formgrid dashboard and sees the new submission. The form response includes the customer's selected service, preferred date, and message, all in one place.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7t9sac8apk7hy26l3poy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7t9sac8apk7hy26l3poy.png" alt="New makeup and fashion enquiry appearing in the Formgrid submissions dashboard" width="800" height="563"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The Email Notification: Know When Someone Reaches Out
&lt;/h3&gt;

&lt;p&gt;If email notifications are enabled and correctly configured for the form, the business can also receive a notification when a new enquiry arrives. That means you don't have to keep refreshing the dashboard to check for new interest.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fea0r27aacdcwkpx5uyk2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fea0r27aacdcwkpx5uyk2.png" alt="Formgrid email notification showing a new bridal makeup enquiry" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;email alerts you to the enquiry&lt;/strong&gt;; the &lt;strong&gt;dashboard gives you a place to manage it&lt;/strong&gt;. That combination is useful because an email notification alone doesn't tell you whether the person has been contacted, whether a quote was sent, or whether the enquiry became a customer.&lt;/p&gt;

&lt;p&gt;Now let's look at what happens after the business owner receives the message.&lt;/p&gt;

&lt;p&gt;With Formgrid's lead management workflow, accepted submissions can move through these stages:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;New&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A new enquiry has arrived and needs attention.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Contacted&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;You've reached out or started a conversation.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Converted&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The enquiry has turned into a customer or your intended completed outcome.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpb6o28omjv24kmgw06ff.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpb6o28omjv24kmgw06ff.png" alt="Formgrid.dev lead management pipeline showing New, Contacted and Converted enquiries" width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Formgrid's lead pipeline helps you track what happens after someone submits an enquiry.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can also add notes to a lead. For example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Replied with bridal makeup packages and requested the event location. Follow up on Monday if there is no response.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Then record a follow-up date so the next action isn't left to memory alone.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fekb1kxmu9zyq4e9k1geo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fekb1kxmu9zyq4e9k1geo.png" alt=" " width="800" height="573"&gt;&lt;/a&gt;&lt;/p&gt;







&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7nn8ejoso5jo54tmapve.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7nn8ejoso5jo54tmapve.png" alt=" " width="800" height="573"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Keep relevant notes and follow-up information attached to each enquiry.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can also reply to the lead directly. He receives an email directly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F16i6ktnyj3mpqb4ik9tz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F16i6ktnyj3mpqb4ik9tz.png" alt="Screenshot showing lead reply compose form" width="800" height="573"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This isn't intended to replace every feature of a large sales CRM. But for businesses primarily handling website enquiries, it can be a simpler way to stay organized without introducing another tool immediately.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The real value:&lt;/strong&gt; You don't just know that someone filled out your form. You can see whether you've followed up and whether the enquiry became a customer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Use the Same Workflow for Multiple Businesses or Client Websites
&lt;/h2&gt;

&lt;p&gt;Formgrid isn't only for business owners creating their own websites.&lt;/p&gt;

&lt;p&gt;If you're a freelance developer or run a small agency, you may build sites for several clients: a restaurant, a photographer, a contractor, and a consulting firm.&lt;/p&gt;

&lt;p&gt;Instead of mixing their enquiries, Formgrid lets you organize websites and forms under separate projects.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Project&lt;/th&gt;
&lt;th&gt;Website purpose&lt;/th&gt;
&lt;th&gt;Typical enquiry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Photography Studio&lt;/td&gt;
&lt;td&gt;Showcase services and portfolio&lt;/td&gt;
&lt;td&gt;Event booking request&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Roofing Company&lt;/td&gt;
&lt;td&gt;Explain services and build trust&lt;/td&gt;
&lt;td&gt;Quote request&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Consulting Business&lt;/td&gt;
&lt;td&gt;Present expertise&lt;/td&gt;
&lt;td&gt;Consultation enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restaurant&lt;/td&gt;
&lt;td&gt;Display business information&lt;/td&gt;
&lt;td&gt;Event or catering enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On the Business plan, project invitations are available for collaboration. However, &lt;strong&gt;the current website-editing permissions have a limitation&lt;/strong&gt;: invited collaborators may not be able to open or edit a website created by another user, even if they can see it listed in the project. Verify the exact access your client needs before promising shared website editing.&lt;/p&gt;

&lt;p&gt;For many projects, the first goal is simpler: build the website, configure the form, and give the business a reliable way to receive and track enquiries.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" alt="Formgrid.dev project selector showing separate client projects" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Organize forms and websites under separate projects when managing multiple businesses.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How Much Does It Cost to Build a Website With Formgrid.dev?
&lt;/h2&gt;

&lt;p&gt;Formgrid has a Free plan and paid Premium and Business plans. The website-related allowances below reflect the implementation reviewed in November 2026; check the &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;current Formgrid.dev pricing&lt;/a&gt; before subscribing.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Website builder capability&lt;/th&gt;
&lt;th&gt;Free&lt;/th&gt;
&lt;th&gt;Premium&lt;/th&gt;
&lt;th&gt;Business&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Website creations&lt;/td&gt;
&lt;td&gt;1 lifetime&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI website generations&lt;/td&gt;
&lt;td&gt;1 lifetime&lt;/td&gt;
&lt;td&gt;20/month by default&lt;/td&gt;
&lt;td&gt;60/month by default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Publish a website&lt;/td&gt;
&lt;td&gt;Yes, within site allowance&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Custom domain&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project member invitations&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Premium starts at $12/month, and Business starts at $29/month&lt;/strong&gt;, based on the pricing used in this comparison. Website generation allowances and other features are subject to the current subscription rules.&lt;/p&gt;

&lt;h3&gt;
  
  
  When Does Premium Make Sense?
&lt;/h3&gt;

&lt;p&gt;Think about what you want to do after your first website goes live. You might want to try a different design, build another site for a second service, or connect a domain your customers already recognize.&lt;/p&gt;

&lt;p&gt;That's where Premium becomes a practical upgrade. It gives you &lt;strong&gt;unlimited website creations&lt;/strong&gt;, more monthly AI generations, and &lt;strong&gt;custom domain support&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For a business that depends on incoming enquiries, the decision isn't simply whether a website costs $12/month. It's whether having a professional website and an organized enquiry workflow is worth paying for. Your actual return will depend on how many enquiries you receive and how well you follow up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Explore Premium on Formgrid.dev&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  When Does Business Make Sense?
&lt;/h3&gt;

&lt;p&gt;Business is designed for people handling several businesses or client projects. You get more AI generation capacity and the ability to invite project members.&lt;/p&gt;

&lt;p&gt;For a freelancer or agency, the offer to a client can become more useful than simply “I'll build you a website.” You can deliver a website with enquiry forms and a dashboard where the business can manage incoming requests.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; The current implementation has website ownership restrictions that may prevent collaborators from editing one another's sites. Verify the exact handoff and editing permissions before promising shared website editing to clients.&lt;/p&gt;

&lt;h3&gt;
  
  
  What About the Free Plan?
&lt;/h3&gt;

&lt;p&gt;The Free plan is a way to try the website builder and publish one website. But &lt;strong&gt;the one-website and one-AI-generation allowances are lifetime limits&lt;/strong&gt;, not monthly allowances. Deleting a website may not restore the creation allowance, so choose your first experiment carefully.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;&lt;strong&gt;Explore Formgrid.dev and choose a plan&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Website Builder vs Website Builder With Lead Management
&lt;/h2&gt;

&lt;p&gt;A traditional website builder helps you create pages and publish them. Some also provide forms or integrations.&lt;/p&gt;

&lt;p&gt;Formgrid's approach is to connect website creation more directly to what happens after a visitor submits an enquiry.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Need&lt;/th&gt;
&lt;th&gt;Website builder alone&lt;/th&gt;
&lt;th&gt;Formgrid.dev approach&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Create and publish pages&lt;/td&gt;
&lt;td&gt;Core function&lt;/td&gt;
&lt;td&gt;AI generation, templates, visual editor, publishing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Collect enquiries&lt;/td&gt;
&lt;td&gt;May require built-in forms or integrations&lt;/td&gt;
&lt;td&gt;Forms connected to the website and project&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Track who was contacted&lt;/td&gt;
&lt;td&gt;Depends on the product or CRM integration&lt;/td&gt;
&lt;td&gt;Built-in New, Contacted, Converted pipeline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep follow-up notes&lt;/td&gt;
&lt;td&gt;May require a separate CRM&lt;/td&gt;
&lt;td&gt;Notes and follow-up dates on leads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Organize multiple client projects&lt;/td&gt;
&lt;td&gt;Depends on the platform&lt;/td&gt;
&lt;td&gt;Project-based organization&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you receive only the occasional message, a simple contact form might be enough. But when a quote request could become a paid project, &lt;strong&gt;the value isn't in collecting the message. It's in knowing what to do with it next.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's the difference Formgrid is built around: the website and the follow-up workflow belong together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I build a complete website with AI using Formgrid.dev?
&lt;/h3&gt;

&lt;p&gt;Formgrid's AI generation workflow is designed to create a multi-page website draft with navigation, content, and styling. You can then customize it in the visual editor before publishing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need coding skills?
&lt;/h3&gt;

&lt;p&gt;You can start from an AI-generated website or a template and use the visual editor to customize it. Developers can also use Formgrid's separate form backend tools when they prefer working with their own frontend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add a contact form to my website?
&lt;/h3&gt;

&lt;p&gt;Yes. The website builder supports native forms and connecting existing Formgrid forms. Accepted submissions can be managed in the associated project's form dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can visitors request appointments or bookings?
&lt;/h3&gt;

&lt;p&gt;Yes, you can collect booking enquiries and requests through forms. However, Formgrid is not currently a calendar scheduling system with live appointment availability and automatic confirmations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use my own domain?
&lt;/h3&gt;

&lt;p&gt;Custom domains are available on Premium and Business plans. The Free plan supports publishing within its website allowance using Formgrid's public website URL options.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Formgrid.dev include a CRM?
&lt;/h3&gt;

&lt;p&gt;It includes a lightweight lead pipeline for website and form enquiries. You can move leads between New, Contacted, and Converted, add notes, and record follow-up dates.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is the website builder free?
&lt;/h3&gt;

&lt;p&gt;The Free plan includes one lifetime website creation and one lifetime AI website generation credit. Paid plans provide additional website creation and AI generation allowances.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can agencies build websites for clients?
&lt;/h3&gt;

&lt;p&gt;Yes, websites can be organized into projects, and Business supports project invitations. There is currently a limitation around editing websites created by other project members, so test the collaboration workflow you need before relying on it for client handoff.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your Website Should Help You Win Work, Not Just Look Good
&lt;/h2&gt;

&lt;p&gt;A polished website builds confidence. An enquiry form gives interested visitors a way to reach you. But the real opportunity begins when someone asks about your services.&lt;/p&gt;

&lt;p&gt;With Formgrid.dev, you can bring the pieces together: &lt;strong&gt;generate a complete website with AI, customize it, publish it, collect enquiries, and manage the next steps in one dashboard.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You don't have to start by learning a website framework, configuring a form backend, and connecting a separate CRM just to handle your first customer enquiry.&lt;/p&gt;

&lt;p&gt;Start with one website. Add a form for the action you want visitors to take, whether that's &lt;strong&gt;Request a Quote&lt;/strong&gt;, &lt;strong&gt;Ask About Availability&lt;/strong&gt;, or &lt;strong&gt;Book an Enquiry&lt;/strong&gt;. Publish it, test the form, and see how your leads move through the pipeline.&lt;/p&gt;

&lt;p&gt;Then, when you're ready to create more websites or use your own domain, explore the paid plans.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Create your business website with Formgrid.dev&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I build Formgrid.dev. This guide is based on its current website builder, form, and lead management implementation. Some workflows are still being verified end-to-end; check current features and pricing before subscribing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>aiwebsite</category>
      <category>aigeneratedwebsite</category>
      <category>businesswebsite</category>
    </item>
    <item>
      <title>How to Manage Form Submissions Across Multiple Client Websites Without Building a Backend</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Fri, 06 Nov 2026 09:51:57 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-to-manage-form-submissions-across-multiple-client-websites-without-building-a-backend-458j</link>
      <guid>https://dev.to/allenarduino/how-to-manage-form-submissions-across-multiple-client-websites-without-building-a-backend-458j</guid>
      <description>&lt;p&gt;You build a contact form for one client. Then another. Then another.&lt;/p&gt;

&lt;p&gt;Soon, you're managing a restaurant website, a roofing company's quote form, a photographer's booking enquiries, and a local gym's membership requests.&lt;/p&gt;

&lt;p&gt;The frontend isn't the hard part. The difficult part is everything that happens &lt;strong&gt;after someone clicks Submit&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which client's inbox should receive the notification?&lt;/li&gt;
&lt;li&gt;Where can you find a submission from three weeks ago?&lt;/li&gt;
&lt;li&gt;How do you keep one client's enquiries separate from another's?&lt;/li&gt;
&lt;li&gt;Who follows up with the potential customer?&lt;/li&gt;
&lt;li&gt;What happens when a form starts receiving spam?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You could maintain a separate Express API, database, and email configuration for every client. But most small-business contact forms don't need that much infrastructure.&lt;/p&gt;

&lt;p&gt;In this guide, I'll show you a practical way to manage &lt;strong&gt;multiple client website form submissions&lt;/strong&gt; using &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid&lt;/a&gt;, while keeping each client's website design and frontend code intact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The goal:&lt;/strong&gt; one repeatable workflow for creating endpoints, organizing client projects, routing notifications, testing submissions, and tracking leads.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Quick answer:&lt;/strong&gt; Create a separate project for each client, add a form for each website workflow, connect the website to its unique submission endpoint, configure client-specific notifications, and test the full journey. A hosted form backend handles submission processing so you don't have to deploy a new API for every website.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why managing five contact forms is different from managing one
&lt;/h2&gt;

&lt;p&gt;For one website, sending submissions to an email inbox might be enough. With multiple clients, that approach becomes difficult to maintain.&lt;/p&gt;

&lt;p&gt;Imagine this portfolio:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Client&lt;/th&gt;
&lt;th&gt;Website form&lt;/th&gt;
&lt;th&gt;Who needs the enquiry?&lt;/th&gt;
&lt;th&gt;Next action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Roofing company&lt;/td&gt;
&lt;td&gt;Request a quote&lt;/td&gt;
&lt;td&gt;Business owner&lt;/td&gt;
&lt;td&gt;Schedule a site visit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Photographer&lt;/td&gt;
&lt;td&gt;Booking enquiry&lt;/td&gt;
&lt;td&gt;Photographer&lt;/td&gt;
&lt;td&gt;Confirm availability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restaurant&lt;/td&gt;
&lt;td&gt;Private event enquiry&lt;/td&gt;
&lt;td&gt;Manager&lt;/td&gt;
&lt;td&gt;Send an event proposal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local gym&lt;/td&gt;
&lt;td&gt;Membership enquiry&lt;/td&gt;
&lt;td&gt;Membership team&lt;/td&gt;
&lt;td&gt;Arrange a tour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Design agency&lt;/td&gt;
&lt;td&gt;Project enquiry&lt;/td&gt;
&lt;td&gt;Agency owner&lt;/td&gt;
&lt;td&gt;Qualify the lead&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are different workflows, even though they all start with an HTML form.&lt;/p&gt;

&lt;p&gt;A good setup needs &lt;strong&gt;separation, predictable notifications, and a clear follow-up process&lt;/strong&gt;. Otherwise, the developer becomes the person forwarding messages and investigating missing enquiries.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple architecture for multiple client websites
&lt;/h2&gt;

&lt;p&gt;Each client website keeps its own form. The website submits to its own Formgrid endpoint. Formgrid receives the submission and makes it available in the corresponding form's dashboard, with notifications configured for that client.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fformgrid.dev%2Fgifs%2Flead-pipeline-demo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fformgrid.dev%2Fgifs%2Flead-pipeline-demo.gif" alt="Formgrid lead pipeline demonstration showing how enquiries can be organized after submission" width="479" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;One submission workflow can be reused across different client websites, while each form keeps its own endpoint and lead records.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This approach works particularly well for brochure websites, portfolios, and small-business enquiry forms. It may not replace a custom backend for complex booking transactions, sensitive regulated data, or workflows requiring specialized server-side logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Organize your clients into separate projects
&lt;/h2&gt;

&lt;p&gt;Start with a &lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Formgrid account&lt;/a&gt;. Formgrid provides a default project, but if you're managing several websites, use a separate project for each client when your plan allows it.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Roofing Company&lt;/strong&gt;: Quote Request and General Contact&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Photography Studio&lt;/strong&gt;: Booking Enquiry and Contact&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restaurant&lt;/strong&gt;: Private Events and Catering Enquiry&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Gym&lt;/strong&gt;: Membership Enquiry&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F48lzi6mlfe8mz9fiec7j.png" alt="Formgrid project selector showing how different client websites can be organized into separate projects" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Separate projects make it easier to identify the correct client before editing a form or reviewing submissions.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agency tip:&lt;/strong&gt; Use a consistent naming convention such as &lt;code&gt;Client Name / Website&lt;/code&gt; for projects and &lt;code&gt;Contact&lt;/code&gt;, &lt;code&gt;Quote Request&lt;/code&gt;, or &lt;code&gt;Booking Enquiry&lt;/code&gt; for forms. Avoid naming everything &lt;code&gt;New form&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Project allowances depend on your subscription. Check &lt;a href="https://formgrid.dev/pricing" rel="noopener noreferrer"&gt;current Formgrid pricing&lt;/a&gt; before setting up a large client portfolio.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create a form for each client workflow
&lt;/h2&gt;

&lt;p&gt;Inside the appropriate project, open &lt;strong&gt;Forms&lt;/strong&gt; and create a new form.&lt;/p&gt;

&lt;p&gt;For the roofing company, name it &lt;code&gt;Roofing Quote Request&lt;/code&gt;. For the photographer, create &lt;code&gt;Photography Booking Enquiry&lt;/code&gt; in a different project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4go06kae8so5taw4rixa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4go06kae8so5taw4rixa.png" alt="Formgrid create-form dialog showing form name and project selection" width="800" height="602"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Create each form in the correct project so its submissions stay associated with the right client.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After creation, open &lt;strong&gt;Configure Form&lt;/strong&gt;. The Overview page provides a submission endpoint, which looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://formgrid.dev/api/f/your-endpoint-slug
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6xcp5ymi5o7athceae7d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6xcp5ymi5o7athceae7d.png" alt="Formgrid.dev form overview showing the generated endpoint and copy action" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Copy the unique endpoint for the form you're integrating. Don't reuse one client's endpoint on another client's website.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The endpoint slug is generated for that form. Copy it from the dashboard rather than typing or guessing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Connect each client's existing contact form
&lt;/h2&gt;

&lt;p&gt;You don't need to rebuild the frontend. If a client's website already has an HTML contact form, update its &lt;code&gt;action&lt;/code&gt; and &lt;code&gt;method&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://formgrid.dev/api/f/your-endpoint-slug"&lt;/span&gt; &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Email&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;How can we help?&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Send enquiry&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;your-endpoint-slug&lt;/code&gt; with the endpoint belonging to that client's form.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;name&lt;/code&gt; attributes matter: they determine which values are included in the HTML form submission. Keep your existing CSS, Tailwind classes, and responsive layout.&lt;/p&gt;

&lt;p&gt;For a second client, use the same pattern with a &lt;strong&gt;different endpoint&lt;/strong&gt;. You can also add fields specific to the business, such as &lt;code&gt;service&lt;/code&gt;, &lt;code&gt;preferred_date&lt;/code&gt;, or &lt;code&gt;project_budget&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using React or Next.js?&lt;/strong&gt; You can submit &lt;code&gt;FormData&lt;/code&gt; with &lt;code&gt;fetch&lt;/code&gt; from the frontend, using the exact response-handling example in Formgrid's current code snippets. Test the API response and any CAPTCHA requirements before shipping. You don't need to create a new Next.js API route solely to forward a standard contact enquiry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Send notifications to the right client
&lt;/h2&gt;

&lt;p&gt;This is one of the most important steps for an agency.&lt;/p&gt;

&lt;p&gt;A quote request for the roofing company should go to the roofing company, not the photographer or your personal inbox.&lt;/p&gt;

&lt;p&gt;In the form's settings, enable notifications and configure the intended recipient address.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" alt="Formgrid notification settings showing recipient email configuration" width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Set notification recipients separately for each client's form.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Form&lt;/th&gt;
&lt;th&gt;Example recipient&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Roofing Quote Request&lt;/td&gt;
&lt;td&gt;&lt;code&gt;quotes@roofing-example.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Photography Booking&lt;/td&gt;
&lt;td&gt;&lt;code&gt;bookings@photo-example.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restaurant Events&lt;/td&gt;
&lt;td&gt;&lt;code&gt;events@restaurant-example.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are illustrative addresses, not real businesses.&lt;/p&gt;

&lt;p&gt;The client can receive notification emails without needing to log in to your developer account. If they need to review or update lead statuses themselves, consider the project collaboration options discussed below.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; A stored submission and a successfully delivered notification are different things. Test both before handing over the website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Protect each form against spam
&lt;/h2&gt;

&lt;p&gt;A spam problem on one client's website shouldn't dictate the settings for every other website.&lt;/p&gt;

&lt;p&gt;Formgrid supports protections such as honeypots, rate limiting, allowed domains, and configurable CAPTCHA. Review the relevant controls for each form.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" alt="Formgrid spam protection settings showing available form security controls" width="800" height="586"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Configure spam controls according to each website's needs and test again after enabling them.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A few practical rules:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add a honeypot field to compatible custom HTML forms if you're using that protection.&lt;/li&gt;
&lt;li&gt;Configure allowed domains for the relevant website, but don't treat domain restrictions as complete security for a public endpoint.&lt;/li&gt;
&lt;li&gt;If you require CAPTCHA, integrate its token into the actual website form. Simply enabling mandatory CAPTCHA without updating the frontend can break legitimate submissions.&lt;/li&gt;
&lt;li&gt;Review spam filtering and rate limits when testing several times from the same network.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Spam controls reduce noise, but no public contact form is guaranteed to be spam-free.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Test every client's submission flow before launch
&lt;/h2&gt;

&lt;p&gt;A successful browser message isn't enough. For &lt;strong&gt;each website&lt;/strong&gt;, submit a test enquiry and verify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The form sends data to the correct endpoint.&lt;/li&gt;
&lt;li&gt;The record appears under the correct client project and form.&lt;/li&gt;
&lt;li&gt;The expected fields are stored.&lt;/li&gt;
&lt;li&gt;The intended recipient receives the email notification.&lt;/li&gt;
&lt;li&gt;The submission wasn't incorrectly filtered as spam.&lt;/li&gt;
&lt;li&gt;The website displays an appropriate success or error message.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ce2tkjdndex4f1gwkk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ce2tkjdndex4f1gwkk7.png" alt="Formgrid submissions dashboard showing received contact form enquiries" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Check the actual dashboard record instead of relying only on a frontend success message.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Repeat this checklist whenever you migrate a site, replace a form, change a domain, or enable a new spam setting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Help clients manage leads, not just receive emails
&lt;/h2&gt;

&lt;p&gt;A form backend solves the technical submission problem. But clients usually care about a business outcome: &lt;strong&gt;did someone follow up with the enquiry?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Suppose the roofing company receives a quote request. The owner calls the homeowner, schedules a visit, and eventually wins the job.&lt;/p&gt;

&lt;p&gt;If the enquiry lives only in an inbox, the team may lose track of its status. Formgrid's built-in lead pipeline provides a lightweight way to manage that process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" alt="Formgrid lead pipeline showing New, Contacted, and Converted stages" width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Review submissions as leads and track whether someone has followed up.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The default workflow includes &lt;strong&gt;New&lt;/strong&gt;, &lt;strong&gt;Contacted&lt;/strong&gt;, and &lt;strong&gt;Converted&lt;/strong&gt; stages. Users can also add notes and follow-up dates.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" alt="Formgrid lead details showing notes and follow-up information" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Keep context and next steps attached to the enquiry rather than relying on email threads alone.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For an agency, this creates a clearer handover: you're not just delivering a contact form that works, you're helping the client manage what happens after the form is submitted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Decide who should own and access each client project
&lt;/h2&gt;

&lt;p&gt;There are two reasonable approaches, depending on the relationship.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;th&gt;Consideration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Agency-managed project&lt;/td&gt;
&lt;td&gt;You maintain forms and integrations for the client&lt;/td&gt;
&lt;td&gt;Agree on access and ownership expectations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Client-owned account&lt;/td&gt;
&lt;td&gt;Client wants full independent ownership&lt;/td&gt;
&lt;td&gt;Set up forms under their account from the beginning&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Formgrid's Business collaboration workflow supports inviting clients to specific projects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fap03sa78pl8eddflsncd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fap03sa78pl8eddflsncd.png" alt="Formgrid project invitation settings showing collaboration options" width="800" height="559"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Project invitations can help clients access their own project when collaboration is appropriate.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Access caution:&lt;/strong&gt; Don't promise guaranteed read-only access or fine-grained permission enforcement without verifying the current backend behavior. Invite trusted collaborators, review their permissions, and avoid treating an invitation as an ownership transfer.&lt;/p&gt;

&lt;p&gt;If your client must independently control the account and billing, creating the project under their own account may be the cleaner arrangement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 9: Use the visual builder when a client doesn't have an existing form
&lt;/h2&gt;

&lt;p&gt;Not every client website needs a hand-coded contact form. If you're starting from scratch, Formgrid also has a visual builder.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" alt="Formgrid visual form builder with name, email, and message fields" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Build and customize a form visually, then publish it to make its hosted version available.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The builder supports a separate publishing step. Once published, you can share the hosted URL or use the available embed options. For clients with existing branded HTML forms, the endpoint approach may offer more control over the frontend.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should agencies look for in a form backend?
&lt;/h2&gt;

&lt;p&gt;Before committing to any hosted service, evaluate the operational details, not just the sign-up price.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Why it matters for multiple clients&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Separate projects or workspaces&lt;/td&gt;
&lt;td&gt;Prevents confusion between client forms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unique form endpoints&lt;/td&gt;
&lt;td&gt;Keeps submissions associated with the right website&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recipient configuration&lt;/td&gt;
&lt;td&gt;Sends enquiries to the correct business&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spam protection&lt;/td&gt;
&lt;td&gt;Reduces junk in client inboxes and lead records&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Submission history&lt;/td&gt;
&lt;td&gt;Helps investigate missing or delayed enquiries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lead follow-up tools&lt;/td&gt;
&lt;td&gt;Gives clients a process after receiving an enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Collaboration and ownership&lt;/td&gt;
&lt;td&gt;Supports a sensible client handover&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clear account-wide limits&lt;/td&gt;
&lt;td&gt;Avoids surprises as the agency adds more websites&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One especially important billing detail: &lt;strong&gt;check whether submission limits are account-wide or per form&lt;/strong&gt;. An agency with ten low-volume websites may have very different needs from one client running a high-traffic campaign.&lt;/p&gt;

&lt;p&gt;See &lt;a href="https://formgrid.dev/pricing" rel="noopener noreferrer"&gt;Formgrid pricing&lt;/a&gt; for current allowances and plan features.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common problems when managing multiple client forms
&lt;/h2&gt;

&lt;h3&gt;
  
  
  A submission appears under the wrong client
&lt;/h3&gt;

&lt;p&gt;Check which endpoint was copied into the website. Each client form needs its own generated endpoint. Also verify that you're viewing the correct project in the dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  The client isn't receiving notifications
&lt;/h3&gt;

&lt;p&gt;Confirm that notifications are enabled and the recipient address is correct. Check spam folders and verify whether the submission was actually stored. An email delivery problem doesn't necessarily mean the form submission failed.&lt;/p&gt;

&lt;h3&gt;
  
  
  The form worked before CAPTCHA was enabled
&lt;/h3&gt;

&lt;p&gt;Mandatory CAPTCHA may require additional frontend integration. Verify that the website submits the expected token, then retest the complete workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  The website reports a 403 or 429 response
&lt;/h3&gt;

&lt;p&gt;Review allowed-domain settings, CAPTCHA requirements, rate limits, and usage allowances. Don't assume every rejected request has the same cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  The client wants their own dashboard login
&lt;/h3&gt;

&lt;p&gt;Consider project invitations where available, but verify permissions. If they need full independent control, discuss account ownership before launching the website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Do I need a separate backend for every client website?
&lt;/h3&gt;

&lt;p&gt;No. For ordinary contact and enquiry forms, you can use a hosted form backend and assign a separate submission endpoint to each form. More complex business logic may still justify a custom backend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I keep each client's existing website design?
&lt;/h3&gt;

&lt;p&gt;Yes. With an endpoint-based approach, you keep the existing HTML and CSS and update where the form submits. You don't have to replace the form with a hosted widget.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can multiple client websites use one Formgrid account?
&lt;/h3&gt;

&lt;p&gt;You can organize multiple websites with projects and forms, subject to your plan's project and usage limits. Keep client access and ownership requirements in mind.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can each client receive their own email notifications?
&lt;/h3&gt;

&lt;p&gt;Yes. Configure notification recipients for each form and verify delivery during testing. The number of available recipients depends on the plan and current product configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can clients track whether an enquiry was followed up?
&lt;/h3&gt;

&lt;p&gt;Formgrid provides lead stages, notes, and follow-up functionality. That helps a client distinguish a new enquiry from one already contacted or converted.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do clients need a Formgrid login to receive enquiry emails?
&lt;/h3&gt;

&lt;p&gt;Not necessarily. You can configure notification recipients without inviting the recipient into the project. Dashboard access is a separate decision.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Formgrid suitable for an agency managing many websites?
&lt;/h3&gt;

&lt;p&gt;It can be a good fit when the agency needs repeatable contact form endpoints, client project organization, notifications, and lightweight lead tracking. Check the current limits, access controls, and feature requirements before committing to a large deployment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts: build websites, not another submission API for every client
&lt;/h2&gt;

&lt;p&gt;When you're maintaining multiple client websites, the hidden cost isn't writing the form markup. It's keeping the submission infrastructure, notifications, spam protection, and follow-up process working across all those websites.&lt;/p&gt;

&lt;p&gt;A repeatable setup can remove much of that overhead:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One client project → one or more forms → unique endpoints → client notifications → tracked enquiries.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you're a freelance developer or agency looking for a way to manage those workflows without maintaining separate form backends, &lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;create a free Formgrid account&lt;/a&gt; and start with one client website.&lt;/p&gt;

&lt;p&gt;You can test the complete workflow before moving the rest of your clients over.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm the developer behind Formgrid. This tutorial uses Formgrid to demonstrate the workflow. Product features and plan allowances can change, so check the current dashboard and pricing page before publishing client-facing commitments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>clientwebsites</category>
      <category>freelancer</category>
      <category>webforms</category>
      <category>leadgeneration</category>
    </item>
    <item>
      <title>How to Build a Form That Sends Responses to Google Sheets</title>
      <dc:creator>Allen Jones</dc:creator>
      <pubDate>Thu, 05 Nov 2026 12:57:41 +0000</pubDate>
      <link>https://dev.to/allenarduino/how-to-build-a-form-that-sends-responses-to-google-sheets-4plc</link>
      <guid>https://dev.to/allenarduino/how-to-build-a-form-that-sends-responses-to-google-sheets-4plc</guid>
      <description>&lt;p&gt;You don't need to build a backend or manually copy enquiries into a spreadsheet to collect information from your website. With a form builder that integrates with Google Sheets, you can publish a form, collect responses, and keep your data organized automatically.&lt;/p&gt;

&lt;p&gt;But collecting responses is only half the job. If someone requests a quote, books a consultation, or asks about your services, you also need to know &lt;strong&gt;who should follow up and what happens next&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In this guide, you'll learn how to create a form with &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;Formgrid&lt;/a&gt;, connect submissions to Google Sheets, and manage incoming enquiries using its built-in lead pipeline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Want to try it as you read?&lt;/strong&gt; &lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Create a free Formgrid account&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you'll build
&lt;/h2&gt;

&lt;p&gt;By the end, you'll have a workflow like this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visitor fills out form → Formgrid receives submission → Google Sheets stores a row → You review and follow up with the lead.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This setup is useful for contact forms, quote requests, event registrations, client intake, and feedback forms. You can use Formgrid's hosted form builder or connect an existing HTML form to a Formgrid endpoint.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create a form in Formgrid
&lt;/h2&gt;

&lt;p&gt;Start by &lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;signing up for Formgrid&lt;/a&gt;. Create a project to organize your forms, then add a new form.&lt;/p&gt;

&lt;p&gt;If you want a hosted form without writing code, open the &lt;strong&gt;Form Builder&lt;/strong&gt;. Add the questions you need and adjust their order. For a service-business enquiry form, a useful starting point is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name&lt;/li&gt;
&lt;li&gt;Email address&lt;/li&gt;
&lt;li&gt;Service needed&lt;/li&gt;
&lt;li&gt;A short message describing the project&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keep the form focused. Asking for information you don't actually need can make it harder for visitors to complete.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhdsl55vlt34mrtmae12a.png" alt="Formgrid visual form builder showing the form editing interface" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Formgrid's visual builder lets you create and customize a form without building your own backend.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You can also start from a template and customize it for your use case.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8tx6lmi30cw3ps8oves9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8tx6lmi30cw3ps8oves9.png" alt="Formgrid form templates available as starting points" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Customize and publish your form
&lt;/h2&gt;

&lt;p&gt;Make your form easy to understand before you share it. Use descriptive labels, clearly mark required fields, and preview it on both desktop and mobile.&lt;/p&gt;

&lt;p&gt;In Formgrid's builder, click &lt;strong&gt;Preview&lt;/strong&gt; to check the respondent experience. When you're ready, click &lt;strong&gt;Publish&lt;/strong&gt;. Formgrid provides a hosted form URL that you can copy and share with customers or clients.&lt;/p&gt;

&lt;p&gt;You can also use the existing &lt;strong&gt;Embed&lt;/strong&gt; option to place a form on a website.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Open the published link in a private browser window and complete the form yourself. That helps you catch missing fields or unclear instructions before real visitors arrive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Connect Formgrid to Google Sheets
&lt;/h2&gt;

&lt;p&gt;If you want your team to work with submissions in a spreadsheet, configure the Google Sheets integration for the relevant form or project using the integration controls available in your Formgrid account.&lt;/p&gt;

&lt;p&gt;The exact labels and authorization steps may vary as the product evolves, but the general workflow is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open your form's &lt;strong&gt;Integrations&lt;/strong&gt; area.&lt;/li&gt;
&lt;li&gt;Find the &lt;strong&gt;Google Sheets&lt;/strong&gt; integration and connect your Google account if prompted.&lt;/li&gt;
&lt;li&gt;Select the destination spreadsheet and worksheet using the available integration options.&lt;/li&gt;
&lt;li&gt;Configure any required field mapping or synchronization settings.&lt;/li&gt;
&lt;li&gt;Save the integration and submit a test response.&lt;/li&gt;
&lt;li&gt;Open the spreadsheet to verify that the response was added correctly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Confirm the available Google Sheets options and plan limits in your account before relying on the integration for a production workflow. Do not assume that historical responses are automatically backfilled or that every spreadsheet layout is supported.&lt;/p&gt;

&lt;p&gt;A spreadsheet is especially helpful when you need to share structured responses with colleagues, filter records, or create your own reporting workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Use an existing website form instead (optional)
&lt;/h2&gt;

&lt;p&gt;Already have a contact form built with HTML, React, or Next.js? You don't need to rebuild it in a visual editor.&lt;/p&gt;

&lt;p&gt;Create a form in Formgrid, open &lt;strong&gt;Configure Form&lt;/strong&gt;, and copy its submission endpoint. The form details page includes HTML and JavaScript integration examples.&lt;/p&gt;

&lt;p&gt;A simple HTML form can look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;action=&lt;/span&gt;&lt;span class="s"&gt;"YOUR_FORMGRID_ENDPOINT"&lt;/span&gt; &lt;span class="na"&gt;method=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Name&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Email&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Message&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;textarea&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"message"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Send enquiry&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;YOUR_FORMGRID_ENDPOINT&lt;/code&gt; with the URL generated for your own form. Match field names to your configured submission requirements and test the actual response flow before deploying.&lt;/p&gt;

&lt;p&gt;This approach is useful for developers who want to keep full control over their website's design without maintaining a separate form-processing API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Turn submissions into leads, not just spreadsheet rows
&lt;/h2&gt;

&lt;p&gt;Google Sheets is useful for storing and organizing information. But when someone submits a quote request, the next question is usually: &lt;strong&gt;Has anyone followed up?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Formgrid includes a lead pipeline alongside form submissions. You can review enquiries and organize follow-up work without immediately moving everything into a larger CRM.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmh9ttyjsy50e8r83o96u.png" alt="Formgrid lead pipeline for organizing incoming website enquiries" width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Use the lead pipeline to see incoming enquiries and keep track of what needs attention.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For example, a web design agency might receive a new website enquiry, contact the prospect, and then move the lead through stages such as &lt;strong&gt;New&lt;/strong&gt;, &lt;strong&gt;Contacted&lt;/strong&gt;, and &lt;strong&gt;Converted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf1ge7rt089az0zdg2w.png" alt="Formgrid lead details showing notes and follow-up information" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Lead details can help keep conversations and next steps connected to the original submission.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That means your workflow can serve two purposes: Google Sheets for structured data and Formgrid for following up on potential customers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Set up email notifications and spam protection
&lt;/h2&gt;

&lt;p&gt;A spreadsheet connection is helpful, but you probably don't want to keep opening a sheet just to check whether someone contacted you.&lt;/p&gt;

&lt;p&gt;Configure Formgrid's notification settings so the appropriate recipient knows when a new submission arrives. Send a test submission and confirm the notification is delivered as expected.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foievg259nec9f4ql8j98.png" alt="Formgrid email notification configuration settings" width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Configure submission notifications so new enquiries don't go unnoticed.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Also review the spam protection options available for your form, such as honeypot fields, rate limiting, and CAPTCHA integrations where supported.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0ni4c3qcfjujv0hmcg4.png" alt="Formgrid spam protection configuration options" width="800" height="586"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Spam controls can help reduce unwanted submissions before they reach your workflow.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Common use cases
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Use case&lt;/th&gt;
&lt;th&gt;Information to collect&lt;/th&gt;
&lt;th&gt;What happens next&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Website contact form&lt;/td&gt;
&lt;td&gt;Name, email, message&lt;/td&gt;
&lt;td&gt;Notify the team and follow up&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quote request&lt;/td&gt;
&lt;td&gt;Service, project details, contact information&lt;/td&gt;
&lt;td&gt;Review and qualify the enquiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Event registration&lt;/td&gt;
&lt;td&gt;Attendee details and preferences&lt;/td&gt;
&lt;td&gt;Organize registrations in a sheet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Client intake&lt;/td&gt;
&lt;td&gt;Contact details and project requirements&lt;/td&gt;
&lt;td&gt;Assign next steps and track progress&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Feedback form&lt;/td&gt;
&lt;td&gt;Rating and comments&lt;/td&gt;
&lt;td&gt;Review patterns in the spreadsheet&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Choose the simplest form that captures enough information for the next action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Sheets alone vs. Google Sheets with a lead pipeline
&lt;/h2&gt;

&lt;p&gt;A spreadsheet is often enough for a list of registrations or survey answers. But it can become harder to manage when every row represents a potential customer who needs a response.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Need&lt;/th&gt;
&lt;th&gt;Google Sheets&lt;/th&gt;
&lt;th&gt;Formgrid lead pipeline&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Store structured responses&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Submissions are available in Formgrid&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Filter and analyze rows&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Focused on managing enquiries&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Track whether someone was contacted&lt;/td&gt;
&lt;td&gt;Requires your own process&lt;/td&gt;
&lt;td&gt;Lead stages support follow-up tracking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep notes on a specific enquiry&lt;/td&gt;
&lt;td&gt;Possible, but manual&lt;/td&gt;
&lt;td&gt;Lead notes are part of the workflow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Organize next steps&lt;/td&gt;
&lt;td&gt;Requires your own process&lt;/td&gt;
&lt;td&gt;Follow-up functionality is available&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You don't necessarily have to choose one or the other. Use Sheets for spreadsheet workflows and Formgrid when you want a place to manage incoming enquiries.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I send website form submissions to Google Sheets automatically?
&lt;/h3&gt;

&lt;p&gt;Yes, when your form platform supports a Google Sheets integration and the connection is configured correctly. In Formgrid, check the integration options for your account, connect the destination sheet, and verify the result with a test submission.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need to write code to create a form?
&lt;/h3&gt;

&lt;p&gt;No. Formgrid offers a visual form builder for creating and publishing hosted forms. Developers can also connect an existing HTML or JavaScript form using a Formgrid submission endpoint.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I receive an email when someone submits my form?
&lt;/h3&gt;

&lt;p&gt;Formgrid supports submission email notifications. Configure the recipients and settings, then test delivery before relying on notifications for important enquiries.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens after someone fills out the form?
&lt;/h3&gt;

&lt;p&gt;The submission is received by Formgrid. Depending on your configured integrations, you can also send data to Google Sheets and review the enquiry in Formgrid's lead management interface.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Formgrid free?
&lt;/h3&gt;

&lt;p&gt;Formgrid offers a free tier and paid plans. Limits and integration availability vary by plan, so check the &lt;a href="https://formgrid.dev" rel="noopener noreferrer"&gt;current pricing and features&lt;/a&gt; before choosing a plan for a live workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Formgrid with React or Next.js?
&lt;/h3&gt;

&lt;p&gt;Yes. You can submit data to a Formgrid endpoint from a custom form. Use the integration example that matches your frontend and test the submission behavior, validation, and error handling.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build your first form and connect the workflow
&lt;/h2&gt;

&lt;p&gt;You don't need a complicated stack to collect website enquiries. Start with a short form, publish it or connect your existing website, and verify that a real submission reaches the right place.&lt;/p&gt;

&lt;p&gt;Then decide how your team will act on the response. Google Sheets can keep the data organized, while Formgrid's built-in lead pipeline helps you follow up instead of leaving enquiries sitting in a spreadsheet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://formgrid.dev/app/signup" rel="noopener noreferrer"&gt;Create your first form with Formgrid&lt;/a&gt;&lt;/strong&gt; and test the complete workflow from submission to follow-up.&lt;/p&gt;

</description>
      <category>formbuilder</category>
      <category>forms</category>
      <category>websites</category>
      <category>googlesheets</category>
    </item>
  </channel>
</rss>
