diff --git a/Block/Info.php b/Block/Info.php index 0334208..9e38858 100644 --- a/Block/Info.php +++ b/Block/Info.php @@ -25,17 +25,18 @@ final protected function prepare() { $this->siEx('iPay88 ID', $e->idE()); $this->si('Payment Option', $this->choiceT()); if ($e->isBankCard()) { - $country = $e->r('S_country'); - - if (!empty($country)) { - $country = df_country_ctn($country); - } - $this->si(['Card Number' => $e->r('CCNo'), 'Cardholder' => $e->r('CCName')]); $this->siEx([ 'Bank ID' => $e->r('BankMID') ,'Bank Name' => $e->r('S_bankname') - ,'Bank Country' => $country + /** + * 2018-06-08 + * «Do not run df_country_ctn() if S_country is empty»: + * https://github.com/mage2pro/ipay88/pull/12 + * https://github.com/mage2pro/ipay88/issues/11 + * @var string $c + */ + ,'Bank Country' => !($c = $e->r('S_country')) ? __('Unknown') : df_country_ctn($c) ]); } } diff --git a/composer.json b/composer.json index 427bcf7..310cab3 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/ipay88" - ,"version": "1.5.1" + ,"version": "1.5.2" ,"description": "iPay88 integration with Magento 2" ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/ipay88"