From 01d0cea1992a94c459baf2f3c6b66564d8c0b80d Mon Sep 17 00:00:00 2001 From: Edgaras Date: Thu, 1 Sep 2022 12:38:50 +0300 Subject: [PATCH] Release 1.0.50 --- README.md | 4 ++-- docs/en/documentation.html | 4 ++-- .../template/extension/payment/postfinancecheckout.tpl | 4 ++-- .../postfinancecheckout/service/transaction.php | 10 +++++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ee586aa..562a30a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This repository contains the OpenCart PostFinance Checkout payment module that ## Documentation -* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/opencart-2.3/1.0.49/docs/en/documentation.html) +* [English](https://plugin-documentation.postfinance-checkout.ch/pfpayments/opencart-2.3/1.0.50/docs/en/documentation.html) ## Support @@ -21,4 +21,4 @@ Support queries can be issued on the [PostFinance Checkout support site](https:/ ## License -Please see the [license file](https://github.com/pfpayments/opencart-2.3/blob/1.0.49/LICENSE) for more information. \ No newline at end of file +Please see the [license file](https://github.com/pfpayments/opencart-2.3/blob/1.0.50/LICENSE) for more information. \ No newline at end of file diff --git a/docs/en/documentation.html b/docs/en/documentation.html index 6e0d744..9b23c0f 100644 --- a/docs/en/documentation.html +++ b/docs/en/documentation.html @@ -22,7 +22,7 @@

Documentation

  • - + Source
  • @@ -49,7 +49,7 @@

    1. -

      Download the extension.

      +

      Download the extension.

    2. Extract the files and upload the content of the Upload directory into the root directory of your store using FTP/SSH.

      diff --git a/upload/admin/view/template/extension/payment/postfinancecheckout.tpl b/upload/admin/view/template/extension/payment/postfinancecheckout.tpl index 6cf9a3f..43e2bba 100644 --- a/upload/admin/view/template/extension/payment/postfinancecheckout.tpl +++ b/upload/admin/view/template/extension/payment/postfinancecheckout.tpl @@ -271,14 +271,14 @@
      -

      1.0.49

      +

      1.0.50

      -

      2022/08/11 13:04:45

      +

      2022/09/01 12:38:48

      diff --git a/upload/system/library/postfinancecheckout/service/transaction.php b/upload/system/library/postfinancecheckout/service/transaction.php index 0b2af61..fb5cc7b 100644 --- a/upload/system/library/postfinancecheckout/service/transaction.php +++ b/upload/system/library/postfinancecheckout/service/transaction.php @@ -488,25 +488,25 @@ private function assembleAddress($source, $prefix = ''){ $address = new \PostFinanceCheckout\Sdk\Model\AddressCreate(); if (isset($source[$prefix . 'city'])) { - $address->setCity($this->getFixedSource($source, $prefix . 'city', 100)); + $address->setCity($this->getFixedSource($source, $prefix . 'city', 100, false)); } if (isset($source[$prefix . 'iso_code_2'])) { $address->setCountry($source[$prefix . 'iso_code_2']); } if (isset($source[$prefix . 'lastname'])) { - $address->setFamilyName($this->getFixedSource($source, $prefix . 'lastname', 100)); + $address->setFamilyName($this->getFixedSource($source, $prefix . 'lastname', 100, false)); } if (isset($source[$prefix . 'firstname'])) { - $address->setGivenName($this->getFixedSource($source, $prefix . 'firstname', 100)); + $address->setGivenName($this->getFixedSource($source, $prefix . 'firstname', 100, false)); } if (isset($source[$prefix . 'company'])) { - $address->setOrganizationName($this->getFixedSource($source, $prefix . 'company', 100)); + $address->setOrganizationName($this->getFixedSource($source, $prefix . 'company', 100, false)); } if (isset($source[$prefix . 'postcode'])) { $address->setPostCode($this->getFixedSource($source, $prefix . 'postcode', 40)); } if (isset($source[$prefix . 'address_1'])) { - $address->setStreet($this->fixLength(trim($source[$prefix . 'address_1'] . "\n" . $source[$prefix . 'address_2']), 300)); + $address->setStreet($this->fixLength(trim($source[$prefix . 'address_1'] . "\n" . $source[$prefix . 'address_2']), 300, false)); } // state is 2-part