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 |
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 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 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.