diff --git a/composer.json b/composer.json index a073d23..7b9e714 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/qiwi" - ,"version": "0.1.9" + ,"version": "0.2.0" ,"description": "The «Visa QIWI Wallet» (QIWI Кошелёк) payment extension for Magento 2." ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/qiwi" @@ -11,7 +11,7 @@ "homepage": "https://mage2.pro/users/dmitry_fedyuk", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=2.11.23", "mage2pro/phone": ">=1.0.3"} + ,"require": {"mage2pro/core": ">=2.11.23", "mage2pro/phone": ">=1.0.5"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Qiwi\\": ""}} ,"keywords": [ "API" diff --git a/view/frontend/web/main.js b/view/frontend/web/main.js index 90426dc..ae64788 100644 --- a/view/frontend/web/main.js +++ b/view/frontend/web/main.js @@ -23,11 +23,7 @@ return parent.extend({ * @see Df_Payment/custom::initialize() * @returns {exports} */ - initialize: function() { - this._super(); - this.phone('+55 21 3139-8000'); - return this; - }, + initialize: function() {this._super(); this.phone('+552131398000'); return this;}, /** * 2017-09-06 The method should return `this` because it is used in a chain: * this._super() diff --git a/view/frontend/web/template/main.html b/view/frontend/web/template/main.html index 8f905cd..569fe0e 100644 --- a/view/frontend/web/template/main.html +++ b/view/frontend/web/template/main.html @@ -7,7 +7,7 @@ class='input-text required-entry' data-bind=" attr: {title: $t('Phone Number')} - ,'df-phone': {options: {}, storage: phone} + ,'df-phone': {options: {}, storage: phone, value: phone()} ,id: fid('phone') ,value: phone ,valueUpdate: 'keyup'