Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Apr 17, 2017
1 parent ee0c467 commit c15893f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Block/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final protected function prepare() {
/** @var Event $e */
$e = $this->e();
$this->siEx('iPay88 ID', $e->idE());
$this->si('Payment Option', $e->optionTitle());
$this->si('Payment Option', $this->choiceT());
if ($e->isBankCard()) {
$this->si(['Card Number' => $e->r('CCNo'), 'Cardholder' => $e->r('CCName')]);
$this->siEx([
Expand Down
18 changes: 18 additions & 0 deletions Choice.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
namespace Dfe\IPay88;
use Dfe\IPay88\W\Event;
use Magento\Framework\Phrase;
// 2017-04-17
/** @method Event|string|null responseF(...$k) */
final class Choice extends \Df\Payment\Choice {
/**
* 2017-04-17
* @override
* @see \Df\Payment\Choice::title()
* @used-by \Df\Payment\Observer\DataProvider\SearchResult::execute()
* @return Phrase|string|null
*/
function title() {return dfc($this, function() {return /** @var Event $ev */
($ev = $this->responseF()) ? $ev->optionTitle() : __('Not yet paid')
;});}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/ipay88"
,"version": "1.0.1"
,"version": "1.1.0"
,"description": "The «iPay88» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/ipay88"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.4.58"}
,"require": {"mage2pro/core": ">=2.5.2"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\IPay88\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit c15893f

Please sign in to comment.