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!

CommentFileSizeAuthor
#3 3069592-3.patch712 bytesarpad.rozsa
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tiburi created an issue. See original summary.

tiburi’s picture

I 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());

arpad.rozsa’s picture

Status: Active » Needs review
FileSize
712 bytes

This problem includes shipping and also other adjustments for the order, that were ignored. So updated that line to use the total price instead.

  • Berdir committed 1ea5515 on 8.x-1.x authored by arpad.rozsa
    Issue #3069592 by arpad.rozsa, tiburi: The modul not add the tax when I...
Berdir’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.