Magento Customer Verification FOR COD

About Customer Verification FOR COD

While e-commerce companies want to make it easy for their customers to order via Cash on Delivery, they face a lot of issues in the form on cancellations and bogus orders. Companies try to optimize and streamline their operations and supply chain and these cancellations cost money and are a real pain to handle. When companies do not use cash on delivery verification, the operational costs become prohibitive and as a result, some companies have grudgingly moved towards purely online payments.

This extension helps you to verify the customer’s contact number and take their confirmation regarding the order which they have placed using your website portal.This would be required in case of Cash on Delivery orders.

When customer’s using Cash on Delivery as a payment method, they will be asked to enter a One-Time password in order to complete the order. This One- Time password will be sent to their billing address mobile number.

 

Feature
  • This extension will help you to avoid fake online cash on delivery orders by confirming the orders through OTP code confirmation.
  • Automatic SMS’s are triggered to the customer when he places a Cash on Delivery order online.
  • All details are captured in real time without any human intervention.
  • SMS verification message can be configured.
  • Automated number format checking.
  • Worked with any SMS gateway.

Note: The store owner must have to purchase the sms from sms provider and set the sms api detail and credential in admin along with sms message detail.

 

Installation

Your magento 2 extensions can be installed in a few minutes by going through these following steps

Step 1: Download/purchase the extension

Step 2: Unzip the file in a temporary directory

Step 3: Paste “CODOrderVerification” folder into MagentoRoot/app/code/Doyenhub directory.

Step 4: Disable the cache under System >> Cache Management

Step 5: Enter the following at the command line to setup extension:

bin/magento module:enable Doyenhub_CODOrderVerification –clear-static-content

bin/magento setup:upgrade

bin/magento setup:di:compile

bin/magento setup:static-content:deploy

bin/magento indexer:reindex

Note: Clear the store cache, clear your browser cache, domain cookies, and refresh the page.

If you change theme from admin you have to remove pub/static and re-deploy pub/static.

 

Uninstallation

Enter the following at the command line to setup extension:

bin/magento module:disable Doyenhub_CODOrderVerification –clear-static-content

bin/magento setup:upgrade

bin/magento setup:di:compile

bin/magento setup:static-content:deploy

 

User Manual

1. Go to, Store >> Configuration >> Doyenhub >> COD Order Verification

EnabledYes/No (Select ‘Yes’ to enable the extension)

2. Configure SMS gateway settings

Sending MethodGet/Post
Number FormatInternational number with or without + sign
UsernameSMS gateway username
PasswordSMS gateway password
Mobile NumberTest SMS receiver mobile number
URLSMS gateway url
ParametersSMS gateway parameters
Download SampleDownload the sample file of mobile number regular expression.
ExportDownload the file of mobile number regular expression.
ImportImport CSV of country mobile number regular expression.
Regex Replacepreg_replace pattern phone number format. By default, /\.| |\-|\(|\)/ replaces ‘.’, spaces, ‘-‘, ‘(‘ and ‘)’. Do not modify unless necessary.
Record LogsYes/no, Record logs when trying to submit SMS in doyenhub_codorder_verificationlogs.log. NOTE: Store in var/log folder
SMS Sending TestTest Now, your sms gateway is working or not.

3. OTP Labels and Messages

Title LinkAdd title of link for checkout page
Title LabelAdd label of title for checkout page
Place Order Error MessageAdd place order error message
OTP Send Error MessageAdd OTP send error message
OTP Send Success MessageAdd OTP send success message
OTP MessageAdd OTP message of COD verification, ##OTP## this variable used for OTP unique code.
Admin/Backend
1. Enable COD Order Verification
You can enable/disable COD order verification functionality as per your requirement.

2. SMS gateway settings

Sending Method: Get/Post

Number Format: International number with or without + sign

Username: SMS gateway username

Password: SMS gateway password

Mobile Number: Test SMS receiver mobile number

URL: SMS gateway url

Parameters: SMS gateway parameters
Download Sample: Download the sample file of mobile number regular expression

Export: Download the file of mobile number regular expression

Import: Import CSV of country mobile number regular expression

Regex Replace: preg_replace pattern phone number format. By default, /\.| |\-|\(|\)/ replaces ‘.’, spaces, ‘-‘, ‘(‘ and ‘)’. Do not modify unless necessary.

Record Logs: Yes/no, Record logs when trying to submit SMS in doyenhub_codorder_verificationlogs.log
NOTE: Store in var/log folder

SMS Sending Test: Test Now, your sms gateway is working or not.

3. OTP Labels and Messages

Title Link: Add title of link for checkout page

Title Label: Add label of title for checkout page

Place Order Error Message

OTP Send Error Message
OTP Send Success Message

OTP Message: Add OTP message of COD verification, ##OTP## this variable used for OTP unique code
Frontend
1. Checkout
When COD order verification is enabled it will display on checkout like below.
When clicking on this link OTP code will send to billing address mobile number and return with the appropriate message.
When you click on verify button you will get the appropriate icon for success and failure.
Demo Video

Leave a Reply

Your email address will not be published. Required fields are marked *