> ## Documentation Index
> Fetch the complete documentation index at: https://codking.tech/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# OTP Verification

OTP (One-Time Password) Verification is a security and validation layer that confirms the authenticity of a customer’s order by verifying their mobile number using a one-time code sent via SMS or WhatsApp.

## What is OTP Verification?

OTP Verification is a process where customers receive a unique, time-sensitive code on their mobile number, which they must enter to confirm their identity and order.

This ensures that:

* The phone number is valid and reachable
* The customer genuinely intends to place the order
* Fake or spam orders are reduced

***

## Why OTP Verification is Needed?

For COD businesses, unverified orders can directly impact profitability and operations. OTP verification helps solve these key challenges:

<CardGroup cols={2}>
  <Card title="High Return to Origin (RTO)" icon="truck-return">
    Up to **20%–40%** of COD orders can fail due to fake or unverified customers. OTP verification ensures only genuine buyers place orders, significantly reducing RTO losses.
  </Card>

  <Card title="Fake & Spam Orders" icon="shield-x">
    Invalid phone numbers, bots, and prank orders increase operational risk. OTP verification filters out non-serious users before the order is confirmed.
  </Card>

  <Card title="Low Customer Intent" icon="user-x">
    Without verification, customers may place orders casually without commitment. OTP confirmation ensures higher intent and improves order reliability.
  </Card>

  <Card title="Delivery Failures" icon="map-pin-off">
    Incorrect or unreachable contact details lead to failed deliveries. OTP verification validates the customer’s phone number before processing the order.
  </Card>
</CardGroup>

***

## Countries Where OTP Verification Works Best

OTP verification is highly effective in regions where COD is widely used, and order fraud rates are higher:

🇵🇭 Philippines (PH)

🇵🇰 Pakistan (PK)

🇮🇳 India (IN)

🇸🇦 Saudi Arabia (SA)

🇦🇪 United Arab Emirates (UAE)

🇺🇦 Ukraine (UA)

🇪🇬 Egypt (EG)

***

## OTP Verification Placements

COD King allows flexible placement of OTP verification based on your business needs. Let us understand them step by step for each placement:

### 1. Pre-Order Verification Step-by-Step Guide :

Pre-order OTP in the COD King app is a security feature that verifies a customer’s mobile number via a One-Time Password (OTP) ***before*** any order like Cash on Delivery (COD), is placed.

**DEMO VIDEO FOR REFERENCE**

<iframe src="https://www.youtube.com/embed/yCPBjrO2tFA" title="YouTube video player" frameborder="0" className="w-full aspect-video rounded-xl" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

The purpose of Pre-Order OTP in the COD King app is to **ensure order authenticity** and **reduce return-to-origin (RTO) losses** for Cash on Delivery (COD) orders. Now let's understand this step by step :

1. Open COD King → Settings, then click OTP verification under Checkout Widget.

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-01-open-otp-verification.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=92c93344e881e047b2b89bf2ec290b4e" alt="OTP verification in COD King Settings" width="1568" height="590" data-path="images/otp-01-open-otp-verification.png" />
</Frame>

2. The Pre-Order OTP Setup page opens

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-02-pre-order-setup.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=7dbdb64247a41971761933bb4d3ff829" alt="Pre-Order OTP Setup page" width="1568" height="590" data-path="images/otp-02-pre-order-setup.png" />
</Frame>

* Enable Theme Integration to proceed further; go to the COD King dashboard and click Open Theme in the Theme App Embed row

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-03-open-theme.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=c7ac9e8fecc8d4bac610a78c6429617f" alt="Open Theme button on the COD King dashboard" width="1568" height="590" data-path="images/otp-03-open-theme.png" />
</Frame>

* A new page will appear. Make sure to enable the extension and hit the Save button

<Frame>
  <img src="https://mintcdn.com/codking/vRMqErC0dH5S6dqT/images/Save.png?fit=max&auto=format&n=vRMqErC0dH5S6dqT&q=85&s=366e66c326a8ed00e8d9c40f66fac212" alt="Save" width="1887" height="912" data-path="images/Save.png" />
</Frame>

4. Once done, go back to the previous tab, open Settings → OTP verification and check Activate OTP Verification, then choose your countries under Settings (Required)

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-04-activate.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=a44aad1fa3b28a03a87917bbc7ee6ad3" alt="Activate OTP Verification checkbox" width="1568" height="590" data-path="images/otp-04-activate.png" />

  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-05-select-countries.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=83103314ef25d2f3f936a589f440aa69" alt="Select Countries under Settings (Required)" width="1568" height="590" data-path="images/otp-05-select-countries.png" />
