Skip to content

Commit

Permalink
1.5.1: #8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Feb 5, 2018
1 parent b7efd66 commit 07426d0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
28 changes: 18 additions & 10 deletions Block/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,24 @@ class Info extends \Df\Payment\Block\Info {
* @used-by \Df\Payment\Block\Info::prepareToRendering()
*/
final protected function prepare() {
$e = $this->e(); /** @var Event $e */
$this->siEx('iPay88 ID', $e->idE());
$this->si('Payment Option', $this->choiceT());
if ($e->isBankCard()) {
$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' => df_country_ctn($e->r('S_country'))
]);
/**
* 2018-02-06
* "Clicking the «Invoice» backend button for an order in the «Pending» state
* leads to the «Call to a member function idE() on null
* in vendor/mage2pro/ipay88/Block/Info.php:18» error":
* https://github.com/mage2pro/ipay88/issues/8
*/
if ($e = $this->e() /** @var Event $e */) {
$this->siEx('iPay88 ID', $e->idE());
$this->si('Payment Option', $this->choiceT());
if ($e->isBankCard()) {
$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' => df_country_ctn($e->r('S_country'))
]);
}
}
}
}
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.0"
,"version": "1.5.1"
,"description": "iPay88 integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/ipay88"
Expand Down

0 comments on commit 07426d0

Please sign in to comment.