Changeset 3435676
- Timestamp:
- 01/09/2026 07:25:48 AM (3 months ago)
- Location:
- advanced-emt-payment-gateway/trunk
- Files:
-
- 2 edited
-
advanced-emt-payment-gateway.php (modified) (1 diff)
-
readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-emt-payment-gateway/trunk/advanced-emt-payment-gateway.php
r3435660 r3435676 5 5 * Plugin URI: https://wordpress.org/plugins/advanced-emt-payment-gateway/ 6 6 * Description: Accept Interac e-Transfer / Email Money Transfer (EMT) in WooCommerce with dynamic secret answers, order notes, and customizable instructions. Supports Block and Classic checkout. 7 * Version: 2.0. 07 * Version: 2.0.1 8 8 * Author: ipodguy79 9 9 * Author URI: https://profiles.wordpress.org/ipodguy79/ -
advanced-emt-payment-gateway/trunk/readme.txt
r3435660 r3435676 1 1 === Interac e-Transfer / Email Money Transfer (EMT) Gateway for WooCommerce === 2 2 Author: ipodguy79 3 Tags: woocommerce, payment, canada, e-transfer, gateway 3 Tags: woocommerce, payment, canada, e-transfer, gateway, interac, etransfer 4 4 Requires at least: 5.8 5 5 Tested up to: 6.9 … … 7 7 WC requires at least: 6.0 8 8 WC tested up to: 8.6 9 Stable tag: 2.0. 09 Stable tag: 2.0.1 10 10 License: GPL2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html 12 12 13 Accept Interac e-Transfer / Email Money Transfer (EMT) in WooCommerce . Block checkout, dynamic answers, clear instructions, optional discount.13 Accept Interac e-Transfer / Email Money Transfer (EMT) in WooCommerce with dynamic answers, clear customer instructions, optional discount, and a Pro upgrade for automated matching. 14 14 15 15 == Description == 16 16 17 A clean, reliable EMT gateway for Canadian stores. 18 Works with Classic and Block Checkout. Generates dynamic or static secret answers, shows instructions on Thank You, emails, and My Account, and optionally applies a checkout discount for EMT. 19 20 **Highlights** 21 - Block & Classic Checkout support 22 - Dynamic or static secret answers 23 - Placeholders: `[order]`, `[answer]`, `[discount]` 24 - Optional EMT discount with message 17 A clean, reliable EMT gateway for Canadian WooCommerce stores. 18 19 Customers place an order, then send an Interac e-Transfer. Your store shows clear payment instructions on: 20 - The Thank You page 21 - Order emails 22 - My Account → Order details 23 24 You can use a static password/answer, or generate dynamic answers per order. You can also offer a discount to encourage EMT. 25 26 = Core Features = 27 - Works with WooCommerce Classic Checkout and Block Checkout 28 - Static or dynamic secret answer 29 - Highly customizable instructions (with placeholders) 30 - Shows instructions in Thank You, emails, and My Account 31 - Optional EMT discount (percentage) + optional savings message 25 32 - Admin/debug friendly; HPOS-ready; translatable 26 33 34 = Pro Upgrade (Automation & Convenience) = 35 If you want the “stop waking me at 3am” features, upgrade to Pro. Pro adds tools that help you match incoming deposit emails to the correct order automatically (IMAP inbox watching) and avoid “same total” collisions (Auto-Match Cents). 36 37 You can upgrade from the plugin settings screen. 38 27 39 == Installation == 28 1. Upload to `/wp-content/plugins/advanced-emt-payment-gateway/` or install via WP Admin. 40 41 1. Upload to `/wp-content/plugins/advanced-emt-payment-gateway/` or install via WP Admin → Plugins → Add New. 29 42 2. Activate the plugin. 30 3. Go to **WooCommerce → Settings → Payments**, enable **Email Money Transfer (EMT)**, and configure. 43 3. Go to WooCommerce → Settings → Payments. 44 4. Enable “Email Money Transfer (EMT)” and configure the settings. 45 46 == Configuration (Recommended Setup) == 47 48 Go to: 49 WooCommerce → Settings → Payments → Email Money Transfer (EMT) → Manage 50 51 = 1) Basic EMT Settings = 52 These are the settings most stores need: 53 54 - Enable/Disable: turn EMT on. 55 - Title: what customers see at checkout (example: “Interac e-Transfer”). 56 - Description: short checkout text to reduce confusion (example: “Pay by EMT. Instructions shown after checkout.”). 57 - Secret Answer Mode: 58 - Static: you enter one answer and customers use it. 59 - Dynamic: the plugin generates an answer per order (less reuse, less confusion). 60 - Instructions: 61 Write your “send the EMT to X email + use password Y” instructions here. 62 63 = 2) Instruction Placeholders (Copy/Paste Safe) = 64 You can use placeholders inside your instructions: 65 66 - [order] → Order number 67 - [answer] → The secret answer/password for that order 68 - [amount] → Exact total the customer must send 69 - [discount] → Your discount percent 70 71 Example instruction template: 72 Send [amount] to payments@yourdomain.com. 73 Security answer: [answer] 74 Include order #[order] in the message. 75 76 = 3) EMT Discount (Optional) = 77 If you want to encourage EMT use: 78 - Discount Percent: enter a number like 3 (for 3%). 79 - Discount Message: optional. Use [discount] where you want the percent to appear. 80 If blank, the plugin uses a default “Save X% …” message. 81 82 83 84 == Pro Feature: Auto-Match Cents (Unique Totals) == 85 86 87 88 The biggest problem with “auto matching” is when multiple unpaid orders have the same total. 89 Auto-Match Cents solves this by applying a tiny extra discount (cents) so each EMT order total becomes unique. 90 91 How it works: 92 - At checkout, Pro can add a small “cents” discount line (for example, -$0.07). 93 - The customer sends the exact total shown. 94 - When your deposit email arrives, the plugin can match the amount to the exact unpaid order. 95 96 Settings: 97 - Enable Auto-Match Cents 98 - Auto-Match Min Cents (default 1 = $0.01) 99 - Auto-Match Max Cents (default 25 = $0.25) 100 - Auto-Match Window (Hours) (default 72) 101 When picking cents, the plugin avoids totals already used by unpaid EMT orders created in this window. 102 - Auto-Match Line Label 103 The label shown at checkout for the tiny cents discount (example: “EMT Auto-Match Discount”). 104 105 Recommended values (most stores): 106 - Min: 1 107 - Max: 25 108 - Window: 72 hours 109 110 Notes: 111 - This is still a DISCOUNT line (not a fee). It reduces the order total slightly. 112 - Keep the range small (1–25¢) so customers don’t feel “baited” or confused. 113 114 115 116 == Pro Feature: Auto-Confirm Orders via Inbox (IMAP) == 117 118 SEE SCREENSHOT 7 ON HOW TO FIND THE 7 DAY FREE TRIAL (For a limited time) 119 120 121 122 Pro can check a mailbox (via IMAP) for Interac deposit emails and automatically mark matching EMT orders as paid. 123 124 IMPORTANT: 125 - This requires the PHP IMAP extension on your server. 126 - Credentials are stored in WordPress options. Use a dedicated mailbox if possible. 127 128 = Best-Practice Setup (Do This Once) = 129 1) Create a dedicated mailbox used only for EMT deposit notifications. 130 (Example: etransfer@yourdomain.com) 131 2) Ensure deposit notifications for that mailbox go ONLY to that mailbox. 132 3) Turn on Auto-Match Cents (recommended) so totals are unique. 133 4) Configure IMAP settings and click “Test IMAP Connection”. 134 135 = IMAP Settings (Field-by-Field, Dummy-Proof) = 136 137 1) IMAP Username 138 Usually your full email address (example: you@domain.com). 139 Some hosts use only the mailbox name—check your provider’s “Mail client setup” page. 140 141 2) IMAP Password / App Password 142 Use your mailbox password for this email account. 143 If your email provider uses Two-Factor Authentication (2FA) and offers App Passwords (common with Gmail, Yahoo, Microsoft 365), you may need to use an App Password instead of your normal password. 144 Most “website email” accounts (cPanel/Plesk hosting email) do not have App Passwords—use the mailbox password you set in your hosting panel. 145 146 3) IMAP Host 147 This must be your provider’s IMAP server. 148 Examples: imap.gmail.com, imap.mail.yahoo.com, outlook.office365.com, or mail.yourdomain.com 149 App Passwords do not fix a wrong host—make sure Host/Port/Encryption are correct first. 150 151 4) IMAP Encryption 152 Most providers use SSL. 153 154 5) IMAP Port 155 Most providers use 993 for IMAP over SSL. 156 157 6) Mailbox / Folder 158 Default: INBOX 159 You can use a subfolder like INBOX/EMT if your mailbox supports it. 160 161 7) Skip Certificate Validation (advanced) 162 *NOTE*- Only enable this if your mail server uses a self-signed/invalid certificate and the connection test fails. 163 Leaving it off is more secure. 164 165 8) Inbox Check Interval (Minutes) 166 How often to check the mailbox (default 5). 167 Note: if your site relies on WP-Cron and has low traffic, the checks can be delayed. For best reliability, use server cron or WooCommerce Action Scheduler. 168 sites with regular visitors will not have to worry. 169 170 9) Subject Keywords (comma separated) 171 Only process emails whose subject contains at least one keyword (case-insensitive). 172 Defaults include: Interac, e-Transfer, eTransfer, Autodeposit, Auto Deposit, Deposit 173 174 10) Trusted Sender Addresses (comma separated) 175 Only emails from these senders can auto-confirm orders. 176 Default: notify@payments.interac.ca 177 Examples: 178 notify@payments.interac.ca, payments.interac.ca 179 180 11) From Contains (optional) 181 An extra filter to reduce false positives (example: interac, notify, etransfer, yourbank) 182 183 12) Mark Processed Emails as Seen 184 If enabled, processed emails are marked read/seen. 185 186 13) Order Completion Method 187 Controls how the order is marked paid. (Payment Complete is recommended.) 188 189 14) Matching Window (Hours) 190 Only match unpaid EMT orders created within this window. 191 192 = IMAP Connection Test = 193 Click “Test IMAP Connection”. 194 You should see Connected OK (green) or an error message (red). 195 196 == Troubleshooting (Common Problems) == 197 198 = “IMAP extension missing” = 199 Your server doesn’t have PHP IMAP enabled. Ask your host to enable the PHP IMAP extension. 200 201 = “Authentication failed” = 202 - Wrong username/password, or you need an App Password. 203 - Username is your email address. 204 - If you have 2FA enabled, create an App Password and use it. 205 - Some providers block IMAP until you enable IMAP access in the mailbox settings. 206 207 = “Could not connect / Host not found” = 208 - Wrong IMAP host. 209 - Wrong encryption or port. 210 Start with SSL + 993 and the provider’s documented host. 211 212 = “Certificate / SSL error” = 213 - Try enabling “Skip Certificate Validation” ONLY if your host uses a self-signed/invalid cert. 214 215 = Auto-Match isn’t finding matches = 216 - Make sure deposit notifications land in the mailbox/folder you configured. 217 - Confirm Trusted Senders includes the real sender address. 218 - Confirm Subject Keywords match your deposit email subjects. 219 - Enable Auto-Match Cents to prevent same-total collisions. 220 - Auto-Match is not going to match %100 of the orders, and that is mostly for security. if enough matches are not found it will be left for manual confirm. 31 221 32 222 == Frequently Asked Questions == … … 36 226 37 227 = Where do customers see EMT instructions? = 38 On the Thank You page, in emails, and in **My Account**for the order.228 On the Thank You page, in emails, and in My Account for the order. 39 229 40 230 = Can I offer a discount for using EMT? = … … 42 232 43 233 = What placeholders can I use? = 44 `[order]` (order number), `[answer]` (secret answer), `[discount]` (percent). 234 [order] (order number), [answer] (secret answer), [amount] (total to send), [discount] (percent). 235 236 = Does Pro store my mailbox credentials? = 237 Yes. IMAP credentials are stored in WordPress options. Use a dedicated mailbox for EMT deposits if possible, gmail recommended. 45 238 46 239 == Screenshots == … … 50 243 4. Thank You page showing EMT info 51 244 5. My Account order details with instructions 245 6. Pro: Auto-Match Cents settings 246 7. Pro: IMAP Auto-Confirm settings + Test Connection 52 247 53 248 == Changelog == 249 250 = 1.1.3 = 251 * New (Pro): Optional IMAP inbox watcher to auto-confirm EMT orders by matching deposit emails to the order's expected total. 252 * New (Pro): Inbox watcher settings (host/port/encryption/folder/filters) and safe de-duplication. 253 254 = 1.1.2 = 255 * New: [amount] placeholder for instructions (shows the exact total to send). 256 * New (Pro): Optional auto-match cents discount (1–25¢ by default) to make EMT totals unique for automatic inbox matching. 54 257 55 258 = 1.1.1 = … … 69 272 == Upgrade Notice == 70 273 71 = 1.1.1 = 72 Prevents HTML leaking into order notes/admin and adds a review prompt. No checkout UI changes needed. 274 = 2.0.1 = 275 Pro: Adds optional IMAP inbox auto-confirmation. 276 Adds optional auto-match cents + [amount] placeholder.
Note: See TracChangeset
for help on using the changeset viewer.