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.
Add form key to the Hyva authenticate and setup forms — on GitHub
The Hyvä templates hyva/authenticate.phtml and hyva/setup.phtml rendered their POST forms without a form_key field, so the core CSRF validator rejected every submit with “Invalid Form Key” and redirected back. Both forms now include the form key, as the Luma forms already did.
Fix support email shown in the admin Extensions fieldset — on GitHub
The Support and hire-us lines rendered hello@mygento.сom with a Cyrillic с, so the address looked right but could not be delivered. The character is replaced with ASCII c, with a unit test that checks the address.
Apply excluded bot patterns at 100% sampling rate — on GitHub
sampling.phtml returned early at the default sampling rate of 100, before the bot check was built, so “Excluded Bot Patterns” had no effect until an admin lowered the rate. The bot check is now always built and the sampling lottery is emitted only when the rate is below 100.
Inject the customer session and URL builder into the repay resolver — on GitHub
RepayOrderResolverAbstract::execute() used $this->customerSession and $this->urlBuilder, but the class only injected the command pool. A repay that PayU answered with SUCCESS and no redirect, or with WARNING_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 no di.xml change.
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.
Set a timeout on the Shield rules fetch — on GitHub
Magento\Framework\HTTP\Client\Curl sets no default timeout, so a stalled connection to the rules endpoint blocked fetchRules() indefinitely. That call runs from a cron job in a separate process, and Magento’s schedule lifetime only prunes stale rows after the fact — it never kills the hung worker.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
The layout removed the core
cookie_noticesblock unconditionally, while the module’s own banner only renders when the module is enabled in configuration. A store with the module installed but disabled, which is the default, showed no cookie notice at all. The layout removal is gone, and a plugin onMagento\Cookie\Block\Html\Notices::toHtmlsuppresses the core notice only while the module is enabled.