Skip to main content

WooCommerce plugin 2.2.3

Version 2.2.3 of Straumur Payments for WooCommerce changes how the plugin answers webhook events for payments that were not made in the shop. Every store should update.

Events for payments made outside the shop​

Straumur sends a webhook endpoint every payment event on the contracts it is subscribed to. A shop's endpoint therefore also receives events for card terminal payments, payment links and other integrations on the same contract.

The plugin used to answer those events with an error. It now answers 200, records the event in its log and leaves every order alone. This matters because Straumur treats an endpoint that keeps answering with errors as failing.

Events are only applied to the shop's own orders​

An event is applied to an order only when its reference is exactly the ID of an order in the shop and that order was paid with Straumur. A reference that merely starts with digits, such as 742eac9d-..., is no longer read as order 742. Previously a payment from another channel could be recorded on an unrelated order.

Wrong signatures are still rejected​

A webhook with a wrong signature is still answered with 403. If Straumur reports failed deliveries to your shop after the update, check the HMAC key in the plugin settings against the one in the Merchant Portal. See Webhook configuration.

Compatibility​

No settings change. Tested with WordPress 7.1 and WooCommerce 11.1. Minimum versions are unchanged: WordPress 5.2, WooCommerce 8.1, PHP 7.4.

See WooCommerce for setup and requirements.