Open Source
Shaping the tools I use every day, one pull request at a time
A hand-picked selection: only the contributions worth reading about, not every merged pull request. Articles about Magento and Adobe Commerce are on the blog.
Pass pay method type and value to updatePayment in the declared order — on GitHub
RepayOrder::execute() passed the pay method and its type to updatePayment() in reverse order. After every repay, payu_method and payu_method_type in the order payment’s additional information held each other’s value, so a BLIK repay was stored as method PBL with type blik.
Define the request body before the try block in PayUAbstractClient — on GitHub
When setDefaultConfig() threw, the catch block in placeRequest() read a $body that was never assigned. Magento turned the warning into an exception, the shopper got a generic server error, nothing reached payugateway.log, and the real cause (for example Empty PayU Configuration) was lost. The body is now read before the try, so configuration errors are logged with their message again.
Show the quote grand total on the Google Pay and Apple Pay sheets — on GitHub
The Google Pay and Apple Pay sheets took the amount from base_grand_total but the currency from quote_currency_code. On a store with base currency PLN and checkout currency EUR, the sheet showed the PLN amount labelled as EUR, which was not the amount sent to PayU. Both sheets now read grand_total, matching the order request; single-currency stores see no change.
Use HTTPS for the PayU terms link — on GitHub
The terms of service link on the payment step and the repay page pointed to an http:// URL from an HTTPS checkout. The constant now uses https://, which static.payu.com already serves.
Guard null order item ids when setting downloadable link status — on GitHub
On an order’s first save, SetLinkStatusObserver runs before order items get their ids, yet three places still used $item->getId() as an array key. On PHP 8.5 that null offset is a deprecation Magento promotes to an exception, so any order with a downloadable product left in Pending Payment, On Hold or Payment Review failed at placement. On earlier PHP versions the write was silent but useless: the purchased-items queries were filtered by order_item_id IN ('') and could never match. The observer now applies the null guard it already used in the canceled/closed/complete branch to those three remaining places, with unit tests covering each path.
Fix three agent runner defects in OpenCode, Codex and Claude sessions — on GitHub
When opencode serve never printed its URL, the runner kept talking to a port nobody might have bound. The Codex RPC dropped responses with string JSON-RPC ids, which the spec allows, so those requests never settled. Claude’s sendMessage reported success after the child had already exited. The session now fails fast with a clear error, numeric string ids settle their request, and stdin counts as closed once the child exits.
Expand the Varnish tracking parameter strip list — on GitHub
Every marketing parameter Varnish does not strip in vcl_recv creates a separate cache entry for the same page, so Instagram, Matomo, HubSpot, Klaviyo, Pinterest or Ceneo traffic split the cache and lowered the hit ratio. The generated VCL now also strips parameters such as igshid, mtm_*, pk_*, hsa_*, _ke, epik, ef_id and ceneo_cid, along with common affiliate click IDs.
Accept the namespaced dictionary keys modules already seed — on GitHub
Fifteen of the seventeen dictionary keys modules declare are dot-namespaced, such as planner.unavailability-reasons.staff, yet the create route’s schema rejected them with an opaque 500, so staff unavailability reasons could not be created at all. The key pattern now allows dot-separated segments, each keeping the original slug rule, which matches the looser schema the update route already used and leaves the seeded rows untouched.
Let the message composer send from a connected mailbox — on GitHub
Messages to external addresses always went out through the platform sender, which writes none of the thread mapping rows inbound matching relies on, so a reply could never attach back to its thread. On an instance whose only email channel was an OAuth mailbox, those messages could not be sent at all. The composer gains a “Send from” selector that routes through the existing sendAsUser pipeline. The platform sender stays the default.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
RepayOrderResolverAbstract::execute()used$this->customerSessionand$this->urlBuilder, but the class only injected the command pool. A repay that PayU answered withSUCCESSand no redirect, or withWARNING_CONTINUE_CVV, ended in “Can’t repay order.” after the PayU order was already created. Both dependencies are now injected in the abstract constructor and autowired for the four concrete resolvers, with nodi.xmlchange.