</Frame>

* Go to UI customization → Customize → Delivery address and select the checkbox for Auto-fill shipping at checkout (India only)

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-06-autofill-shipping.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=ed84d1ea26d2f963c4f63b94a32c2953" alt="Auto-fill shipping at checkout (India only)" width="1568" height="590" data-path="images/otp-06-autofill-shipping.png" />
</Frame>

* Go to UI customization → Customize → Logo and colours and update the URL link of the image logo to appear in the OTP verification dialog box 

5. Open your Store and add a product to the cart to check for the OTP Verification

<Frame>
  <img src="https://mintcdn.com/codking/vRMqErC0dH5S6dqT/images/buy-now.png?fit=max&auto=format&n=vRMqErC0dH5S6dqT&q=85&s=5159d7643454d66e23c70c9a698e57c4" alt="Buy Now" width="1856" height="831" data-path="images/buy-now.png" />
</Frame>

6. You can see the checkout page open and see a pop-up to enter your number for OTP Verification

<Frame>
  <img src="https://mintcdn.com/codking/vRMqErC0dH5S6dqT/images/Done.png?fit=max&auto=format&n=vRMqErC0dH5S6dqT&q=85&s=cced1700aa2094797cb104f4128fd092" alt="Done" width="1051" height="892" data-path="images/Done.png" />
</Frame>

* Further down the OTP verification page, under Shipping method, if Hide COD Shipping Method is enabled, the customer will be directed to the checkout page with the COD option
* Under Where verification applies, the OTP pop-up will be shown only in selected countries based on customer IP. Shows everywhere if no countries are selected.
* We can also Blacklist the phone number; once done save the changes

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-07-advanced-settings.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=d6119537f1032dc45736d03c33318e38" alt="Shipping method and Where verification applies" width="1568" height="662" data-path="images/otp-07-advanced-settings.png" />
</Frame>

* Scroll back to the top of the OTP verification page and check the status next to OTP verification; it will be enabled as below

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-08-enabled-status.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=d10b1d256503e89e8723aa420478a828" alt="OTP verification Enabled status" width="1568" height="590" data-path="images/otp-08-enabled-status.png" />
</Frame>

* Now, if you go to the online store and buy a product, a dialog box will appear to enter the phone number to verify with the OTP to proceed further
* Once the phone number is entered, click Send Code. An OTP will be sent to the provided phone number.

<Frame>
  <img src="https://mintcdn.com/codking/4LWYK9sfokz51mrT/images/pre-otp-1.png?fit=max&auto=format&n=4LWYK9sfokz51mrT&q=85&s=72646f711ca5f8d89d66ec9e370ea4ea" alt="Pre Otp 1" width="927" height="902" data-path="images/pre-otp-1.png" />
</Frame>

* Only after entering the OTP will the checkout page be redirected

<Frame>
  <img src="https://mintcdn.com/codking/4LWYK9sfokz51mrT/images/Screenshot-2026-08-12-122500.png?fit=max&auto=format&n=4LWYK9sfokz51mrT&q=85&s=4b1d267d8fccbf570000d1970591f1d3" alt="Screenshot 2026 08 12 122500" width="1006" height="905" data-path="images/Screenshot-2026-08-12-122500.png" />
</Frame>

* **Test the Flow**
  * Place a test COD order.
  * Confirm that the OTP is triggered before checkout and must be verified to proceed
* **Monitor Performance**
  * Use the dashboard to track:
  * OTP success rates
  * RTO reduction
  * Verified customer data

<Frame>
  <img src="https://mintcdn.com/codking/vRMqErC0dH5S6dqT/images/save66.png?fit=max&auto=format&n=vRMqErC0dH5S6dqT&q=85&s=7b773e2c1ea77fc0e599f52bd2400505" alt="Save66" width="1907" height="472" data-path="images/save66.png" />
</Frame>

## One Pass Verification

One Pass Verification streamlines the order confirmation process by verifying customers in a single, seamless step—reducing friction while maintaining strong security.

* **One-Pass Verification:** Once a customer verifies the OTP, the verification data is stored in the browser cookies.
* **No repeated verification in the same store:** If the customer opens the same website in a new tab, they won't need to verify the OTP again.
* **Verification across multiple stores:** If the customer visits another store where both **COD King OTP Verification** and **One-Pass Verification** are enabled, they won't need to verify the OTP again.
* **Country selection for Pre-Order OTP Verification:** Select the country you want to display in the country dropdown for OTP verification.

