Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, the modul didn't add the tax price to the total prices. When I click to pay button the gateway
takes the net price without the tax. How can I fix this? Thank you!
Comment | File | Size | Author |
---|---|---|---|
#3 | 3069592-3.patch | 712 bytes | arpad.rozsa |
Comments
Comment #2
tiburi CreditAttribution: tiburi commentedI solved the problem.
The problem it was in the line of 378 in the /modules/commerce_saferpay/src/Plugin/Commerce/PaymentGateway/Saferpay.php file
- $amount = $this->toMinorUnits($order->getSubtotalPrice());
+ $amount = $this->toMinorUnits($order->getTotalPrice());
Comment #3
arpad.rozsa CreditAttribution: arpad.rozsa at MD Systems GmbH commentedThis problem includes shipping and also other adjustments for the order, that were ignored. So updated that line to use the total price instead.
Comment #5
BerdirCommitted.