
外掛標籤
開發者團隊
原文外掛簡介
Let visitors sign in with a one-time code instead of a password, and make sure WooCommerce orders come from a real phone number.
Mersal OTP replaces passwords with one-time codes. Visitors sign in or create an account with a code sent to their email or phone, and WooCommerce shops can confirm a buyer’s number before or after an order. Start free with email codes, magic links and Google sign-in, and add WhatsApp, Telegram, SMS and voice-call codes when you link a Mersal account.
Why Mersal OTP?
No more forgotten passwords. Customers type the code they receive and they are in. Fewer password resets, fewer support messages, fewer abandoned sign-ups.
Fewer fake orders. Confirm the buyer’s phone number before a cash-on-delivery order is placed, so you stop shipping to numbers that don’t answer.
Built for Arabic and English. The login form and the whole dashboard work in Arabic (right to left) and English, and switch with one click.
Free to start. Email codes, magic links, email + password and Google sign-in need no account and no subscription.
Every method in one place. Switch each sign-in method on or off from one screen, and set a fallback order so the next channel is tried automatically if one fails.
Works on its own, with no account
Email code login and sign-up — codes go out through WordPress’s own mail (wp_mail()).
Email magic link and email + password, if you want to offer them.
Sign in with Google — with your own Google Client ID, or the one from Site Kit by Google.
A modern login form ([mersal_otp] shortcode) with three themes, light and dark modes, Arabic and English, and an optional blank login page.
An international phone field with country codes and number auto-correction.
Active devices and sessions, and per-role redirects after sign-in.
Add WhatsApp, Telegram, SMS and voice with a Mersal account
With a Mersal account (mersal.it), the same form can also send codes by:
WhatsApp — including “customer sends the message” sign-in, which never makes your number message a stranger.
Telegram — through your bot or linked account, or by confirming the number inside Telegram.
SMS and voice call.
The Mersal Authenticator app (app code or one-tap approval).
WooCommerce checkout verification
Confirm the buyer’s phone number at the moment that suits your store:
When Place order is pressed (recommended) — the buyer fills the checkout normally, a window asks for the number and the order completes by itself. A “Back to the order” button keeps everything they typed.
On opening the checkout page, in the cart, or after the order (the thank-you page and order email ask the buyer to confirm).
Choose who is asked — every buyer, guests only, or first-time buyers — and which payment methods need it, for example cash on delivery only.
Members whose number is already verified are never asked again.
Security built in
Rate limiting per IP address and per phone number, with a cool-down period.
Honeypot field, and optional reCAPTCHA v3, Cloudflare Turnstile or hCaptcha.
Hide whether an account exists (anti-enumeration).
Forced verification for chosen roles, such as administrators and shop managers, after a password login.
Correct visitor IPs behind Cloudflare or a trusted reverse proxy.
Make it look like your site
Form designer with a live preview: accent colour, headline and code length.
Message templates for every code you send.
Your logo, colours and texts on the login and sign-up pages.
Messages sent through Mersal use the WhatsApp numbers, Telegram accounts and SMS senders on your Mersal account and are billed by Mersal according to your plan. Mersal is a paid messaging service; see the plans on mersal.it.
External services
The plugin connects to the services below. Nothing is sent to a service you have not set up or switched on.
Mersal (mersal.it)
Mersal OTP is the WordPress connector of the Mersal messaging service, operated by Mersal. It talks to mersal.it only after you link your Mersal account from the plugin’s dashboard (“Sign in with Mersal”):
Linking your account — /wordpress/sso opens in your browser so you can sign in; /api/wordpress/user/me checks the sign-in token and returns your account, plan and API key.
Reading your senders — /api/wordpress/gateways returns the WhatsApp numbers, Telegram accounts and bots, SMS senders and email gateways on your account (when you open the dashboard and hourly).
Sending a code — /api/whatsapp/send, /api/whatsapp/send-list, /api/telegram/send, /api/sms/send, /api/voice/otp and /api/email/send receive the visitor’s phone number or email address and the message carrying the code, when a visitor asks for a code by that method. /api/whatsapp/status, /api/whatsapp/message-status and /api/whatsapp/list-status report whether it was delivered or read.
Customer-sends-the-message and Telegram sign-in — /api/wordpress/reverse-otp/arm, /api/wordpress/reverse-otp/status, /api/wordpress/telegram-signin/arm and /api/wordpress/telegram-signin/status register a one-time sign-in request (phone number and a random token) and report when the visitor confirmed it.
Firebase phone verification — /api/wordpress/firebase/verify checks the token Google returned, when the SMS method runs through a Firebase gateway on your account.
Mersal Authenticator — /api/app/provision, /api/app/pair/mint, /api/auth/authenticator/verify, /api/auth/app-approval/start and /api/auth/app-approval/status, when a user pairs the app or signs in with it (phone number and app code). The app itself reaches mersal.it through your site at /api/app/pair/exchange, /api/app/approvals/list, /api/app/approvals/decide and /api/app/device/token; the site passes those requests on unchanged.
Account notifications — /api/wordpress/notifications returns messages from Mersal about your account, shown in the dashboard bell.
Each request carries the token or API key of your linked account, your site address and the plugin version. Nothing is sent to mersal.it before an account is linked, and disconnecting stops all requests.
Terms of service: https://mersal.it/pages/terms-of-service/135
Privacy policy: https://mersal.it/pages/privacy-policy/134
Google sign-in
When you switch on Google sign-in, the login form loads Google Identity Services from accounts.google.com, and the site exchanges and checks the visitor’s sign-in token with oauth2.googleapis.com and www.googleapis.com to read their name and email address.
Terms: https://policies.google.com/terms
Privacy: https://policies.google.com/privacy
Firebase (Google)
Only when your Mersal account has a Firebase gateway and SMS sign-in uses it. The Firebase JavaScript SDK is bundled with the plugin (assets/js/resources/firebase) and loads only when the visitor asks for an SMS code. It then sends the visitor’s phone number to Google’s Firebase Authentication service (identitytoolkit.googleapis.com), which runs an invisible reCAPTCHA check (www.google.com/recaptcha) and texts the code to that number.
Terms: https://firebase.google.com/terms
Privacy: https://firebase.google.com/support/privacy
reCAPTCHA, Cloudflare Turnstile, hCaptcha
Only the provider you choose on the Security screen, and only when the captcha is switched on: its script loads on the login form (www.google.com/recaptcha, challenges.cloudflare.com or js.hcaptcha.com), and the site sends the visitor’s captcha answer and IP address to its verification endpoint.
reCAPTCHA: https://policies.google.com/terms and https://policies.google.com/privacy
Cloudflare Turnstile: https://www.cloudflare.com/website-terms/ and https://www.cloudflare.com/privacypolicy/
hCaptcha: https://www.hcaptcha.com/terms and https://www.hcaptcha.com/privacy
ipapi.co (off by default)
To show where a signed-in device is, or to preselect a visitor’s country in the phone field, the plugin can look the visitor’s IP address up at ipapi.co. This is off unless you turn it on with add_filter( 'motp_ip_geolocation', '__return_true' ); — mention it in your privacy policy if you do. Without it, the plugin uses your server’s or Cloudflare’s country header, or WooCommerce’s own geolocation.
Terms: https://ipapi.co/terms/
Privacy: https://ipapi.co/privacy/