<Info>
  One Pass Verification acts as a *single-step trust checkpoint*, confirming genuine customers instantly while eliminating the need for multiple OTP verifications—reducing friction and improving conversion rates.
</Info>

### 2. Checkout Page (Shopify Plus) Verification

Checkout page verification (Shopify Plus) acts as a *real-time trust checkpoint*, ensuring only genuine customers proceed with their orders.

## Shopify Plus Extension for OTP Verification

For Shopify Plus merchants, COD King offers a native checkout extension to ensure the following :

* **Real-time verification at checkout:** Add OTP authentication directly within Shopify Plus checkout to validate customers instantly.
* **Smart fraud prevention:** Filters out fake or high-risk orders before they are placed, reducing RTO and losses.
* **Seamless integration:** Built using Shopify Plus checkout extensions, ensuring zero disruption to the native checkout flow.
* **Flexible control:** Trigger OTP verification for all orders or selectively (e.g., Cash on Delivery).
* **Frictionless experience:** Fast, user-friendly verification that maintains a smooth buying journey.
* **Build trust & reliability:** Ensure only genuine customers complete purchases, improving order success rates.

<iframe src="https://www.youtube.com/embed/hebUv0sciBA" title="YouTube video player" frameborder="0" className="w-full aspect-video rounded-xl" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

### Step-by-Step Guide :

**Step 1: Access Shopify Admin**<br />Log in to your Shopify Plus admin panel and navigate to **Settings → Checkout**.

**Step 2: Open Checkout Customization**<br />Click on **Customize Checkout** to access the checkout editor powered by Shopify Plus extensions.

**Step 3: Add OTP Verification Extension**<br />From the extensions panel, add your OTP verification app (e.g., COD verification app) to the checkout flow.

**Step 4: Configure Placement**<br />Place the OTP verification block at the desired step (typically before payment or order confirmation).

**Step 5: Set Verification Rules**<br />Define when OTP should trigger—such as for all users, COD orders, or high-risk transactions.

**Step 6: Customize Verification Flow**<br />Edit messaging, branding, and user prompts to ensure a smooth and consistent checkout experience.

**Step 7: Save & Publish**<br />Save your changes and publish the checkout to make OTP verification live.

**Step 8: Test the Checkout Flow**<br />Run a test order to ensure OTP is sent, verified, and the checkout completes without issues.

<Info>
  Available for Shopify Plus plan only. With Shopify Plus checkout extensions, OTP verification becomes a seamless part of your checkout—helping you reduce fake orders, improve trust, and optimize conversions.
</Info>

### 3. Post-Order Verification Step-by-Step Guide :

Post-order OTP verification acts as a ***final security checkpoint***, ensuring the right customer receives the order.

**DEMO VIDEO FOR REFERENCE**

<iframe src="https://www.youtube.com/embed/kmPI6KACLRc" title="YouTube video player" frameborder="0" className="w-full aspect-video rounded-xl" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

By requiring a one-time password at delivery, it **confirms buyer intent**, **prevents fake COD orders**, and **safeguards transactions** from unauthorized handovers, Now let's understand this step by step :

1. **Install COD King App**
2. Go to the Shopify App Store and install the *COD King – Verify COD Orders* app.
3. **Enable Post Order OTP**
4. Navigate to Settings –> Post-order OTP verification (under COD Workflow)

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-09-open-post-order.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=8fc57585ac9d8c1d28448bf5a2b78e66" alt="Post-order OTP verification in COD King Settings" width="1568" height="590" data-path="images/otp-09-open-post-order.png" />
</Frame>

* The **After Order OTP verification** page opens

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-10-post-order-setup.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=c36f2a9b26f0f5621c75f5353376b9d3" alt="After Order OTP verification page" width="1568" height="590" data-path="images/otp-10-post-order-setup.png" />
</Frame>

* Check **Activate OTP verification** to activate this feature

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-11-activate-post-order.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=74526940c46156c3f166107ce1e1f456" alt="Activate OTP verification checkbox" width="1568" height="590" data-path="images/otp-11-activate-post-order.png" />

  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-12-activate-in-theme.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=427b45bf6fcebb91ae716d72362d3719" alt="Open Thank You Settings and Open Order Status Settings" width="1568" height="590" data-path="images/otp-12-activate-in-theme.png" />
