

When to send (with the page-cache option) and the channels: choose an SMS gateway (Twilio, any HTTP API, WP SMS, Kavenegar or a developer hook) and turn SMS and email on per recipient.
Bring customers back to unpaid WooCommerce orders worldwide with SMS and email. Choose SMS, email, or both independently for customers and shop managers. Connect Twilio, any HTTP SMS API, the WP SMS plugin, another plugin through a developer hook, or Kavenegar for Iran. Email uses WordPress wp_mail, so it works with your SMTP or mail plugin.
How it works
SMS gateways and email
sahand_uos_sms_gateways filter.International phone numbers support + and 00 prefixes, Persian/Arabic digits, and a configurable default country code (98). New SMS gateways use E.164; Kavenegar retains Iranian mobile formatting.
Translation ready, with Persian translation sources included in the project. Compatible with WooCommerce High-Performance Order Storage (HPOS).
The optional “Keep messages on time on cached sites” feature is enabled by default. Its browser tick only calls your own site’s WordPress AJAX endpoint and sends no personal data; its request contains only the action name. It does not contact an external service. It checks at most once every 5 minutes per browser, with a site-wide 60-second lock and up to 5 due rescue checks per request.
This plugin connects to the Kavenegar SMS API (https://api.kavenegar.com), an Iranian SMS gateway, to send the text messages. It is used only when you choose Kavenegar as the gateway and enter your own Kavenegar API key; in Test mode no SMS is sent.
What is sent, and when:
Service provider: Kavenegar (https://kavenegar.com). API documentation: https://kavenegar.com/rest.html
Terms of service: Kavenegar’s terms of use are shown and accepted when you create your Kavenegar account: https://panel.kavenegar.com/Client/Membership/Register
Privacy policy: Kavenegar does not publish a separate privacy policy page; their terms and contact page are at https://kavenegar.com/support/about
Twilio
When Twilio is selected and configured, the plugin sends the recipient phone number and message text to https://api.twilio.com when an unpaid order is due, or when an administrator sends a test or runs an order manually. Requests include your Account SID, Auth Token and From number or Messaging Service SID. Message text includes only the placeholders you choose.
Terms: https://www.twilio.com/en-us/legal/tos
Privacy: https://www.twilio.com/en-us/legal/privacy
Custom HTTP API
Requests are sent only to the public HTTP/HTTPS URL the administrator enters, when that gateway is selected and a reminder, test or manual send runs. Requests contain the configured parameters (including phone number and message text where placeholders are used) and headers, which may include API credentials. Redirects are not followed. Review your chosen provider’s terms and privacy policy before configuring it. Requests occur only for enabled SMS deliveries.
WP SMS, developer hooks and email
WP SMS and the developer hook pass the phone number and message text to the installed plugin you select or implement. The hook also receives the order ID and recipient role. That integration controls its external service usage. Email passes the recipient address, subject and message body to wp_mail, using your site’s mail transport or configured SMTP/mail plugin. No external email API is built into this plugin.
sahand_uos_should_rescue (bool, WC_Order, reason): return false to skip an order.sahand_uos_message_vars (array, WC_Order, coupon): add or change placeholders.sahand_uos_rescued action (WC_Order, vars, reason): after messages were sent.sahand_uos_send_sms (null, to, text, context): handle SMS through another plugin; return true or an array with ok for success.sahand_uos_sms_gateways (array id => class): register gateways extending Sahand_UOS_Gateway.