Skip to content

Commit

Permalink
Release 1.0.6 (#23)
Browse files Browse the repository at this point in the history
Convert currency to uppercase
  • Loading branch information
emilleszczak2 authored Mar 2, 2022
1 parent 30154b8 commit 040cfe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "opencart-plugin",
"require": {
"php": ">=5.4",
"pay-now/paynow-php-sdk": "^1.0.5"
"pay-now/paynow-php-sdk": "^1.0.6"
},
"license": "MIT",
"minimum-stability": "stable",
Expand Down
4 changes: 2 additions & 2 deletions upload/catalog/controller/extension/payment/paynow.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ControllerExtensionPaymentPaynow extends Controller
const ORDER_STATUS_CONFIRMED = 2;
const ORDER_STATUS_ERROR = 10;

private $version = "1.0.5";
private $version = "1.0.6";
private $apiClient = null;

private $apiKey;
Expand Down Expand Up @@ -85,7 +85,7 @@ private function sendPaymentData($orderInfo)
{
$payment_data = [
"amount" => $this->toAmount($orderInfo["total"], $orderInfo["currency_code"]),
"currency" => $orderInfo["currency_code"],
"currency" => strtoupper($orderInfo["currency_code"]),
"externalId" => $orderInfo["order_id"],
"description" => $this->language->get("payment_paynow_text_order") . $orderInfo["order_id"],
"buyer" => [
Expand Down

0 comments on commit 040cfe4

Please sign in to comment.