Skip to content

Commit

Permalink
1.5.2: #12
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 8, 2018
1 parent ac38a79 commit 9ce26b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions Block/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 9ce26b7

Please sign in to comment.