</Frame>

5. **Activate in Theme**

* Open  Thank You Settings (under Activate in theme),
* Click on Add block, select the otp-cod-king-thankyou and save
* **Thank You page OTP preview**

<Frame>
  <img src="https://mintcdn.com/codking/vRMqErC0dH5S6dqT/images/Thnak-you.png?fit=max&auto=format&n=vRMqErC0dH5S6dqT&q=85&s=07e3e840f80be01ec18c74691c2cc2e3" alt="Thnak You" width="1891" height="876" data-path="images/Thnak-you.png" />
</Frame>

* Go back to previous settings and click Open Order Status Settings     
* Then click on Add block, select the otp-cod-king-order status and save

Order Status Page OTP Preview

<Frame>
  <img src="https://mintcdn.com/codking/4LWYK9sfokz51mrT/images/Screenshot-2026-08-12-123112.png?fit=max&auto=format&n=4LWYK9sfokz51mrT&q=85&s=245e33de6893913be0a1946b0f622426" alt="Screenshot 2026 08 12 123112" width="1537" height="881" data-path="images/Screenshot-2026-08-12-123112.png" />
</Frame>

* **Customize OTP Settings**
  * Choose the **OTP method**: SMS, WhatsApp, or both.
  * Set the **OTP auto-cancel time** (e.g., 5 minutes). If the order is not verified, it automatically cancels the order after the time expires
* We can also notify the customer when the order is auto-cancelled
* We can also delete the order from the Shopify store itself without leaving any trace
* Save the changes without fail

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-13-more-settings.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=2fd47688149aff1c96318f0ea2e2dede" alt="More Settings on the After Order OTP verification page" width="1568" height="590" data-path="images/otp-13-more-settings.png" />
</Frame>

* **Test the Flow**
  * Place a test COD order on your store.
  * After order placement, the customer receives an OTP.
  * The customer enters the OTP to confirm the order.
  * Verified orders are marked as “OTP verified” in Shopify.
* **Monitor Verified Orders**
  * Use the COD King dashboard to track:
  * Verified vs. unverified orders
  * OTP delivery success rate
  * RTO reduction metrics

<Frame>
  <img src="https://mintcdn.com/codking/vRMqErC0dH5S6dqT/images/save66.png?fit=max&auto=format&n=vRMqErC0dH5S6dqT&q=85&s=7b773e2c1ea77fc0e599f52bd2400505" alt="Save66" width="1907" height="472" data-path="images/save66.png" />
</Frame>

***

## WhatsApp Verification for COD Orders

WhatsApp Verification for COD Orders is a secure order confirmation process that verifies a customer's Cash on Delivery (COD) purchase through WhatsApp before the order is processed.

* Higher open and response rates compared to SMS
* Faster delivery of OTP codes
* Better customer engagement
* Ideal for regions with strong WhatsApp usage

## Step by Step Guide :

Follow these simple steps to enable WhatsApp OTP verification for your Cash on Delivery (COD) orders:

* Open the **COD King** app from your Shopify admin panel
* Navigate to the **Settings** section
* Find the **COD Workflow** group in the left sidebar
* Click **WhatsApp COD verification**
* Locate the **Send the verification link on WhatsApp** option

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-14-whatsapp-cod-verification.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=4d9c744ce8d93249257d105eae199e35" alt="WhatsApp COD verification settings" width="1568" height="590" data-path="images/otp-14-whatsapp-cod-verification.png" />
</Frame>

* Check the box to enable the feature
* Click **Save** to apply the changes.

**Whatsapp Preview Message**

<Frame>
  <img src="https://mintcdn.com/codking/eB0wOGR77E4GSgQJ/images/otp-15-whatsapp-preview.png?fit=max&auto=format&n=eB0wOGR77E4GSgQJ&q=85&s=ed31451543336448e8df2b955e21e148" alt="WhatsApp preview message" width="344" height="462" data-path="images/otp-15-whatsapp-preview.png" />
</Frame>

<Info>
  With WhatsApp verification in place, you can confidently confirm genuine orders, reduce RTO losses, and deliver a seamless customer experience.
</Info>

***

For any inquiries or support, please email us at [support@notifiktech.com](mailto:support@notifiktech.com). We’ll make sure to get back to you as soon as possible.

<Note>
  Exact settings, navigation paths, and UI elements may vary based on your COD King dashboard configuration and Shopify plan.
</Note>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.