Call toMinorUnits from the service

Created on 16 September 2025, 29 days ago

Problem / Motivation

In earlier versions, the module was calling $this->toMinorUnits(), which worked because the method was defined in PaymentGatewayBase.
With the update to Drupal Commerce 3.1, this method was removed from PaymentGatewayBase, so it is no longer available directly.
We now need to use the appropriate service to handle this conversion.

Proposed Resolution

Update the implementation to call the method from the minorUnitsConverter service instead of PaymentGatewayBase.

🐛 Bug report
Status

Active

Version

3.8

Component

Code

Created by

🇯🇴Jordan Abdelrahman khlefat

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024