Skip to content

Commit

Permalink
Fixed: test connection feature does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Klymenko committed Apr 18, 2023
1 parent da56b9f commit 14193be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gateway/Request/SendReceipt/OrderLinesBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function build(array $buildSubject)
'totalTaxAmount' => $monitaryTaxAmount,
'taxPercentage' => $monitaryTotalAmountExcludingTax > 0
? (int)round($monitaryTaxAmount * 100 / $monitaryTotalAmountExcludingTax)
: $item->getTaxPercent(),
: (int)$item->getTaxPercent(),
'unitInfo' => [
'unitPrice' => (int)($item->getPrice() * 100),
'quantity' => (string)$item->getQtyOrdered()
Expand Down
2 changes: 1 addition & 1 deletion Model/TokenProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private function readJwt($scopeId)
'Content-Length: 0'
];
// send request
$adapter->write('post', $this->urlResolver->getUrl(self::$endpointUrl), '1.1', $headers);
$adapter->write('POST', $this->urlResolver->getUrl(self::$endpointUrl), '1.1', $headers);
$response = Response::fromString($adapter->read());
$jwt = $this->serializer->unserialize($response->getBody());
if (!$response->isSuccess()) {
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
~ IN THE SOFTWARE.
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vipps_Payment" setup_version="2.4.43">
<module name="Vipps_Payment" setup_version="2.4.44">
<sequence>
<module name="Magento_Sales" />
<module name="Magento_Payment" />
Expand Down

0 comments on commit 14193be

Please sign in to comment.