{"id":19653,"date":"2026-11-19T01:28:04","date_gmt":"2026-11-18T19:58:04","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/"},"modified":"2026-11-19T02:05:04","modified_gmt":"2026-11-18T20:35:04","slug":"otp-widget-shopify-fast2sms","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/","title":{"rendered":"Shopify OTP verification: add a mobile OTP box to your theme (Fast2SMS)"},"content":{"rendered":"<p>You can add mobile number OTP verification to a Shopify store with a theme section from the Fast2SMS <a href=\"\/help\/otp-verification-widget-fast2sms\/\">OTP widget<\/a> kit. Customers type their number, get a code by SMS or WhatsApp through <strong>Smart OTP<\/strong>, and the box confirms the number. One limit matters before you start: <strong>Shopify&#8217;s own forms cannot check the OTP token<\/strong>, so on those forms the check happens in the browser only. This guide shows the setup and how to enforce verification where it matters.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Verify customer numbers on Shopify<\/strong><p>Create a Smart OTP template and add an OTP box to your Shopify theme.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<p class=\"f2s-kit-wrap\"><a class=\"f2s-kit\" href=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/fast2sms-otp-widget-shopify.zip\" download><svg class=\"f2s-kit__icon\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"#7F56D9\" d=\"M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z\"\/><path fill=\"#FFFFFF\" d=\"M14 2v6h6\"\/><path fill=\"#FFFFFF\" d=\"M9 6h2v2H9zm2 2h2v2h-2zM9 10h2v2H9zm2 2h2v2h-2zm-2 2h4v4H9z\"\/><rect x=\"10\" y=\"15.4\" width=\"2\" height=\"1.6\" fill=\"#7F56D9\"\/><\/svg><span class=\"f2s-kit__text\"><strong>Download the Shopify OTP widget example (zip)<\/strong><span class=\"f2s-kit__meta\">fast2sms-otp-widget-shopify.zip &middot; 28 KB<\/span><\/span><span class=\"f2s-kit__btn\">Download .zip<\/span><\/a><\/p>\n<p class=\"f2s-kit-wrap\"><a class=\"f2s-kit\" href=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/fast2sms-otp-widget-all.zip\" download><svg class=\"f2s-kit__icon\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"#7F56D9\" d=\"M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z\"\/><path fill=\"#FFFFFF\" d=\"M14 2v6h6\"\/><path fill=\"#FFFFFF\" d=\"M9 6h2v2H9zm2 2h2v2h-2zM9 10h2v2H9zm2 2h2v2h-2zm-2 2h4v4H9z\"\/><rect x=\"10\" y=\"15.4\" width=\"2\" height=\"1.6\" fill=\"#7F56D9\"\/><\/svg><span class=\"f2s-kit__text\"><strong>Download the complete OTP widget kit (zip)<\/strong><span class=\"f2s-kit__meta\">fast2sms-otp-widget-all.zip &middot; 1 MB<\/span><\/span><span class=\"f2s-kit__btn\">Download .zip<\/span><\/a><\/p>\n<h2>How it works on Shopify<\/h2>\n<p>Shopify themes cannot run server code, and the Fast2SMS <a href=\"\/help\/api-key-find-reset\/\">API key<\/a> must never be in a theme. So the backend runs somewhere else:<\/p>\n<ol>\n<li>The theme section shows the OTP box and posts to <strong>your backend<\/strong>, for example <code>https:\/\/otp.yourstore.com\/f2s-otp<\/code>.<\/li>\n<li>The backend holds the API key and the OTP ID, checks its limits and calls Fast2SMS Smart OTP.<\/li>\n<li>After the right code, the browser gets a signed, one-time token.<\/li>\n<\/ol>\n<p>The Cloudflare Worker backend from the full kit is the easiest choice, and its free tier works. Any other backend in the kit works too (see the OTP widget overview).<\/p>\n<h2>Before you start<\/h2>\n<ul>\n<li>A Fast2SMS account with wallet balance.<\/li>\n<li>An approved DLT OTP template, or a WhatsApp Authentication or Utility template.<\/li>\n<li>Access to <strong>Online Store<\/strong> &gt; <strong>Themes<\/strong> &gt; <strong>Edit code<\/strong> in Shopify admin.<\/li>\n<li>A Cloudflare account (or another host) for the backend.<\/li>\n<\/ul>\n<h2>Set up OTP on your Shopify store<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Create a Smart OTP template and copy its OTP ID<\/h3>\n<p>In the Fast2SMS panel, open <strong>Smart OTP<\/strong> &gt; <strong>OTP Template List<\/strong> and click <strong>Add OTP Template<\/strong>. Pick <strong>SMS Channel<\/strong> with your approved DLT OTP template, or <strong>WhatsApp Channel<\/strong> with an approved Authentication or Utility template. You can add a fallback on the other channel. Then copy the 10-character <strong>OTP ID<\/strong> from the card. It decides the channel, the template and the fallback for every code the widget sends.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-28-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Smart OTP Template page with WhatsApp and SMS OTP template cards, each showing its OTP ID, sender or number, template ID and fallback\"><figcaption>Copy the OTP ID from the template card.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Deploy the backend with your key and store domains<\/h3>\n<p>Deploy the Cloudflare Worker backend from the full kit. Copy your key from <strong>API Key<\/strong> under UTILITY in the panel and set:<\/p>\n<pre><code class=\"language-bash\"># secrets\nFAST2SMS_API_KEY=YOUR_API_KEY\nF2S_TOKEN_SECRET=at-least-32-random-characters\n# settings\nF2S_OTP_ID=YOUR_OTP_ID\nF2S_ALLOWED_ORIGINS=https:\/\/www.yourstore.com,https:\/\/yourstore.myshopify.com<\/code><\/pre>\n<p><code>F2S_ALLOWED_ORIGINS<\/code> must list every domain your store opens on, so the backend accepts requests from your store pages and refuses other sites.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-30-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"API Key page with the masked Authorization Key, View and Reset buttons and the API Access switch turned on\"><figcaption>The key goes into your backend settings only.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Add the files to your theme<\/h3>\n<p>In Shopify admin, open <strong>Online Store<\/strong> &gt; <strong>Themes<\/strong>, then <strong>Edit code<\/strong> on your theme:<\/p>\n<ul>\n<li>Upload <code>assets\/f2s-otp-widget.min.js<\/code> as a new asset.<\/li>\n<li>Add <code>sections\/f2s-otp.liquid<\/code> as a new section.<\/li>\n<li>Optional: add <code>snippets\/f2s-otp-protect.liquid<\/code> as a new snippet.<\/li>\n<\/ul>\n<\/li>\n<li>\n<h3>Add the OTP verification section<\/h3>\n<p>Open the theme editor (<strong>Customize<\/strong>), click <strong>Add section<\/strong> and pick <strong>OTP verification<\/strong>. Set <strong>Backend URL<\/strong> to your backend, for example <code>https:\/\/otp.yourstore.com\/f2s-otp<\/code>. The section also has settings for the heading, an optional OTP ID, the button text, the text shown after verification, the button colour and spacing.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/otp-widget-phone-step-2x-1.webp\" width=\"520\" height=\"800\" loading=\"lazy\" decoding=\"async\" alt=\"The OTP widget on a plain test page: a mobile number field with +91 and a Send OTP button, and a form with a Verify mobile number button\"><figcaption>The same widget box, shown here on a plain test page, not in a Shopify theme.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Optional: make a theme form wait for OTP<\/h3>\n<p>Render the snippet after a form, for example in the register template:<\/p>\n<pre><code class=\"language-liquid\">{% render 'f2s-otp-protect',\n   form_selector: '#create_customer',\n   endpoint: 'https:\/\/otp.yourstore.com\/f2s-otp',\n   mobile_field: 'customer[phone]' %}<\/code><\/pre>\n<p>The form then cannot be submitted until the number is verified. Read the next section before you rely on it.<\/p>\n<\/li>\n<\/ol>\n<h2>What this does and does not stop on Shopify<\/h2>\n<div class=\"f2s-note f2s-note--warn\"><strong>Shopify&#8217;s own forms (register, contact, newsletter) post to Shopify, and Shopify cannot check the <code>f2s_token<\/code>.<\/strong> On those forms, the snippet only stops normal visitors who skip verification. It does not stop a bot that posts to Shopify directly.<\/div>\n<p>To <strong>enforce<\/strong> verification:<\/p>\n<ol>\n<li>Post the form to your backend instead of to Shopify.<\/li>\n<li>Check the token there with the kit&#8217;s <code>verifyToken<\/code> helper.<\/li>\n<li>Then create the customer or save the lead with the Shopify Admin API.<\/li>\n<\/ol>\n<p>For a discount code or gated content, have your backend check the token before it returns the code. Never print the code in the theme where anyone can read it.<\/p>\n<p>If you build a Shopify app, you can serve the backend under your store&#8217;s own domain with a Shopify App Proxy (<code>\/apps\/f2s-otp<\/code>). Then the box and the backend are on one origin and you need no CORS setting.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Stop fake numbers on your store<\/strong><p>Sign up for Fast2SMS and verify customer mobile numbers by SMS or WhatsApp.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<div class=\"f2s-note f2s-note--warn\"><strong>Never put the Fast2SMS API key in Liquid, theme settings or metafields.<\/strong> Visitors or staff can see all of them. The key lives only in the backend&#8217;s environment.<\/div>\n<h2>Limits and cost<\/h2>\n<p>The backend checks these before any paid call. On Cloudflare, the counters in Workers KV are approximate under heavy parallel load; for hard limits, add a Cloudflare WAF rate-limiting rule.<\/p>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Backend setting<\/th>\n<th>Default<\/th>\n<th>What it does<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>F2S_RESEND_WAIT<\/code><\/td>\n<td>30 seconds<\/td>\n<td>Wait between two sends to one number.<\/td>\n<\/tr>\n<tr>\n<td><code>F2S_LIMIT_PER_NUMBER<\/code><\/td>\n<td>5 per hour<\/td>\n<td>Sends to one mobile number.<\/td>\n<\/tr>\n<tr>\n<td><code>F2S_LIMIT_PER_IP<\/code><\/td>\n<td>20 per hour<\/td>\n<td>Sends from one IP address.<\/td>\n<\/tr>\n<tr>\n<td><code>F2S_LIMIT_VERIFY_PER_IP<\/code><\/td>\n<td>60 per hour<\/td>\n<td>Verify calls from one IP address.<\/td>\n<\/tr>\n<tr>\n<td><code>F2S_MAX_VERIFY<\/code><\/td>\n<td>5<\/td>\n<td>Wrong codes allowed for one code.<\/td>\n<\/tr>\n<tr>\n<td><code>F2S_TOKEN_TTL<\/code><\/td>\n<td>600 seconds<\/td>\n<td>How long the verified token lasts.<\/td>\n<\/tr>\n<tr>\n<td><code>F2S_CAPTCHA<\/code><\/td>\n<td>off<\/td>\n<td><code>turnstile<\/code> or <code>recaptcha<\/code>, with <code>F2S_CAPTCHA_SECRET<\/code>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>Resend sends the same code again.<\/strong> Fast2SMS allows it within 10 minutes of the first send, up to 5 sends in total. Sending a fresh code for a number cancels the older code. If the template has a fallback and the first channel fails, Fast2SMS sends the same code once on the other channel.<\/p>\n<p>Each send and each resend is charged at your Smart OTP rate. Verify is free. If a fallback message goes out on the second channel, that message is charged too, and so is a <strong>Test OTP<\/strong> from the template card, because it is a real send. See the current rates on the <a href=\"https:\/\/www.fast2sms.com\/otp-sms\">Smart OTP page<\/a>.<\/p>\n<div class=\"f2s-note f2s-volume\"><p><strong>Sending in bulk?<\/strong> For high OTP volumes our team offers discounted rates. <a href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Talk to our team<\/a> or see <a href=\"https:\/\/www.fast2sms.com\/bulk-sms-pricing\">OTP pricing<\/a>.<\/p><\/div>\n<h2>Test status<\/h2>\n<div class=\"f2s-note\">The Shopify example has <strong>not been run on a Shopify store yet<\/strong>; the Liquid files were reviewed only. The widget passed its browser tests. The Cloudflare Worker backend passed 47 checks in a Node stand-in for the Workers runtime, but not on Cloudflare itself. Test the section on a development theme and do one live send before you publish it.<\/div>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>Can I add OTP verification to Shopify without an app?<\/h3>\n<p>Yes. The OTP box is a theme section, and the backend runs outside Shopify, for example as a Cloudflare Worker. You do not need to build a Shopify app.<\/p>\n<h3>Will OTP stop fake registrations on Shopify?<\/h3>\n<p>It stops normal visitors who skip the OTP. It cannot stop bots that post to Shopify&#8217;s register form directly, because Shopify cannot check the token. To enforce it, post the form to your backend, check the token and create the customer with the Admin API.<\/p>\n<h3>Can I use OTP for cash on delivery orders?<\/h3>\n<p>You can verify the number with this widget, but Shopify checkout itself is not changed by a theme section. For order confirmation by OTP, see the COD guide linked below.<\/p>\n<h3>Where do I put my Fast2SMS API key?<\/h3>\n<p>Only in the backend&#8217;s secrets, for example the Worker secret <code>FAST2SMS_API_KEY<\/code>. Never in Liquid, theme settings or metafields.<\/p>\n<h3>Why does the box say the page is not allowed?<\/h3>\n<p>Your store domain is missing from <code>F2S_ALLOWED_ORIGINS<\/code>. Add every domain the store opens on, including the <code>myshopify.com<\/code> one.<\/p>\n<h3>Does Resend send a new code?<\/h3>\n<p>No. Resend sends the same code again, within 10 minutes and up to 5 sends in total. Each resend is charged.<\/p>\n<\/section>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Add OTP to your Shopify theme<\/strong><p>Create your Fast2SMS account, copy your OTP ID and deploy the backend.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"\/help\/smart-otp-setup-guide-fast2sms\/\">Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback<\/a><\/li>\n<li><a href=\"\/help\/cod-order-confirmation-otp\/\">Confirm COD orders with OTP to cut fake orders (Fast2SMS Smart OTP)<\/a><\/li>\n<li><a href=\"\/help\/bulk-sms-whatsapp-for-ecommerce\/\">Bulk SMS and WhatsApp for E-commerce and D2C Brands: Templates and Setup<\/a><\/li>\n<li><a href=\"\/help\/otp-sms-pumping-fraud-protection\/\">OTP fraud and SMS pumping: how to protect your OTP form and wallet<\/a><\/li>\n<li><a href=\"\/help\/otp-verification-signup-form\/\">OTP verification for signup forms: verify mobile numbers before creating accounts<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>You can add mobile number OTP verification to a Shopify store with a theme section from the Fast2SMS OTP widget kit. Customers type their number, get a code by SMS or WhatsApp through Smart OTP, and the box confirms the number. One limit matters before you start: Shopify&#8217;s own forms cannot check the OTP token, [&hellip;]<\/p>\n","protected":false},"featured_media":19636,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,32],"tags":[],"class_list":["post-19653","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-otp","category-shopify"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Shopify OTP Verification for Your Theme | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Add mobile OTP verification to a Shopify theme with the Fast2SMS OTP widget section, a separate backend, and what Shopify&#039;s own forms can and cannot check.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shopify OTP Verification for Your Theme | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Add mobile OTP verification to a Shopify theme with the Fast2SMS OTP widget section, a separate backend, and what Shopify&#039;s own forms can and cannot check.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/\" \/>\n<meta property=\"og:site_name\" content=\"Fast2SMS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Fast2SMS\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T19:58:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T20:35:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-28-scaled.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fast2sms\" \/>\n<meta name=\"twitter:site\" content=\"@fast2sms\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"Shopify OTP verification: add a mobile OTP box to your theme (Fast2SMS)\",\"datePublished\":\"2026-11-18T19:58:04+00:00\",\"dateModified\":\"2026-11-18T20:35:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/\"},\"wordCount\":1341,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-28-scaled.webp\",\"articleSection\":[\"OTP\",\"Shopify\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/\",\"name\":\"Shopify OTP Verification for Your Theme | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-28-scaled.webp\",\"datePublished\":\"2026-11-18T19:58:04+00:00\",\"dateModified\":\"2026-11-18T20:35:04+00:00\",\"description\":\"Add mobile OTP verification to a Shopify theme with the Fast2SMS OTP widget section, a separate backend, and what Shopify's own forms can and cannot check.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-28-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/smart-otp-template-list-hd-28-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"Smart OTP Template page with WhatsApp and SMS OTP template cards, each showing its OTP ID, sender or number, template ID and fallback\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-widget-shopify-fast2sms\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OTP\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Shopify OTP verification: add a mobile OTP box to your theme (Fast2SMS)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\",\"name\":\"Fast2SMS\",\"description\":\"Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"inLanguage\":\"en-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\",\"name\":\"Fast2SMS\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"caption\":\"Fast2SMS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\"},\"email\":\"support@fast2sms.com\",\"telephone\":\"+91-6262778822\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Fast2SMS\",\"https:\\\/\\\/www.instagram.com\\\/fast2sms\",\"https:\\\/\\\/x.com\\\/fast2sms\",\"https:\\\/\\\/www.youtube.com\\\/Fast2SMSofficial\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/fast2sms\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Shopify OTP Verification for Your Theme | Fast2SMS","description":"Add mobile OTP verification to a Shopify theme with the Fast2SMS OTP widget section, a separate backend, and what Shopify's own forms can and cannot check.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/","og_locale":"en_US","og_type":"article","og_title":"Shopify OTP Verification for Your Theme | Fast2SMS","og_description":"Add mobile OTP verification to a Shopify theme with the Fast2SMS OTP widget section, a separate backend, and what Shopify's own forms can and cannot check.","og_url":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-18T19:58:04+00:00","article_modified_time":"2026-11-18T20:35:04+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-28-scaled.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_creator":"@fast2sms","twitter_site":"@fast2sms","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"Shopify OTP verification: add a mobile OTP box to your theme (Fast2SMS)","datePublished":"2026-11-18T19:58:04+00:00","dateModified":"2026-11-18T20:35:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/"},"wordCount":1341,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-28-scaled.webp","articleSection":["OTP","Shopify"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/","url":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/","name":"Shopify OTP Verification for Your Theme | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-28-scaled.webp","datePublished":"2026-11-18T19:58:04+00:00","dateModified":"2026-11-18T20:35:04+00:00","description":"Add mobile OTP verification to a Shopify theme with the Fast2SMS OTP widget section, a separate backend, and what Shopify's own forms can and cannot check.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-28-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-template-list-hd-28-scaled.webp","width":2560,"height":1600,"caption":"Smart OTP Template page with WhatsApp and SMS OTP template cards, each showing its OTP ID, sender or number, template ID and fallback"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/otp-widget-shopify-fast2sms\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fast2sms.com\/help\/"},{"@type":"ListItem","position":2,"name":"OTP","item":"https:\/\/www.fast2sms.com\/help\/otp\/"},{"@type":"ListItem","position":3,"name":"Shopify OTP verification: add a mobile OTP box to your theme (Fast2SMS)"}]},{"@type":"WebSite","@id":"https:\/\/www.fast2sms.com\/help\/#website","url":"https:\/\/www.fast2sms.com\/help\/","name":"Fast2SMS","description":"Help","publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"inLanguage":"en-IN"},{"@type":"Organization","@id":"https:\/\/www.fast2sms.com\/#organization","name":"Fast2SMS","url":"https:\/\/www.fast2sms.com\/","logo":{"@type":"ImageObject","@id":"https:\/\/www.fast2sms.com\/#logo","url":"https:\/\/www.fast2sms.com\/Fast2SMS.png","contentUrl":"https:\/\/www.fast2sms.com\/Fast2SMS.png","caption":"Fast2SMS"},"image":{"@id":"https:\/\/www.fast2sms.com\/#logo"},"email":"support@fast2sms.com","telephone":"+91-6262778822","sameAs":["https:\/\/www.facebook.com\/Fast2SMS","https:\/\/www.instagram.com\/fast2sms","https:\/\/x.com\/fast2sms","https:\/\/www.youtube.com\/Fast2SMSofficial","https:\/\/www.linkedin.com\/company\/fast2sms"]}]}},"_links":{"self":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/19653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/comments?post=19653"}],"version-history":[{"count":1,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/19653\/revisions"}],"predecessor-version":[{"id":20047,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/19653\/revisions\/20047"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/19636"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=19653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=19653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=19653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}