Version 2.8 of the Scotiabank eCom+ Payment Gateway for WooCommerce plugin is now available. It is a security release, and we are asking every merchant with a live store to update as soon as they can.
This post also covers version 2.7, which shipped in October without a post of its own. Between the two releases, a lot has changed in how the plugin checks payment results, handles declines, processes refunds and renewals, and manages licences. Here is the full picture.
The security fix in 2.8
When a customer pays, Scotiabank’s hosted payment form sends the result back to your store through the customer’s browser. Scotiabank signs that result so it cannot be forged, but the signature only covers certain fields: the approval code, the amount, the currency and the request timestamp.
During a full review of the plugin this month, we found that earlier versions did not check the signed fields closely enough. In certain conditions, a payment result that had been altered or replayed on its way back through the browser could mark an order as paid when no money had been received.
Version 2.8 closes this. Every payment result is now verified against exactly the fields Scotiabank signs, and those fields are bound to what your store recorded for that payment attempt. The amount and currency must match the order. The timestamp must match the attempt. A transaction reference that already belongs to another order is refused. If any of these checks fail, the result is ignored and a note is added to the order so you can see what happened. Nothing else on the order changes.
We found this ourselves. It was not reported by a merchant and we have no indication it was used against any store. We are still treating it as urgent, because the protection it adds is the kind you want in place before anyone goes looking for it.
A declined payment no longer empties the cart
Before 2.8, a declined card sent the customer back to a page with an empty cart and a generic failure message. Many of them left.
Now a decline returns the customer to the payment page with Scotiabank’s reason shown and the cart exactly as it was. They can try another card or fix the problem and pay again. Paying a declined order again is treated as a fresh attempt, so there is no risk of the old, declined result being mixed up with the new one.
Refunds, captures and voids now check the answer
If you have Scotiabank’s API enabled, you can refund, capture and void from the WooCommerce order screen. In earlier versions the plugin treated any reply from Scotiabank as a success, as long as the request itself went through. A refund that Scotiabank declined could be recorded on the order as if it had been paid out.
Version 2.8 reads the transaction status in Scotiabank’s reply. A declined refund, capture or void is now recorded as declined, with Scotiabank’s reason in the order note, so you know to follow up.
Two related improvements: a capture or void that Scotiabank reports as already performed now completes or cancels the order instead of leaving it on hold with a button that does nothing, and the plugin now checks for a prior capture before attempting a void.
Safer subscription renewals (Premium)
If you run WooCommerce Subscriptions on the Premium plan, three things change.
A renewal that times out is held, not failed. When a renewal request to Scotiabank did not get a reply in time, earlier versions marked the renewal as failed. WooCommerce Subscriptions then retried it, and the retry could charge the card a second time. Now a renewal with no reply is placed on hold with instructions in the order note, so you can confirm what happened in Scotia Merchant Admin before anything is retried.
Renewals carry the WooCommerce order ID. Each renewal now sends its order ID to Scotiabank, so you can find it under the right order in Scotia Merchant Admin. The renewal order note names the Scotiabank order ID as well.
Declined renewals say why. The order note on a declined renewal now shows the reason Scotiabank gave, rather than just the word DECLINED.
Modal Checkout fixes
Two fixes for stores using the Modal Checkout flow introduced in 2.6. The hosted payment page was not delivering its result message to the modal, which left the modal relying on background polling alone to find out the payment had finished. That now works as intended, so the modal closes promptly. And the modal’s status check was failing on sites that use plain permalinks. Both are fixed.
Smaller changes
- The 30-day licence expiry warning is no longer shown to merchants on a monthly plan, where it made no sense
- Messages about pre-authorised payments now simply say the funds are captured later
- Your shared secrets are now shown as password fields in the settings screen, so they are not visible on screen or picked up by browser autofill
What changed in 2.7
Version 2.7 shipped in October and these changes are already live on stores that updated. If you skipped it, here is what you are getting with 2.8.
Live payments now require an active licence. Live payment processing is a Professional and Premium feature, and the plugin now checks for an active licence before accepting live payments. If your licence expires, live payments continue for a 7-day grace period with admin notices reminding you to renew. After that, the gateway is turned off and switched to sandbox mode until the licence is renewed. Existing subscription renewals, and refunds, captures and voids on existing orders, keep working regardless. Customers’ saved cards remain available, though saving new cards requires the Premium plan.
Sandbox mode is only shown to logged-in admins. Sandbox (test) mode now only appears at checkout for logged-in administrators and shop managers. A customer can never pay in test mode by mistake. If you are testing, make sure you are logged in to your WordPress account or you will not see the payment method.
Test-mode orders are clearly marked in the orders list and on the order screen.
Renewals, refunds, captures and voids always use the right environment. They now run in the environment the original order was paid in, sandbox or production, no matter what the plugin is set to today.
Fix: deleting a saved card in My Account no longer leaves subscriptions attached to the deleted card when the customer has another saved card.
Behind the scenes
Version 2.8 is the first release with a full automated test suite behind it, including an integration suite that runs the complete payment path against a real WooCommerce site, with callbacks signed by a real shared secret. That suite found a bug before release that no manual check would have caught on a first pass. Every release from here on goes through it. You will not see any of this in your store, but it is why we are confident asking you to update.
Updating
Update from Plugins in your WordPress dashboard, or download the latest build from your account. As always, update on a staging site first if you have one, and confirm a sandbox payment afterwards.
If your licence has lapsed, renew it before updating so the 2.7 licence check does not switch your gateway to sandbox mode. You can renew from your account or from the renewal link in the admin notice.
If you are not using the plugin yet, the free version on WordPress.org gives you every feature in sandbox mode on unlimited sites, with no time limit. Install it, run a few test payments, and upgrade to Professional or Premium when you are ready to go live.