2 minute read

Cash On Delivery Verification for Magento 2

Cash On Delivery Verification Extension for Magento 2 by MageComp helps store owners to avoid bogus & fake orders by verifying customers’ mobile number when they prefer cash on delivery payment method.

Advertisement

Table of Content

1. Configuration

2. SMS Gateway API Settings

3. OTP Text Settings

4. Test SMS API

5. COD Verification on Checkout

6. Phone Number Validation

1. Configuration

Note:

If you don’t want all SMS add-ons to be installed, you can go for any one SMS addon installation.

For example, Magecomp_Mobileloginmsg91

● SMS Addons are already added to our standard extension package.

● One SMS Addon is required to get a dropdown in SMS API configuration.

Once you have successfully installed the extension, go to Store -> Configuration to configure the extension for use.

● Cash On Delivery Verification: Option to enable or disable Cash on Delivery Verification extension.

● Custom title: Type title to display on store frontend checkout.

2. SMS Gateway API Settings

To verify customer mobile numbers for using the COD payment method, we have integrated the extension with 3 different API Gateways to send OTP messages.

● SMS Gateway: You can select your preferred SMS Gateway from the dropdown option.

● OTP String Type: Select the string type you want to use, either Numeric or Alphanumeric.

● OTP String Length: Select your OTP String length between 1 to 10.

Bulk SMS: By selecting “Bulk SMS” as Gateway, you need to enter the following details to send OTP texts.

MSG91: By selecting “MSG91” as Gateway, you need to enter the following details to send OTP texts.

Twilio: By selecting “Twilio” as Gateway, you need to enter the following details to send OTP texts.

3. OTP Text Settings

The admin can set custom text for sending OTP to customers’ mobile numbers.

● Send OTP Text: Set a custom message for OTP.

● Resend OTP Text: Set a custom message for resend OTP.

If you have selected Msg91 as your SMS Gateway and set DLT Template as your API, the OTP Text Settings will have the following fields.

If you have selected Msg91 as your SMS Gateway and set Campaign Name as your API, the OTP Text Settings will have the following fields.

4. Test SMS API

The extension features test extension functionality of sending OTP message. Simply enter the testing number and message to receive as a part of testing to check whether the functionality of sending OTP is working.

5. COD Verification on Checkout

Once customers add products to their cart, proceed to checkout and select cash on the delivery payment method, they are required to verify their mobile number through OTP. On click of the “Send OTP” button, the extension will send OTP to the billing address mobile number.

Once you get OTP, you have to add it in the text box and click the button to verify your mobile number. Else you can wait or use the “Resend OTP” button to send OTP again.

During the Cash on delivery verification process, if the customer aborts the operation and tries to proceed further, the extension will show an error.

6. Phone Number Validation

The admin can validate the mobile number based on the country.

This article is from: